Skip to content

Commit

Permalink
Fix miniaudio glitch by disabling Doppler effect (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles authored Jan 11, 2025
1 parent c91260e commit 21b6605
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LEGO1/omni/src/audio/mxwavepresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 21b6605

Please sign in to comment.