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

Moderator: Raze Developers

[Since release] Blood: No sound under Linux.

Postby mjr4077au » Thu Jun 25, 2020 6:25 am

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 allExpand view
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
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Graf Zahl » Thu Jun 25, 2020 6:34 am

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby sinisterseed » Thu Jun 25, 2020 7:08 am

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
sinisterseed
GZDoom RO Translator & Raze Tester
 
Joined: 05 Nov 2019
Twitch ID: sixhundredsixteen
Github ID: sinisterseed
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Graf Zahl » Thu Jun 25, 2020 7:11 am

My guess is that sounds.rff wasn't loaded. That's why I asked for the startup log.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby mjr4077au » Thu Jun 25, 2020 3:20 pm

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.
You do not have the required permissions to view the files attached to this post.
User avatar
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Graf Zahl » Thu Jun 25, 2020 3:24 pm

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby mjr4077au » Thu Jun 25, 2020 3:34 pm

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

Code: Select allExpand view
[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]$
User avatar
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby _mental_ » Fri Jun 26, 2020 12:05 am

Will it work if you change SOUNDS.RFF filename to lowercase?
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby mjr4077au » Fri Jun 26, 2020 12:08 am

_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
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby mjr4077au » Wed Sep 16, 2020 4:21 pm

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
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Rachael » Wed Sep 16, 2020 5:33 pm

In my opinion "POSIX" and "correct" are not directly synonymous.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby mjr4077au » Wed Sep 16, 2020 5:34 pm

Heh, agreed so I thought I'd ask the collective about it :)
User avatar
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Rachael » Wed Sep 16, 2020 5:35 pm

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
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby mjr4077au » Wed Sep 16, 2020 5:37 pm

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
mjr4077au
 
Joined: 17 Jun 2019
Location: Gosford NSW, Australia
Discord: mjr4077au#1027
Github ID: mjr4077au
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

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

Postby Rachael » Wed Sep 16, 2020 5:38 pm

Agreed. I was just weighing robustness and simplicity. :)
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Next

Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests