From 15e1b8f675965e082bf975cb3e97ed3e81484232 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 4 Nov 2022 21:22:34 +0100 Subject: [PATCH] GUI support for libsndfile mp3 support --- gtk2_ardour/export_format_dialog.cc | 14 ++++++++++++++ gtk2_ardour/export_format_dialog.h | 1 + 2 files changed, 15 insertions(+) diff --git a/gtk2_ardour/export_format_dialog.cc b/gtk2_ardour/export_format_dialog.cc index 173c2b8142..a59eb64744 100644 --- a/gtk2_ardour/export_format_dialog.cc +++ b/gtk2_ardour/export_format_dialog.cc @@ -1113,6 +1113,7 @@ ExportFormatDialog::change_encoding_options (ExportFormatPtr ptr) boost::shared_ptr ogg_ptr; boost::shared_ptr flac_ptr; boost::shared_ptr bwf_ptr; + boost::shared_ptr mpeg_ptr; boost::shared_ptr ffmpeg_ptr; if ((linear_ptr = boost::dynamic_pointer_cast (ptr))) { @@ -1123,6 +1124,8 @@ ExportFormatDialog::change_encoding_options (ExportFormatPtr ptr) show_flac_enconding_options (flac_ptr); } else if ((bwf_ptr = boost::dynamic_pointer_cast (ptr))) { show_bwf_enconding_options (bwf_ptr); + } else if ((mpeg_ptr = boost::dynamic_pointer_cast (ptr))) { + show_mpeg_enconding_options (mpeg_ptr); } else if ((ffmpeg_ptr = boost::dynamic_pointer_cast (ptr))) { show_ffmpeg_enconding_options (ffmpeg_ptr); } else { @@ -1205,6 +1208,17 @@ ExportFormatDialog::show_bwf_enconding_options (boost::shared_ptr ptr) +{ + encoding_options_label.set_label (_("Variable bit rate quality")); + encoding_options_table.resize (1, 1); + encoding_options_table.attach (codec_quality_combo, 0, 1, 0, 1); + fill_codec_quality_lists (ptr); + + show_all_children (); +} + void ExportFormatDialog::show_ffmpeg_enconding_options (boost::shared_ptr ptr) { diff --git a/gtk2_ardour/export_format_dialog.h b/gtk2_ardour/export_format_dialog.h index b50a211804..f8fd264d5d 100644 --- a/gtk2_ardour/export_format_dialog.h +++ b/gtk2_ardour/export_format_dialog.h @@ -168,6 +168,7 @@ private: void show_ogg_enconding_options (boost::shared_ptr ptr); void show_flac_enconding_options (boost::shared_ptr ptr); void show_bwf_enconding_options (boost::shared_ptr ptr); + void show_mpeg_enconding_options (boost::shared_ptr ptr); void show_ffmpeg_enconding_options (boost::shared_ptr ptr); void fill_sample_format_lists (boost::shared_ptr ptr);