mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-18 21:31:16 +00:00
Fix miniaudio glitch by disabling Doppler effect (#55)
This commit is contained in:
parent
c91260e440
commit
21b6605ad8
@ -174,6 +174,11 @@ void MxWavePresenter::StartingTickle()
|
|||||||
goto done;
|
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);
|
ma_sound_set_looping(&m_sound, m_action->IsLooping() ? m_action->GetLoopCount() > 1 : MA_TRUE);
|
||||||
|
|
||||||
SetVolume(((MxDSSound*) m_action)->GetVolume());
|
SetVolume(((MxDSSound*) m_action)->GetVolume());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user