浏览代码

UI: Fix audio recording for lossless simple (#1616)

The first audio track was not recorded following the API changes for
 custom ffmpeg recording (adding multi-track support).
 This fixes the issue (spotted by EposVox, thanks to him for the report).
pkv 6 年之前
父节点
当前提交
1f5dd38a40
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      UI/window-basic-main-outputs.cpp

+ 2 - 0
UI/window-basic-main-outputs.cpp

@@ -242,6 +242,8 @@ void SimpleOutput::LoadRecordingPreset_Lossless()
 	obs_data_set_string(settings, "video_encoder", "utvideo");
 	obs_data_set_string(settings, "audio_encoder", "pcm_s16le");
 
+	int aMixes = 1;
+	obs_output_set_mixers(fileOutput, aMixes);
 	obs_output_update(fileOutput, settings);
 	obs_data_release(settings);
 }