summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/NullSoundStream.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-07-22 09:11:15 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-07-23 17:53:21 -0500
commitff0560574e50e384d33f2620d231461b9bd8662f (patch)
treed92f2d4b45b6f21e73d6e011b844d96ebe24f411 /Source/Core/AudioCommon/NullSoundStream.cpp
parent10cedc90af0068d2a78a454914c4d7ca4c1cdbdf (diff)
AudioCommon/Mixer: Skip sample processing when NullSoundStream is being used.
Diffstat (limited to 'Source/Core/AudioCommon/NullSoundStream.cpp')
-rw-r--r--Source/Core/AudioCommon/NullSoundStream.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/AudioCommon/NullSoundStream.cpp b/Source/Core/AudioCommon/NullSoundStream.cpp
index 3c7a0ebb98..d731f16913 100644
--- a/Source/Core/AudioCommon/NullSoundStream.cpp
+++ b/Source/Core/AudioCommon/NullSoundStream.cpp
@@ -5,6 +5,9 @@
bool NullSound::Init()
{
+ // Make Mixer aware that audio output is disabled.
+ GetMixer()->SetSampleRate(0);
+
return true;
}