joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get MIDI Fluidsynth to recognize SF2 Sound font file in Arch Linux

zono50 opened this issue · comments

Question

I've been dealing with this issue for almost 2 days. Tried doing alsa, pulseaudio, deleted and broke my sound system about 2 or 3 times getting this to work. I also tried doing overrides, and installed flatseal and gave my dosbox sandbox the entire file system access, and for whatever reason it will not recognize my SF2 file that i downloaded. I'm using the GeneralUser_GGS_v1.471.sf2, and i'm doing my command as such -

flatpak run com.dosbox_x.DOSBox-X -conf ~/.var/app/com.dosbox_x.DOSBox-X/config/dosbox/dosbox-x.conf

I have also attached my dosbox.conf file located at the following path - /home/zono50/.var/app/com.dosbox_x.DOSBox-X/config/dosbox/dosbox-x.conf

i have also attached my dosbox-x.conf file:

[midi]
mpu401=intelligent
mididevice=fluidsynth
midiconfig=/home/zono50/MIDI/SoundFonts/GeneralUser_GS_v1.471.sf2
fluid.samplerate=44100
fluid.driver=pulseaudio
fluid.soundfont=/home/zono50/MIDI/SoundFonts/GeneralUser_GS_v1.471.sf2
fluid.buffersize=256
fluid.periods=16
fluid.threads=1
fluid.reverb=yes
fluid.chorus=yes
fluid.reverb.roomsize=0.61
fluid.reverb.damping=0.23
fluid.reverb.width=0.76
fluid.reverb.level=0.57
fluid.chorus.nr=3
fluid.chorus.level=1.2
fluid.chorus.speed=0.3
fluid.chorus.depth=8.0
fluid.chorus.type=0

If I run fluidsynth with pulseaudio, i can get it to play midis so it is working. I simply can't get dosbox-x to recognize my soundfont file in arch linux.

Have you checked that no similar question(s) exist?

  • I have searched and didn't find any similar question.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.

Make sure you have really set required permissions.
I don't use flatpak, but the soundfont loads fine so I think DOSBox-X has nothing to be blamed.
fluidsynth

As stated previously, I opened up my whole home folder to flatpak so the application would be able to access not only the soundfont file, but the config file as well. I checked the permissions on the soundbank file as well and it's owned by my user and group

-rwxr-xr-x 1 zono50 zono50 30M Feb 7 2017 GeneralUser_GS_v1.471.sf2

also the permissions on my conf file are as follows :

looks like my conf file was owned by root, but i changed it and got the same error.

-rwxr-xr-x 1 zono50 zono50 99K Jun 2 19:31 dosbox-x.conf

image

image

I added underscores to the GS file because i read that dosbox had issues with spaces, although I tried double quotes as well.

I tried installing this in arch using the arch repository but i always get errors

This is my first time I installed via Flatpak.
Seems to work fine.

flatpak

Second issue I've run into: Fluidsynth needs an SF2 file that uses the RIFF chunk structure, and sometimes I find older files that are not RIFF.

can i see your dosbox.conf file midi section just to make sure i have everything correct on mine?

OMG i feel like an absolute moron, i kept adding midi properties to the dosbox.conf file, and then scrolled down the file, and saw more fields for midi properties, i put the properties in there, and now it's working lol