joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.76k stars 381 forks source link

Desert strike & Jungle strike sound problem. #1600

Open WarlockSVG opened 4 years ago

WarlockSVG commented 4 years ago

The two games have no sound on the intro and at the game itself. There is sound at the menu / interface.

With DOSBox the intro and game itself have sound.

If you go to the config section and toggle through the sound card option DOSBox-X does not have "sound blaster" ( DOSBox has this card )

DOSBox screenshot... sound blaster is available. Not in DOSBox-X 2020-05-26 - 13-06-32

WarlockSVG commented 4 years ago

Could be related to https://github.com/joncampbell123/dosbox-x/issues/1589

rderooy commented 4 years ago

Actually, when I compare it with DOSBox ECE, both Adlib and Sound Blaster options are missing with DOSBox-X.

I tried various different sound blaster models, but it makes no difference, and there are also no errors in the LOG. And because it happens with multiple SB models it cannot have anything to do with issue #1589, as that is an issue with the SB16.

rderooy commented 4 years ago

Another difference, if I set cycles, such as cycles=10000 and run it with DOSBox, DOSBox SVN, DOSBox ECE or DOSBox Staging the screen remains black until the initial "Gremlin Interactive" 3D LOGO has finished animating. While in DOSBox-X the 3D logo animation (probably video playback?) works fine regardless of cycles setting.

But in all the other DOSBox forks I get sound, and no sound in DOSBox-X. It seems to simply not detect the presence of the emulated Sound Blaster, regardless of model.

I found some mentions in forums that these are very buggy games, and would need specific cycles settings (10k and 20k were suggested), and possibly loadfix (loadfix -48, because with the default 64K the game complains about needing at least 544KB). But none of that seems to help.

Also setting core=normal or cpu=486 or cpu=pentium does not change anything, and neither does oplemu.

Wengier commented 4 years ago

Sound Blaster support can be enabled for Desert strike & Jungle strike with a simple (and same) hack, which is now included in my latest pull request.

jaroslavl1 commented 3 years ago

I do get sound in Desert strike with Dosbox-x 0.83.13 except for the startup logo, however no sound in Jungle strike. Dosbox or 86Box do not exhibit this issue.

Wengier commented 3 years ago

@jaroslavl1 What if you set core=normal or core=auto instead of core=dynamic in dosbox-x.conf? I do get sound in Jungle strike in such cases even with the latest code.

jaroslavl1 commented 3 years ago

I can confirm that sound works correctly on both Jungle and Desert strike including the initial logo with Dosbox-x 0.83.13 when core=auto & cycles=auto is used.

it also works with:

but not with:

Until this issue can be resolved in proper manner (as it works in 86Box, unless they have hacks in place that make it work somehow which seems unlikely) it seems it's best to use core=auto & cycles=auto.