Vorbis Quality Config GUI
This commit is contained in:
parent
7b709b3cea
commit
0268489c78
@ -1026,13 +1026,14 @@ ExportFormatDialog::show_linear_enconding_options (boost::shared_ptr<ARDOUR::Exp
|
||||
}
|
||||
|
||||
void
|
||||
ExportFormatDialog::show_ogg_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatOggVorbis> /*ptr*/)
|
||||
ExportFormatDialog::show_ogg_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatOggVorbis> ptr)
|
||||
{
|
||||
encoding_options_label.set_label (_("Ogg Vorbis options"));
|
||||
|
||||
encoding_options_table.resize (1, 1);
|
||||
encoding_options_table.attach (tag_checkbox, 0, 1, 0, 1);
|
||||
|
||||
encoding_options_table.resize (2, 1);
|
||||
encoding_options_table.attach (codec_quality_combo, 0, 1, 0, 1);
|
||||
encoding_options_table.attach (tag_checkbox, 0, 1, 1, 2);
|
||||
fill_codec_quality_lists (ptr);
|
||||
show_all_children ();
|
||||
}
|
||||
|
||||
@ -1075,25 +1076,7 @@ ExportFormatDialog::show_ffmpeg_enconding_options (boost::shared_ptr<ARDOUR::Exp
|
||||
encoding_options_label.set_label (_("FFMPEG/MP3 options"));
|
||||
encoding_options_table.resize (1, 1);
|
||||
encoding_options_table.attach (codec_quality_combo, 0, 1, 0, 1);
|
||||
|
||||
HasCodecQuality::CodecQualityList const & codecs = ptr->get_codec_qualities();
|
||||
|
||||
codec_quality_list->clear();
|
||||
for (HasCodecQuality::CodecQualityList::const_iterator it = codecs.begin(); it != codecs.end(); ++it) {
|
||||
|
||||
Gtk::TreeModel::iterator iter = codec_quality_list->append();
|
||||
Gtk::TreeModel::Row row = *iter;
|
||||
row[codec_quality_cols.quality] = (*it)->quality;
|
||||
row[codec_quality_cols.label] = (*it)->name;
|
||||
}
|
||||
|
||||
for (Gtk::ListStore::Children::iterator it = codec_quality_list->children().begin(); it != codec_quality_list->children().end(); ++it) {
|
||||
if (it->get_value (codec_quality_cols.quality) == format->codec_quality()) {
|
||||
codec_quality_combo.set_active (it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
fill_codec_quality_lists (ptr);
|
||||
show_all_children ();
|
||||
}
|
||||
|
||||
@ -1140,6 +1123,28 @@ ExportFormatDialog::fill_sample_format_lists (boost::shared_ptr<ARDOUR::HasSampl
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ExportFormatDialog::fill_codec_quality_lists (boost::shared_ptr<ARDOUR::HasCodecQuality> ptr)
|
||||
{
|
||||
HasCodecQuality::CodecQualityList const & codecs = ptr->get_codec_qualities();
|
||||
|
||||
codec_quality_list->clear();
|
||||
for (HasCodecQuality::CodecQualityList::const_iterator it = codecs.begin(); it != codecs.end(); ++it) {
|
||||
|
||||
Gtk::TreeModel::iterator iter = codec_quality_list->append();
|
||||
Gtk::TreeModel::Row row = *iter;
|
||||
row[codec_quality_cols.quality] = (*it)->quality;
|
||||
row[codec_quality_cols.label] = (*it)->name;
|
||||
}
|
||||
|
||||
for (Gtk::ListStore::Children::iterator it = codec_quality_list->children().begin(); it != codec_quality_list->children().end(); ++it) {
|
||||
if (it->get_value (codec_quality_cols.quality) == format->codec_quality()) {
|
||||
codec_quality_combo.set_active (it);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ExportFormatDialog::end_dialog ()
|
||||
{
|
||||
|
@ -162,6 +162,7 @@ private:
|
||||
void show_ffmpeg_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatFFMPEG> ptr);
|
||||
|
||||
void fill_sample_format_lists (boost::shared_ptr<ARDOUR::HasSampleFormat> ptr);
|
||||
void fill_codec_quality_lists (boost::shared_ptr<ARDOUR::HasCodecQuality> ptr);
|
||||
|
||||
/*** GUI components ***/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user