chocolate-doom / chocolate-doom

Chocolate Doom is a Doom source port that is minimalist and historically accurate.
https://www.chocolate-doom.org/
GNU General Public License v2.0
1.95k stars 574 forks source link

Game freezes briefly when music is looping #279

Open chocolate-import opened 10 years ago

chocolate-import commented 10 years ago

The following bug was originally reported on Sourceforge by paar86, 2013-10-13 08:00:28.819000:

It happened with version 1.6.0 so with new version 1.7.0 I thought it would be gone. But it isn't. Everytime when music reaches its end and needs to start over the game freezes briefly for split second. It's very annoying when short songs are being played.

chocolate-import commented 10 years ago

Comment by fraggle, 2013-10-13 17:17:53.879000:

Thanks for the report, but I could use some more information. What operating system are you using, and what music setting (OPL, Native MIDI, etc.) are you using?

Thanks

chocolate-import commented 10 years ago

Comment by paar86, 2013-10-15 15:58:57.502000:

I'm using Windows 7 32-bit and Native MIDI for the music.

chocolate-import commented 10 years ago

Comment by quasar_te, 2013-10-19 01:07:10.146000:

This is an SDL_mixer bug introduced by Windows Vista and later. All source ports using SDL_mixer for native MIDI output on Vista, 7, or 8 suffer from this.

chocolate-import commented 10 years ago

Comment by fraggle, 2013-10-19 20:29:55.873000:

Yes, as I suspected, SDL_mixer is to blame. I think the best solution to this problem is to switch to using OPL emulation mode or Timidity. My plan is to switch the default MIDI device to OPL playback.

chocolate-import commented 10 years ago

Comment by fraggle, 2013-10-20 20:08:45.359000:

I'm going to leave this bug open, but I've changed the default music device to OPL, which should mitigate the issue.

CapnClever commented 8 years ago

Haven't seen this problem with Chocolate Doom 2.2.1: using Win7 64-bit, Native MIDI.