[Multiple] Sounds mute/reset after returning from menu

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.
markanini
Posts: 210
Joined: Sat Jan 18, 2020 6:10 am

[Multiple] Sounds mute/reset after returning from menu

Post by markanini »

Reporting for posterity. This happens in Duke, Blood and RR. Environment, player, enemy sounds get cut when entering menu, which is normal. However they don't continue when going back out of the menu. Easiest to test with Blood demo loop.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49141
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Multiple] Sounds mute/reset after returning from menu

Post by Graf Zahl »

Just for clarification.

- Is this different from EDuke and NBlood?
- Do looping or repeating sounds get restarted after the menu?
markanini
Posts: 210
Joined: Sat Jan 18, 2020 6:10 am

Re: [Multiple] Sounds mute/reset after returning from menu

Post by markanini »

Graf Zahl wrote: - Is this different from EDuke and NBlood?
Yes, at least in week old nightlies.
Graf Zahl wrote:- Do looping or repeating sounds get restarted after the menu?
No. I have to re-enter the sector that triggers it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49141
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Multiple] Sounds mute/reset after returning from menu

Post by Graf Zahl »

Ok. Currently the sounds are just terminated. I think it may be better to pause game sounds while in the menu and restart afterward, that should eliminate these issues.
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support

Re: [Multiple] Sounds mute/reset after returning from menu

Post by sinisterseed »

Although not of much help I think - considering that ambient sounds are broken in SW currently - I checked how VoidSW behaves in this regard and it seems ambient sounds in the level at least keep looping while the menu is open, and the one-liners finish instead of being cut off the moment it's opened.

Sound effects such as explosions do seem to get stopped there when opening the menu though, they don't seem to keep looping or restart after resuming the game.
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support

Re: [Multiple] Sounds mute/reset after returning from menu

Post by sinisterseed »

Update here, regarding one-liners specifically this time:

Opening the menu in Raze while one-liners are playing causes them to be cut off. In EDuke32 and Rednukem opening the menu only pauses the one-liners and they resume correctly after closing it, while in Raze they just stop. In NBlood and VoidSW the one-liners play uninterrupted when opening menus, but that's not exactly optimal. The Duke route seems to be the best to take here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49141
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Multiple] Sounds mute/reset after returning from menu

Post by Graf Zahl »

Menu now pauses the sound system instead of stopping all sounds.

Return to “Closed Bugs [Raze]”