[SDL] SMPEG Select Audio Device
linux_dr at yahoo.com
Fri Jul 26 11:01:01 PDT 2002
--- Steve Lupton <SL at cre.co.uk> wrote:
> Is it possible to tell SMPEG which audio device to
> use in a machine with
> more than one soundcard?
> Steve Lupton
Hmm... I don't know about having SDL handle more than
one sound card, but you can redirect the output of
SMPEG by setting a callback with the SMPEG_playAudio()
callback which must be called every time the sound
buffer needs more data (this is how the movie stays in
sync with the audio)... It is VERY IMPORTANT to pass 0
as the sdl_audio parameter when calling SDL_new() if
you plan on handeling audio yourself.
Do You Yahoo!?
Yahoo! Health - Feel better, live better
More information about the SDL