From 28aa6975284bcedff49988346d2c71629a001628 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Wed, 1 Jul 2020 16:59:42 +1000 Subject: Don't handle cycles late if stretcher is active Timestretcher seems to be broken --- src/audio_core/stream.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp index 307d78ecd..22e8df373 100644 --- a/src/audio_core/stream.cpp +++ b/src/audio_core/stream.cpp @@ -105,7 +105,9 @@ void Stream::PlayNextBuffer(s64 cycles_late) { sink_stream.EnqueueSamples(GetNumChannels(), active_buffer->GetSamples()); - core_timing.ScheduleEvent(GetBufferReleaseNS(*active_buffer) - cycles_late, release_event, {}); + core_timing.ScheduleEvent(GetBufferReleaseNS(*active_buffer) - + (Settings::values.enable_audio_stretching ? 0 : cycles_late), + release_event, {}); } void Stream::ReleaseActiveBuffer(s64 cycles_late) { -- cgit v1.2.3