AudioStream: Fix crash with timestretch disabled

This commit is contained in:
Stenzek
2025-08-13 16:38:44 +10:00
parent 0a53bc47c3
commit 09a3c99c3b

View File

@@ -900,6 +900,9 @@ void AudioStream::StretchOverrun()
void AudioStream::EmptyStretchBuffers()
{
if (!IsStretchEnabled())
return;
m_stretch_reset = STRETCH_RESET_THRESHOLD;
// Wipe soundtouch samples. If we don't do this and we're switching from a high tempo to low,