summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-01 08:59:42 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-01 08:59:42 +0200
commit28aa6975284bcedff49988346d2c71629a001628 (patch)
tree59ad75a1b37070ef2f905584e12b0f560414bd53 /src/audio_core
parentaudio: Improving audio timing for multicore/single core (diff)
downloadyuzu-28aa6975284bcedff49988346d2c71629a001628.tar
yuzu-28aa6975284bcedff49988346d2c71629a001628.tar.gz
yuzu-28aa6975284bcedff49988346d2c71629a001628.tar.bz2
yuzu-28aa6975284bcedff49988346d2c71629a001628.tar.lz
yuzu-28aa6975284bcedff49988346d2c71629a001628.tar.xz
yuzu-28aa6975284bcedff49988346d2c71629a001628.tar.zst
yuzu-28aa6975284bcedff49988346d2c71629a001628.zip
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/stream.cpp4
1 files changed, 3 insertions, 1 deletions
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) {