ZDoom / ZMusic

GZDoom's music system as a standalone library
https://forum.zdoom.org/index.php
61 stars 32 forks source link

Issues starting MIDI playback, ALSA w/ hardware MIDI synths #58

Open m0rb opened 4 months ago

m0rb commented 4 months ago

Hi Devs!

I've been encountering playback issues on multiple engines that use this library (namely GZDoom and Raze); every once in a while, when a problematic MIDI track loads, it'll start flooding the console with a decrementing sequencer undderrun and an error number (error -22);

ex:

Alsa sequencer underrun: -1067117 ticks!
Alsa sequencer did not accept event: error -22!
Alsa sequencer underrun: -1067194 ticks!
Alsa sequencer did not accept event: error -22!
Alsa sequencer underrun: -1067271 ticks!
Alsa sequencer did not accept event: error -22!

Switching to any given Software MIDI library plays the tracks without issue.

I'm currently fully synced with origin/master (commit 50ad730c, 1.1.13); GZDoom and Raze are also relatively as fresh. Host system is Fedora 40 x86_64.

I've got a SoundCanvas SC-8850 that works as intended with just about anything I throw at it. This also happens with a cheap USB-MIDI adapter hooked up to a MT-80s.

Thus far it seems like all music tracks in DOOM PWADs (DOOM, DOOM2) do not trigger this issue. MAP01 on sunlust.wad reliably fails.

Thanks for your time!

witchymary commented 3 weeks ago

Can confirm this as well. I'm using nuked-sc55 instead, but the same happens with some selected tracks. If I play the midi through aplaymidi it works without issue.