SDL Audio Specs and Samples, and pulseaudio |
SDL Audio Specs and Samples, and pulseaudio |
Ryan C. Gordon
Guest
|
Use SDL_OpenAudioDevice(). SDL_OpenAudio() is just there for people migrating from SDL 1.2 (or have simple needs), since SDL 1.2 only allowed a single audio device.
The legacy function isn't const because it wasn't in SDL 1.2, but SDL_OpenAudioDevice() _does_ make (desired) const. I don't think that SDL_OpenAudio() should ever actually change this struct in SDL 2.0, either. If that's still happening for you, let's talk about that as an SDL bug that should be resolved.
It's just an accident of history. We never changed it to keep things binary compatible. Maybe we should fix that after 2.0 ships. This variable is never (should never be, at least) negative.
It's possibly a bug. I'll look into it tonight and figure out why we did that.
It could go either way. I'll do some research and get back to you on this tonight. --ryan. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||||||||
|