VOGONS

Common searches


First post, by s3freak

User metadata
Rank Newbie
Rank
Newbie

I have spent quite a while searching for a solution to this as occasionally I like to leave DOSBox running in the background but without having its audio muted.

After searching for a while, the answer is to remove or comment out the mainwin = hwnd line under the DX5_SoundFocus function of src\audio\windx5\SDL_dx5audio.c and then recompile SDL.dll.

I include a patch if anyone is interested for their convenience. This patch should also work with other SDL based apps, not just DOSBox.

Attachments

My 486 is my real DOSBox, as well as my customised DOSBox!
I am not very active on VOGONS, please send a private message if you need a quicker response!

Reply 1 of 2, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

Perhaps a better solution would be to change

format.dwFlags |= DSBCAPS_GLOBALFOCUS;

to use global focus in the first place.
Actually I don't know why SDL uses STICKYFOCUS by default.

http://www.si-gamer.net/gulikoza