Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No music in RetroPie #25

Closed
DrBuns3n opened this issue Nov 12, 2020 · 6 comments
Closed

No music in RetroPie #25

DrBuns3n opened this issue Nov 12, 2020 · 6 comments

Comments

@DrBuns3n
Copy link

I compiled jfsw on a Pi4 running RetroPie 4.7, but although there's sound effects, the music is not playing.

I copied the MUSIC folder to the jfsw folder on my Pi. I understand JFSW expects the music tracks to be in the same folder as the binary so I edited the config file, /home/pi/.jfsw/sw.cfg and added the music folder as below:

OggTrackName = "MUSIC/track??.ogg"

I also tried the default location for the music tracks and reverted the sw.cfg file, but that didn't make any difference.

@jonof
Copy link
Owner

jonof commented Nov 14, 2020

I suggest first verifying that the game was built with Ogg Vorbis support by running this command at a terminal: ldd /path/to/jfsw/sw | grep -E 'ogg|vorbis'

You should see output like:

$ ldd sw | grep -E 'ogg|vorbis'
        libvorbisfile.so.3 => /usr/lib/.../libvorbisfile.so.3 (0x.....)
        libvorbis.so.0 => /usr/lib/.../libvorbis.so.0 (0x.....)
        libogg.so.0 => /usr/lib/.../libogg.so.0 (0x.....)

If you don't see that, you'll want to install the libvorbis-dev package and use make clean sw to recompile.
If you do see output like above, then something else is going on and I'll try to think of what it could be.

@s1eve-mcdichae1
Copy link

s1eve-mcdichae1 commented Mar 13, 2022

Posting to this issue instead of starting a new one since I also am having music issues on RetroPie.

Should there be MIDI music if I don't have the OGG tracks? The OGG tracks do work if I have them, I'm just trying to do it without them, if that is even possible.

I have built with:

make DATADIR="/home/pi/RetroPie/roms/ports/shadowwarrior" RELEASE=1 USE_POLYMOST=1 USE_OPENGL=USE_GLES2 WITHOUT_GTK=1

SFX and Ambience work. OGG music works if tracks are present in DATADIR. No music at all if OGG tracks are not present.

I've tried building and playing both with and without libfluidsynth-dev installed. When it was installed, launching the game took a bit longer as it scrolled through some kind of ("socket failure"? I forget exactly) errors but it eventually did load, but there still wasn't any music. Other possibly-relevant packages I have installed are: libgl1-mesa-dev libsdl2-dev libvorbis-dev timidity freepats

I'm on Raspberry Pi 4 using Raspbian/Debian 10 lite (terminal, no X/desktop environment.)

I have tried it with the sw.grp and sw.rts files from the GOG Classic Complete edition, as well as from the SWINST directory of the Shadow Warrior (USA) CD-ROM. Do I need anything besides these two files?

@jonof
Copy link
Owner

jonof commented Mar 13, 2022

The Registered version sw.grp doesn't provide MIDI music. Only the Shareware version has it.

@s1eve-mcdichae1
Copy link

s1eve-mcdichae1 commented Mar 14, 2022

The Registered version sw.grp doesn't provide MIDI music. Only the Shareware version has it.

Ah, I did not know that, however I still am getting no music even with the shareware version. I have a console log, if it helps. I see these "cannot connect to server socket err" but I don't know what they mean:

Executing: /opt/retropie/ports/jfsw/sw ""
fluidsynth: warning: Failed to pin the sample data to RAM; swapping is possible.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
exec of JACK server (command = "/usr/bin/jackd") failed: No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
Cannot connect to server socket err = No such file or directory

(full log at https://pastebin.com/WSC2nYcC)

@jonof
Copy link
Owner

jonof commented Mar 15, 2022

FluidSynth tries to use the JACK output driver by default. With FluidSynth version 1.1 you would need to tell it to use ALSA or PulseAudio instead via the ~/.jfsw/sw.cfg file, e.g.

[Sound Setup]
MusicParams = "audio.driver=pulseaudio"
FXDevice = 0
...

@s1eve-mcdichae1
Copy link

@jonof this worked with "audio.driver=alsa", thanks.

@jonof jonof closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants