From c757c1bf2241e357062f14801debf3d7f5abc6b9 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 11 Jan 2025 10:37:24 -0700 Subject: [PATCH] Fix miniaudio glitch by disabling Doppler effect --- LEGO1/omni/src/audio/mxwavepresenter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LEGO1/omni/src/audio/mxwavepresenter.cpp b/LEGO1/omni/src/audio/mxwavepresenter.cpp index e7a078ef..81161898 100644 --- a/LEGO1/omni/src/audio/mxwavepresenter.cpp +++ b/LEGO1/omni/src/audio/mxwavepresenter.cpp @@ -174,6 +174,11 @@ void MxWavePresenter::StartingTickle() goto done; } + // [library:audio] + // There is an issue with certain spatialized sounds causing an audio glitch. + // To temporarily resolve this, we can disable the Doppler effect. + // More info: https://github.com/mackron/miniaudio/issues/885 + ma_sound_set_doppler_factor(&m_sound, 0.0f); ma_sound_set_looping(&m_sound, m_action->IsLooping() ? m_action->GetLoopCount() > 1 : MA_TRUE); SetVolume(((MxDSSound*) m_action)->GetVolume());