@neauoire @bd butting in but my recommendations are some combination of
(1) don't use headphones; use speakers.
(2) use headphones that hang off your head, not earbuds. Remove them from your ears before trying any audio code for the first time.
(3) Instead of listening to the program output at all, have the program output to a file, either a wav or raw audio you open as such in audacity (it is nice to double to a file anyway). Look at the waveform before you listen ("bad" waveforms are visible)
@mcc @bd OOoh, I'd love to see the waveform while I work, do you think there's a way I could monitor the sound coming from an SDL program?