VOGONS

Common searches


Need help with Dosbox Sound (Directsound / Dsound in Windows Registry)

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by RyanYTH

User metadata
Rank Newbie
Rank
Newbie

Hi folks, looking for some help here.

My DOSBox version is 0.74-3

If i set my registry this way, SDL_AUDIODRIVER to "dsound" my DosBox will have sound and music.
But if it is set this way, certain indie games (Eg: Dune Legacy, Eduke32) will not have sound.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\
SDL_AUDIODRIVER value = dsound

---------------------

However, if I change dsound to directsound in the same Registry, those games will have sound,
but DosBox will have no sound.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\
SDL_AUDIODRIVER value = directsound

---------------------

Is there a value I can set or a dll i can download or something i can do, so that BOTH Dosbox and those games can have sound?
Appreciate any help on this. Thanks!

Reply 2 of 5, by RyanYTH

User metadata
Rank Newbie
Rank
Newbie
Qbix wrote on 2021-07-06, 07:24:

you can use a bat file that sets the variable and starts dosbox

Thanks for the reply! But erm... sorry i'm not very familiar with batch file commands to run windows registry values. 😅
Are you able to type out the command that can set this? Thanks again!

Also, i'm running REMOVED together with GOG's dosbox. (REMOVED also uses Dosbox)
I'll need 2 seperate batch files to do this right? Thank you.

Last edited by DosFreak on 2023-10-14, 19:41. Edited 1 time in total.

Reply 3 of 5, by Falcosoft

User metadata
Rank Oldbie
Rank
Oldbie
RyanYTH wrote on 2021-07-06, 07:28:
Thanks for the reply! But erm... sorry i'm not very familiar with batch file commands to run windows registry values. ^_^; Are y […]
Show full quote
Qbix wrote on 2021-07-06, 07:24:

you can use a bat file that sets the variable and starts dosbox

Thanks for the reply! But erm... sorry i'm not very familiar with batch file commands to run windows registry values. 😅
Are you able to type out the command that can set this? Thanks again!

Also, i'm running REMOVED together with GOG's dosbox. ( REMOVED also uses Dosbox)
I'll need 2 seperate batch files to do this right? Thank you.

And what happens if you simply remove that registry key completely?
SDL 1.2 should use 'dsound' and SDL 2.0 should use 'directsound' by default without explicit registry keys/ environment variables.

Last edited by DosFreak on 2023-12-05, 00:19. Edited 2 times in total.

Website, Facebook, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper

Reply 4 of 5, by RyanYTH

User metadata
Rank Newbie
Rank
Newbie
Falcosoft wrote on 2021-07-06, 07:52:

And what happens if you simply remove that registry key completely?
SDL 1.x should use 'dsound' and SDL 2.x 'directsound' by default without explicit registry keys/ environment variables.

Update: It works! Now i have sound on BOTH those games and Dosbox!!
Thanks very much Falcosoft, thanks for your reply too Qbix! 😁

That is ... a great idea! Didn't thought of removing it as I'm afraid i might break something. 😅
Let me give it a try. Thanks!

Reply 5 of 5, by Falcosoft

User metadata
Rank Oldbie
Rank
Oldbie
RyanYTH wrote on 2021-07-06, 07:55:
Update: It works! Now i have sound on BOTH those games and Dosbox!! Thanks very much Falcosoft, thanks for your reply too Qbix! […]
Show full quote
Falcosoft wrote on 2021-07-06, 07:52:

And what happens if you simply remove that registry key completely?
SDL 1.x should use 'dsound' and SDL 2.x 'directsound' by default without explicit registry keys/ environment variables.

Update: It works! Now i have sound on BOTH those games and Dosbox!!
Thanks very much Falcosoft, thanks for your reply too Qbix! 😁

That is ... a great idea! Didn't thought of removing it as I'm afraid i might break something. 😅
Let me give it a try. Thanks!

BTW it was a rather stupid idea from SDL 2 developers to re-use the same environment variables SDL 1 used for completely different set of values. What's more some of these different values actually mean the same ( dsound/directsound)...

Website, Facebook, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper