viewer: change playback interval

This commit is contained in:
itsmattkc
2021-10-09 17:38:35 -07:00
parent 006d42ecf1
commit 84de151693
+5 -2
View File
@@ -49,8 +49,11 @@ namespace olive {
QVector<ViewerWidget*> 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;