[SDL] SMPEG Select Audio Device

Loren Osborn linux_dr at yahoo.com
Fri Jul 26 11:01:01 PDT 2002


--- Steve Lupton <SL at cre.co.uk> wrote:
> Hi
> 
> Is it possible to tell SMPEG which audio device to
> use in a machine with
> more than one soundcard?
> 
> Thanks,
> 
> 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.

-Loren

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com




More information about the SDL mailing list