mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-04-07 20:24:26 -04:00
Fix miniaudio glitch by disabling Doppler effect (#55)
This commit is contained in:
parent
c91260e440
commit
21b6605ad8
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue