Add pause on unfocus feature

This commit is contained in:
Pheenoh
2026-04-19 10:02:55 -06:00
parent 4e7711725a
commit 783230b654
9 changed files with 40 additions and 0 deletions
+8
View File
@@ -77,6 +77,14 @@ void dusk::audio::SetMasterVolume(const f32 value) {
MasterVolume = value;
}
void dusk::audio::SetPaused(const bool paused) {
if (paused) {
SDL_PauseAudioStreamDevice(PlaybackStream);
} else {
SDL_ResumeAudioStreamDevice(PlaybackStream);
}
}
void dusk::audio::SetEnableReverb(const bool value) {
JASCriticalSection section;