export: implemented audio bit rate setting

The UI for this isn't perfect, I just wrote this in because I needed it. But the backend is solid.
This commit is contained in:
itsmattkc
2020-12-04 01:01:50 +11:00
parent 7dd9115e3f
commit 0699795c6f
6 changed files with 45 additions and 6 deletions
+2
View File
@@ -490,6 +490,8 @@ ExportParams ExportDialog::GenerateParams() const
if (audio_enabled_->isChecked()) {
ExportCodec::Codec audio_codec = static_cast<ExportCodec::Codec>(audio_tab_->codec_combobox()->currentData().toInt());
params.EnableAudio(audio_render_params, audio_codec);
params.set_audio_bit_rate(audio_tab_->bit_rate_slider()->GetValue() * 1000);
}
return params;