MCPcopy Create free account
hub / github.com/Lovrom8/RSMods / HandleAudioBackgroundToggle

Function HandleAudioBackgroundToggle

DLL/ModManager.cpp:488–495  ·  view source on GitHub ↗

Handles dynamic toggling of audio-in-background feature.

Source from the content-addressed store, hash-verified

486 /// Handles dynamic toggling of audio-in-background feature.
487 /// </summary>
488 void HandleAudioBackgroundToggle()
489 {
490 if (Settings::ReturnSettingValue("AllowAudioInBackground") == "on" && !VolumeControl::allowedAltTabbingWithAudio) {
491 VolumeControl::AllowAltTabbingWithAudio();
492 } else if (Settings::ReturnSettingValue("AllowAudioInBackground") == "off" && VolumeControl::allowedAltTabbingWithAudio) {
493 VolumeControl::DisableAltTabbingWithAudio(); // User originally wanted to NOT allow audio in the background, but they changed their mind, so we have to turn it on/
494 }
495 }
496
497 /// <summary>
498 /// Handles dynamic toggling of the two RTC message box bypass.

Callers 1

HandlePostGameLoadedModsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected