[Since release] Blood: No sound under Linux.

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
mjr4077au
Posts: 829
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

[Since release] Blood: No sound under Linux.

Post by mjr4077au »

Using content from Blood: Fresh Supply, the game since at least 0.4.0 won't play back any sounds and is the only game to have this fault.

Get a lot of log spew about the following:

Code: Select all

Missing sound #35 used in ambient sound generator #4
Missing sound #18 used in ambient sound generator #5
Missing sound #35 used in ambient sound generator #6
Missing sound #17 used in ambient sound generator #40
Missing sound #35 used in ambient sound generator #41
Missing sound #8 used in ambient sound generator #56
Missing sound #4 used in ambient sound generator #177
Missing sound #4 used in ambient sound generator #178
I've tried isolating the issue but can't make heads or tails of it. I believe the issue is occurring whenever soundEngine->FindSoundByResID() and is not just limited to the calls that write the above error output.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49053
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Since release] Blood: No sound under Linux.

Post by Graf Zahl »

No idea. I had no sound issues in Blood and AFAIK the two main files, blood.rff and sounds.rff are the same as in the Plasma Pak version.
I'm afraid you'll have to debug this yourself. Can you at least post the startup log?
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by sinisterseed »

Graf Zahl wrote:No idea. I had no sound issues in Blood and AFAIK the two main files, blood.rff and sounds.rff are the same as in the Plasma Pak version.
I'm afraid you'll have to debug this yourself. Can you at least post the startup log?
I think this was posted in the wrong forum tho.

At any rate, we could send you the required files if you think that will help sorting out what went wrong in FS. I myself have not tried the remaster's file yet because, to my knowledge, upstream's support for it wasn't finalized anyway.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49053
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Since release] Blood: No sound under Linux.

Post by Graf Zahl »

My guess is that sounds.rff wasn't loaded. That's why I asked for the startup log.
User avatar
mjr4077au
Posts: 829
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by mjr4077au »

Graf Zahl wrote:My guess is that sounds.rff wasn't loaded. That's why I asked for the startup log.
Sorry, Graf. I browsed to the file but forgot to click the add button thereafter.

Indeed sounds.rff wasn't loading and I've now isolated the issue being due to case-sensitivity. When I capitalised the filename as per the log, it started working fine. Interestingly enough, this case-sensitivity only affects sounds.rff and gui.rff. blood.rff always loads no matter the case.
Attachments
raze.log
(11.19 KiB) Downloaded 33 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49053
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Since release] Blood: No sound under Linux.

Post by Graf Zahl »

That's because blood.rff isn't looked up by name but by its checksum.
So what are the names of these files on Linux?
User avatar
mjr4077au
Posts: 829
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by mjr4077au »

This is the contents of 'Blood' under ~/.config/raze:

Code: Select all

[mrichters@richters-gpc01 Blood]$ ls -l
total 62764
drwxrwxrwx 3 mrichters mrichters        8 Jun 20 12:05 addons
-rwxrwxrwx 1 mrichters mrichters    13092 Jun 20 12:04 blood.ini
-rwxrwxrwx 1 mrichters mrichters  9570681 Jun 20 12:04 blood.rff
-rwxrwxrwx 1 mrichters mrichters     7351 Jun 20 12:04 GUI.RFF
drwxrwxrwx 2 mrichters mrichters       88 Jun 20 12:05 movie
drwxr-xr-x 2 mrichters mrichters       64 Jun 26 17:24 music
-rwxrwxrwx 1 mrichters mrichters 28552775 Jun 20 12:04 SOUNDS.RFF
-rwxrwxrwx 1 mrichters mrichters     4096 Jun 20 12:04 surface.dat
-rwxrwxrwx 1 mrichters mrichters     8448 Jun 20 12:04 tables.dat
-rwxrwxrwx 1 mrichters mrichters  1881007 Jun 20 12:04 tiles000.art
-rwxrwxrwx 1 mrichters mrichters  1672613 Jun 20 12:04 tiles001.art
-rwxrwxrwx 1 mrichters mrichters  1001125 Jun 20 12:04 tiles002.art
-rwxrwxrwx 1 mrichters mrichters   960629 Jun 20 12:04 tiles003.art
-rwxrwxrwx 1 mrichters mrichters  1647911 Jun 20 12:04 tiles004.art
-rwxrwxrwx 1 mrichters mrichters  1784595 Jun 20 12:04 tiles005.art
-rwxrwxrwx 1 mrichters mrichters  1372029 Jun 20 12:04 tiles006.art
-rwxrwxrwx 1 mrichters mrichters  1330026 Jun 20 12:04 tiles007.art
-rwxrwxrwx 1 mrichters mrichters   710506 Jun 20 12:04 tiles008.art
-rwxrwxrwx 1 mrichters mrichters  1644888 Jun 20 12:04 tiles009.art
-rwxrwxrwx 1 mrichters mrichters  2762914 Jun 20 12:04 tiles010.art
-rwxrwxrwx 1 mrichters mrichters  2062428 Jun 20 12:04 tiles011.art
-rwxrwxrwx 1 mrichters mrichters  1887569 Jun 20 12:04 tiles012.art
-rwxrwxrwx 1 mrichters mrichters  1474846 Jun 20 12:04 tiles013.art
-rwxrwxrwx 1 mrichters mrichters  2009595 Jun 20 12:04 tiles014.art
-rwxrwxrwx 1 mrichters mrichters  1811110 Jun 20 12:04 tiles015.art
-rwxrwxrwx 1 mrichters mrichters    24574 Jun 20 12:04 TILES016.ART
-rwxrwxrwx 1 mrichters mrichters    10647 Jun 20 12:04 TILES017.ART
-rwxrwxrwx 1 mrichters mrichters     8192 Jun 20 12:04 voxel.dat
[mrichters@richters-gpc01 Blood]$ 
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [Since release] Blood: No sound under Linux.

Post by _mental_ »

Will it work if you change SOUNDS.RFF filename to lowercase?
User avatar
mjr4077au
Posts: 829
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by mjr4077au »

_mental_ wrote:Will it work if you change SOUNDS.RFF filename to lowercase?
Capitalising it was the fix ;). In Blood FS from Steam, it comes as lower case whereas the other files like BLOOD.RFF and GUI.RFF come capitalised.
User avatar
mjr4077au
Posts: 829
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by mjr4077au »

Thoughts on closing this one off? It's correct in a POSIX sense that the file is case-sensitive as it's a case-sensitive environment, however it's incorrect in the sense that I don't think a user should have to think about it.
User avatar
Rachael
Posts: 13527
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by Rachael »

In my opinion "POSIX" and "correct" are not directly synonymous.
User avatar
mjr4077au
Posts: 829
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by mjr4077au »

Heh, agreed so I thought I'd ask the collective about it :)
User avatar
Rachael
Posts: 13527
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by Rachael »

One idea to fix it is to query the entire folder into a string list and then doing a non-case compare with the list, and if a match is found use that entry. There may already be a facility to do this already within Raze's backend (i.e. the way it finds .GRP files). This might be the most robust way to fix it.

There's also the "easy" way, i.e. query Blood.rff, BLOOD.RFF, blood.rff.
User avatar
mjr4077au
Posts: 829
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by mjr4077au »

The first option would be best I reckon. If you go for the second, you'll have some edge case where it's named bLoOd.RfF or something and it'll get missed.
User avatar
Rachael
Posts: 13527
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [Since release] Blood: No sound under Linux.

Post by Rachael »

Agreed. I was just weighing robustness and simplicity. :)
Post Reply

Return to “Closed Bugs [Raze]”