LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sdl_mixer native midi hangs programs with sound effects under ALSA. (https://www.linuxquestions.org/questions/linux-software-2/sdl_mixer-native-midi-hangs-programs-with-sound-effects-under-alsa-4175499449/)

Holering 03-25-2014 04:45 PM

sdl_mixer native midi hangs programs with sound effects under ALSA.
 
Using sdl_mixer 1.2.11 (newer versions removed native midi for linux so I can't upgrade) with Sound Blaster Live 5.1 (emu10k1) and ALSA. Slackware64 14.1.

Hardware midi works via /dev/sequencer with native-gpl-midi code in SDL-1.2.11 and older versions, but if a program plays sounds simultaneously (chocolate-doom), intermittent hangs and errors occur (cannot write to /dev/sequencer. Bad file descriptor).

aplaymidi and audacious play midi fine however with no problems. I can disable sfx in chocolate-doom to avoid hangs and have midi playback, but then there's no sfx.

Apparently this is a bug that was never fixed with sdl_mixer's native-midi-gpl code. https://bugs.debian.org/cgi-bin/bugr...cgi?bug=298982. The code was removed so newer versions of SDL don't support hardware midi under Linux. I'm unable to use newer versions of SDL-mixer since they don't support hardware midi modules under Linux.

Is there any fix for this?

If someone could tell me how to setup OSSV4 with hardware wavetable midi support via Sound Blaster Live 5.1 I would be most grateful (native OSS probably works fine with sdl_mixer's native_midi_gpl code). I've only been able to setup OSSV4 without hardware midi available unfortunately.

Any help would much appreciated.


All times are GMT -5. The time now is 08:00 PM.