export: fixed audio exporting with new renderer system

This commit is contained in:
itsmattkc
2020-05-21 02:18:52 +10:00
parent a2d68f6d9f
commit d5766489e4
15 changed files with 246 additions and 142 deletions
+12 -1
View File
@@ -1121,7 +1121,18 @@ void Core::CacheActiveSequence(bool in_out_only)
if (p && p->GetConnectedViewer()) {
// FIXME: Hardcoded divider...
// FIXME: Consider preventing caching the footage viewer
CacheTask* task = new CacheTask(p->GetConnectedViewer(), 2, in_out_only);
VideoRenderingParams vrp(p->GetConnectedViewer()->video_params(),
PixelFormat::instance()->GetConfiguredFormatForMode(RenderMode::kOffline),
RenderMode::kOffline,
2);
AudioRenderingParams arp(p->GetConnectedViewer()->audio_params(),
SampleFormat::kInternalFormat);
CacheTask* task = new CacheTask(p->GetConnectedViewer(),
vrp,
arp,
in_out_only);
TaskDialog* dialog = new TaskDialog(task, tr("Caching Sequence"), main_window_);
dialog->open();