Hello there. I'm just following the series as usual, but at the point of writing a square wave to DirectSound, I'm not sure what happened. The sound is all crackled and distorted:
See here
The first window is my code, the second is literally the day 8 source code extracted and compiled. There is a difference but both are horribly distorted. The second window's square wave sounds fine when I resize it for some reason but even then it still has weird cuts. Since Casey's code which sounds fine in the stream sounds horrible in my computer, I can only assume this is a DirectSound problem?
Any clues what should I do? Maybe try another API?