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 on Linux when placed in game directory #272

Open
abalfoort opened this issue Apr 3, 2023 · 1 comment
Open

No music on Linux when placed in game directory #272

abalfoort opened this issue Apr 3, 2023 · 1 comment

Comments

@abalfoort
Copy link

abalfoort commented Apr 3, 2023

Placed xx.ogg files in [gamedir]/baseq2/music/

Startup message:
No Ogg Vorbis music tracks have been found, so there will be no music.

In console:
ogg info
outputs:

Tracks:
Total: 1 Ogg/Vorbis files.
State: Stopped.

dir music
outputs:

02.ogg
03.ogg
04.ogg
05.ogg
06.ogg
07.ogg
08.ogg
09.ogg
10.ogg
11.ogg
12.ogg
13.ogg
14.ogg
15.ogg
16.ogg
17.ogg
18.ogg
19.ogg
20.ogg
21.ogg
20 files listed

If I create a symlink:
ln -s [gamedir]/baseq2/music $HOME/.quake2rtx/baseq2/music

Music is being played.

https://github.com/NVIDIA/Q2RTX/blob/master/src/client/sound/ogg.c:
I see that fs_gamedir is always pointing to $HOME/.quake2rtx.
It is overwritten in common/files.c (3450):

            add_game_dir(FS_PATH_BASE | FS_PATH_GAME,
                         "%s/"BASEGAME, sys_homedir->string);

What if we save the current fs_gamedir in a new variable. fs_gamedir_linux and use that to add to potMusicDirs?

@runlevel5
Copy link
Contributor

@abalfoort you could close this issue now

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

2 participants