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 :

🔊 Volume Option Name
🎵 Sound Class Name
🗃️ Saved & Applied After Launch

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

All Sound Classes Are Located At Content/Full_Modern_Menu/SFX/Sound_Class

How To Assign Sound Class To Sound Asset

1

Import Sound Asset

Unreal Accept .WAV Sound asssets — once imported right click on it and press creat cue.

2

Assign Sound Class To Sound Cue

Open your new sound cue and head to Class under Sound tab and enter the correspondent sound class depending on the sound type.

Audio Output Volume

Changing or getting the volume of the default output device is achieved using the AudioFunctionalities Class Using Both GetSystemVolume& SetSystemVolumeFunctions.

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()

All Functions are exposed to blueprint and ready to use and call inside you blueprint code without of C++