realnc / dosbox-core

A DOSBox core for use in RetroArch and other libretro frontends.
GNU General Public License v2.0
42 stars 16 forks source link

Audio goes away and never comes back when changing DOS videomode frequently #38

Open vanfanel opened 2 years ago

vanfanel commented 2 years ago

Sorry for opening so many issues, @realnc , I promise this one will be the last for now.

You can easily see the problem in Jazz Jackrabbit, which changes emulated DOS videomode frequently: go from main menu (tittle screen) to game, and back to main menu, back to game... You will see audio breaks and doesn't come back anymore.

I am using 1000 cycles here, but I have seen the same effect with other numbers of dosbox cycles. According to TOP, CPU usage is ~25%.

Sound dropouts are expected when changing the DOS videomode, but sound not coming back seems like an specific dosbox-core bug (I could be wrong of course).

Using EXTERNAL framerate timing.

realnc commented 2 years ago

Works fine here. Have you configured the game's audio driver correctly? For Jazz Jackrabbit, you need to run SETUP and configure the driver there to match your core settings. For this game, the best configuration is to disable Sound Blaster support in the core options and enable Gravis Ultrasound support. Then run SETUP.EXE and choose "Gravis Ultrasound" there.

vanfanel commented 2 years ago

@realnc Yes, yes, of course I have run setup.exe and configured the game audio. The problem happens both with SoundBlaster and GUS.

GUS is not that optimal with this game, BTW: it offers superior audio quality but scroll has hiccups with it. But that's NOT a dosbox-core problem, that's how the game works.

Now, the vanishing audio is a real dosbox-core bug. You have to try several times.