Using Sound:Play and Sound:Play one-shot, there seems to be no way to set the relative volume of the sound? I say relative since the audio mixer controls the main volume for the sound FX.
Changing the volume of the recorded sound would be a very cumbersome solution and sometimes the same sound should be played louder than at other times.
Am I missing something here?
Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
The Sound: Change volume Action can be used to change a Sound object's relative volume. The Sound: Play one-shot Action is a convenience tool that allows audio playback without need for a Sound component, so you'll need a Sound component for greater control.
Ok, I subclassed ActionSoundShot, added a public relativeVolume field and used it while setting the volume:
float volume = Options.GetSFXVolume() * relativeVolume;
Thanks