The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Audio Stops when window is out of focus
malik martin
Guest

HI,
I'm using SDL on WinXP and SDL_OpenAudio() stops audio if my
application isn't in focus. how do i change this behavior?

thanks
Audio Stops when window is out of focus
Sam Lantinga
Guest

Quote:
HI,
I'm using SDL on WinXP and SDL_OpenAudio() stops audio if my
application isn't in focus. how do i change this behavior?

You need o modify DSOUND_SoundFocus() in SDL_dx5audio.c and comment out
the line in that function.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
Audio Stops when window is out of focus
malik martin
Guest

THANKS!!!
thought this thread was a lost cause :)

On Sun, May 18, 2008 at 12:11 AM, Sam Lantinga <slouken at devolution.com> wrote:
Quote:
Quote:
HI,
I'm using SDL on WinXP and SDL_OpenAudio() stops audio if my
application isn't in focus. how do i change this behavior?

You need o modify DSOUND_SoundFocus() in SDL_dx5audio.c and comment out
the line in that function.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org