viewer: pause audio cache on playback

This commit is contained in:
itsmattkc
2021-10-11 23:14:50 -07:00
parent 13a6c22f74
commit 67f0108827
3 changed files with 20 additions and 1 deletions
+6
View File
@@ -634,6 +634,8 @@ void ViewerWidget::PlayInternal(int speed, bool in_to_out_only)
viewer->PauseInternal();
viewer->ClearVideoAutoCacherQueue();
}
viewer->auto_cacher_.SetAudioPaused(true);
}
// If the playhead is beyond the end, restart at 0
@@ -722,6 +724,10 @@ void ViewerWidget::PauseInternal()
tempo_processor_.Close();
}
foreach (ViewerWidget* viewer, instances_) {
viewer->auto_cacher_.SetAudioPaused(false);
}
UpdateTextureFromNode();
}