(07-27-2013, 01:48 AM)neobrain Wrote: Fyi, if you're looking for something simpler to work with, libao is pretty easy to use if you just want raw sound output ala "output sound at frequency X at volume Y".
Thanks, I see it's cross-platform as well. The thing is, I want to keep dependencies to a minimum. I know any Linux distro worth its salt has libao installed by default (or easily installed if not) but I really want to stick to using SDL or SDL related libraries (SDL_image, SDL_ttf, SDL_net). SDL_mixer has the same ability to just send raw data and get sound output, but that's even less documented than SDL's native audio functions
The main hurdle for me is that I don't know how to actually generate said raw data. I more or less understand how SDL's native audio functions handle playing sound, but I don't know how to make a saw or square wave. And yes, I know what the waveforms are supposed to look like and how they differ in function, I just don't know the exact numbers I'm supposed to be feeding in. Like I said, I have a working example that uses SDL's native audio functions, I just haven't studied it thoroughly.