viewer: pause audio cache on playback
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user