Sound Volume
This page contain content related to how to make the menu volume system works on your sound assets.
How Does The Menu Handle Volume
The system uses sound classes to set or change volume — you can assign one of the 5 sound classes featured by the Menu to your WAV
Or Sound Cue
and the volume for this specific sound asset is going to change depending on the sound class :
Main Volume
Main_SC
True
Music Volume
Music_SC
True
SFX Volume
SFX_SC
True
Menu Volume
Menu_SC
True
Voice Volume
Voice_SC
True
Audio Output Volume
Direct Hardware Acces
False
How To Assign Sound Class To Sound Asset
Audio Output Volume
Changing or getting the volume of the default output device is achieved using the AudioFunctionalities
Class Using Both GetSystemVolume
& SetSystemVolume
Functions.
float UAudioFunctionalities::GetSystemVolume()
void UAudioFunctionalities::SetSystemVolume(float Volume)
Getting the default Audio output device name is achieved using this function located at same class as volume functions
FString UAudioFunctionalities::GetCurrentAudioDeviceName()