summaryrefslogtreecommitdiff
path: root/src/audio_core/stream.cpp
diff options
context:
space:
mode:
authorGravatar David Marcec2020-07-12 22:13:48 +1000
committerGravatar David Marcec2020-07-25 12:39:35 +1000
commitd68856ab124adefd0ff52f6c120ecc03aee60365 (patch)
tree5ffeb54569d5598d485521a91bff8d3b89ba96d4 /src/audio_core/stream.cpp
parentaudio_core: Apollo Part 1, AudioRenderer refactor (diff)
downloadyuzu-d68856ab124adefd0ff52f6c120ecc03aee60365.tar.gz
yuzu-d68856ab124adefd0ff52f6c120ecc03aee60365.tar.xz
yuzu-d68856ab124adefd0ff52f6c120ecc03aee60365.zip
Disable time stretcher for time being
Diffstat (limited to 'src/audio_core/stream.cpp')
-rw-r--r--src/audio_core/stream.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp
index f80ab92e4..c805b9d21 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) {
103 103
104 sink_stream.EnqueueSamples(GetNumChannels(), active_buffer->GetSamples()); 104 sink_stream.EnqueueSamples(GetNumChannels(), active_buffer->GetSamples());
105 105
106 const auto time_stretch_delta = Settings::values.enable_audio_stretching.GetValue() 106 core_timing.ScheduleEvent(GetBufferReleaseNS(*active_buffer) - ns_late, release_event, {});
107 ? std::chrono::nanoseconds::zero()
108 : ns_late;
109 const auto future_time = GetBufferReleaseNS(*active_buffer) - time_stretch_delta;
110 core_timing.ScheduleEvent(future_time, release_event, {});
111} 107}
112 108
113void Stream::ReleaseActiveBuffer(std::chrono::nanoseconds ns_late) { 109void Stream::ReleaseActiveBuffer(std::chrono::nanoseconds ns_late) {