From 84de151693d00cc48123f5f50de14328846f6667 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:38:35 -0700 Subject: [PATCH] viewer: change playback interval --- app/widget/viewer/viewer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/widget/viewer/viewer.cpp b/app/widget/viewer/viewer.cpp index 524ac7a17..9d3d976f0 100644 --- a/app/widget/viewer/viewer.cpp +++ b/app/widget/viewer/viewer.cpp @@ -49,8 +49,11 @@ namespace olive { QVector ViewerWidget::instances_; -// NOTE: Hardcoded interval of size of audio chunk to render and send to the output at a time -const rational ViewerWidget::kAudioPlaybackInterval = rational(1, 8); +// NOTE: Hardcoded interval of size of audio chunk to render and send to the output at a time. +// We want this to be as long as possible so the code has plenty of time to send the audio +// while also being as short as possible so users get relatively immediate feedback when +// changing values. 1/4 second seems to be a good middleground. +const rational ViewerWidget::kAudioPlaybackInterval = rational(1, 4); const int kMaxPreQueueSize = 8;