joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.53k stars 369 forks source link

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

Closed zono50 closed 3 weeks ago

zono50 commented 3 weeks ago

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?

Code of Conduct & Contributing Guidelines

maron2000 commented 3 weeks ago

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

zono50 commented 3 weeks ago

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

maron2000 commented 3 weeks ago

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

flatpak

joncampbell123 commented 3 weeks ago

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.

zono50 commented 3 weeks ago

Do you have quotes at all around the sound font file name or is dosbox perfectly okay with those spaces? I did it with quotes and slashes like so

fluid.soundfont = /home/zono50/MIDI/SoundFonts/GeneralUser\ GS\ v1.471.sf2

On Sun, Jun 2, 2024, 11:04 PM Jonathan Campbell @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/joncampbell123/dosbox-x/issues/5034#issuecomment-2144192347, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACC32IIES4RYKA7VICYHJHLZFPMLTAVCNFSM6AAAAABIVO737WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGE4TEMZUG4 . You are receiving this because you authored the thread.Message ID: @.***>

zono50 commented 3 weeks ago

Here is my dos output that I got, it can't use the soundfont file for some reason

image

image

whether i put quotes around fluid.soundfont or not makes no difference, the dosbox can't seem to pick it up. I know it's not a version issue cause we are using the same soundfont file. Wonder what else could be preventing it?

also when i run flatpak override --show com.dosbox_x.DOSBox-X it shows the following - [Context] filesystems=host;

On Mon, Jun 3, 2024 at 8:03 AM Brad Watts @.***> wrote:

Do you have quotes at all around the sound font file name or is dosbox perfectly okay with those spaces?

On Sun, Jun 2, 2024, 11:04 PM Jonathan Campbell @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/joncampbell123/dosbox-x/issues/5034#issuecomment-2144192347, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACC32IIES4RYKA7VICYHJHLZFPMLTAVCNFSM6AAAAABIVO737WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGE4TEMZUG4 . You are receiving this because you authored the thread.Message ID: @.***>

zono50 commented 3 weeks ago

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

zono50 commented 3 weeks ago

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