[Already In] Scale sounds playing on actor

Moderator: GZDoom Developers

Scale sounds playing on actor

Postby SanyaWaffles » Fri Mar 27, 2020 7:50 pm

Like how you can change the volume of music relative to the player's music volume, it'd be nice if you could dip certain playing sounds by a certain factor. For example, I got dialogue that plays, and it'd be nice to scale back other sounds as it plays.

I don't think there's a current way to do so except using A_StartSound's volume parameter, but that's only able when you start playing sounds. There's no way of doing it for sounds all ready playing as far as I can tell.
User avatar
SanyaWaffles
Wouldn't be an epic gamer if I didn't commit a few war crimes.
 
Joined: 25 Apr 2013
Location: Eastern Ohio
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
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: Scale sounds playing on actor

Postby Nash » Fri Mar 27, 2020 8:11 pm

You can change the volume of currently-playing sounds with A_SoundVolume.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: Scale sounds playing on actor

Postby SanyaWaffles » Fri Mar 27, 2020 9:32 pm

Wow. How did I miss that? I looked everywhere for a function like that.

Thanks. :D
User avatar
SanyaWaffles
Wouldn't be an epic gamer if I didn't commit a few war crimes.
 
Joined: 25 Apr 2013
Location: Eastern Ohio
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest