diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-07-12 22:13:48 +1000 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-07-25 12:39:35 +1000 |
commit | d68856ab124adefd0ff52f6c120ecc03aee60365 (patch) | |
tree | 5ffeb54569d5598d485521a91bff8d3b89ba96d4 /src/audio_core/stream.cpp | |
parent | 380658c21d39cf05ac765a9284da246388cca2a4 (diff) |
Disable time stretcher for time being
Diffstat (limited to 'src/audio_core/stream.cpp')
-rw-r--r-- | src/audio_core/stream.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp index f80ab92e43..c805b9d218 100644 --- a/src/audio_core/stream.cpp +++ b/src/audio_core/stream.cpp @@ -103,11 +103,7 @@ void Stream::PlayNextBuffer(std::chrono::nanoseconds ns_late) { sink_stream.EnqueueSamples(GetNumChannels(), active_buffer->GetSamples()); - const auto time_stretch_delta = Settings::values.enable_audio_stretching.GetValue() - ? std::chrono::nanoseconds::zero() - : ns_late; - const auto future_time = GetBufferReleaseNS(*active_buffer) - time_stretch_delta; - core_timing.ScheduleEvent(future_time, release_event, {}); + core_timing.ScheduleEvent(GetBufferReleaseNS(*active_buffer) - ns_late, release_event, {}); } void Stream::ReleaseActiveBuffer(std::chrono::nanoseconds ns_late) { |