MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / SetAudioVolume

Function SetAudioVolume

src/openrct2-ui/UiContext.cpp:1071–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069 }
1070
1071 void SetAudioVolume(float value)
1072 {
1073 auto& audioContext = GetContext()->GetAudioContext();
1074 auto* mixer = audioContext.GetMixer();
1075 if (mixer != nullptr)
1076 {
1077 mixer->SetVolume(value);
1078 }
1079 }
1080};
1081
1082std::unique_ptr<IUiContext> Ui::CreateUiContext(IPlatformEnvironment& env)

Callers 1

ProcessMessagesFunction · 0.85

Calls 3

GetContextFunction · 0.85
GetMixerMethod · 0.45
SetVolumeMethod · 0.45

Tested by

no test coverage detected