Scale sounds playing on actor

Moderator: GZDoom Developers

Post Reply
User avatar
SanyaWaffles
Posts: 841
Joined: Thu Apr 25, 2013 12:21 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11 for the Motorola Powerstack II
Graphics Processor: nVidia with Vulkan support
Location: The Corn Fields
Contact:

Scale sounds playing on actor

Post by SanyaWaffles »

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
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Scale sounds playing on actor

Post by Nash »

You can change the volume of currently-playing sounds with A_SoundVolume.
User avatar
SanyaWaffles
Posts: 841
Joined: Thu Apr 25, 2013 12:21 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11 for the Motorola Powerstack II
Graphics Processor: nVidia with Vulkan support
Location: The Corn Fields
Contact:

Re: Scale sounds playing on actor

Post by SanyaWaffles »

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

Thanks. :D
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”