Questions tagged [c++]

129 questions
2
votes
2 answers

Create 16 bit sine and write to file

This seems a simple task, yet I am making some stupid mistakes I am not able to find. I create a sinus wave (integer) and then convert it to 16 bit char, little endian. Then I save to file and open it in Audacity (see image below). The first channel…
user2366975
  • 121
  • 1
  • 3