Open amstan opened 3 years ago
Hi, it seems your SDL2 installation cannot play midi files (it says in your output: "Supported music decoders: CMD WAVE FLAC OGG OPUS MPG123 MODPLUG MOD MP3")
I think you need to have timidity installed, but not sure.
Just checked, the debian package declares this as dependency: timgm6mb-soundfont | musescore-soundfont-gm
. I'm pretty sure just either of those packages enabled MIDI play for me. You didn't say which distro you're on?
Hi! I'm having same issue with 3.3.1 version compiled from AUR in Archlinux. I setup old fluidsynth config file with a soundfont file and set environment variable SDL_SOUNDFONTS=/usr/share/soundfonts/FluidR3_GM.sf2 for new timidity but no luck.
If you have the same output as the original poster with Supported music decoders
not containing MIDI
, then I don't know, sorry. On Ubuntu it seems to work simply when timgm6mb-soundfont
is installed. Note that the environment variable SDL_SOUNDFONTS
is only supported with pretty new SDL_mixer versions, I don't know what AUR has, but Ubuntu's version is way older and iirc it does not support custom soundfonts at all, it only looks in the hardcoded path that the timgm6mb-soundfont
package installs to.
This is the package content of timgm6mb-soundfont
on Ubuntu. I'm pretty sure you need to have those exact paths for the cfg and the soundfont for SDL_mixer versions older than 2.6 to allow playing midi
/etc/timidity/timgm6mb.cfg
/usr/share/doc/timgm6mb-soundfont/changelog.Debian.gz
/usr/share/doc/timgm6mb-soundfont/copyright
/usr/share/sounds/sf2/TimGM6mb.sf2
There's always the option of converting the midi files manually to ogg and setting wargus.music_extension = ".ogg"
in data.wargus/scripts/wc2-config.lua
Hi again! I have the solution in front of my eyes, launch in the same line: SDL_SOUNDFONTS=/usr/share/soundfonts/FluidR3_GM.sf2 wargus (or war1gus) But now I have another problem. When I start a map the sound goes choppy and need disable music and re-enable for everything goes well again.
jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card' ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card' ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, &numChannels )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 414 Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Frames 1387, Slow frames 36 = 2% Gracias por jugar Stratagus.
I think than sdl_mixer is using all sound drivers except pulseaudio. I have found this but not solution by the moment. Any ideas about what can be?
Describe the bug With a successfully installed wargus 3.0.0 (+ game data), none of the music plays. Despite the midis being unpacked properly (and playable with musescore).
I also tried to dump a
TimGM6mb.sf2
indata.Wargus/music
like someone said, didn't make a difference.Command line
To Reproduce
ls ~/.stratagus/data.Wargus/music
Expected behavior Music plays
What actually happens No music playing:
Screenshots and Logs