using namespace ARDOUR;
ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
- ArdourDialog (new_dialog ? _("New export format profile") : _("Edit export format profile")),
+ ArdourDialog (new_dialog ? _("New Export Format Profile") : _("Edit Export Format Profile")),
format (format),
manager (format),
original_state (format->get_state()),
sample_rate_label (_("Sample rate"), Gtk::ALIGN_LEFT),
src_quality_label (_("Sample rate conversion quality:"), Gtk::ALIGN_RIGHT),
- encoding_options_label (_(""), Gtk::ALIGN_LEFT),
+ encoding_options_label ("", Gtk::ALIGN_LEFT),
/* Changing encoding options from here on */
if (sample_rate_view.get_selection()->count_selected_rows() == 0) {
Gtk::ListStore::Children::iterator it;
for (it = sample_rate_list->children().begin(); it != sample_rate_list->children().end(); ++it) {
- if ((nframes_t) (*it)->get_value (sample_rate_cols.ptr)->rate == _session->nominal_frame_rate()) {
+ if ((framecnt_t) (*it)->get_value (sample_rate_cols.ptr)->rate == _session->nominal_frame_rate()) {
sample_rate_view.get_selection()->select (it);
break;
}
trim_start_checkbox.set_active (spec->trim_beginning());
silence_start = spec->silence_beginning_time();
- silence_start_checkbox.set_active (spec->silence_beginning() > 0);
+ silence_start_checkbox.set_active (spec->silence_beginning_time().not_zero());
trim_end_checkbox.set_active (spec->trim_end());
silence_end = spec->silence_end_time();
- silence_end_checkbox.set_active (spec->silence_end() > 0);
+ silence_end_checkbox.set_active (spec->silence_end_time().not_zero());
for (Gtk::ListStore::Children::iterator it = src_quality_list->children().begin(); it != src_quality_list->children().end(); ++it) {
if (it->get_value (src_quality_cols.id) == spec->src_quality()) {
}
for (Gtk::ListStore::Children::iterator it = format_list->children().begin(); it != format_list->children().end(); ++it) {
- if (it->get_value (format_cols.ptr)->get_format_id() == spec->format_id()) {
- it->get_value (format_cols.ptr)->set_selected (true);
+ boost::shared_ptr<ARDOUR::ExportFormat> format_in_list = it->get_value (format_cols.ptr);
+ if (format_in_list->get_format_id() == spec->format_id() &&
+ // BWF has the same format id with wav, so we need to check this.
+ format_in_list->has_broadcast_info() == spec->has_broadcast_info()) {
+
+ format_in_list->set_selected (true);
break;
}
}
}
void
-ExportFormatDialog::update_compatibility_selection (Glib::ustring const & path)
+ExportFormatDialog::update_compatibility_selection (std::string const & path)
{
Gtk::TreeModel::iterator iter = compatibility_view.get_model ()->get_iter (path);
template<typename T, typename ColsT>
void
ExportFormatDialog::change_compatibility (bool compatibility, boost::weak_ptr<T> w_ptr, Glib::RefPtr<Gtk::ListStore> & list, ColsT & cols,
- Glib::ustring const & c_incompatible, Glib::ustring const & c_compatible)
+ std::string const & c_incompatible, std::string const & c_compatible)
{
boost::shared_ptr<T> ptr = w_ptr.lock();
ExportFormatDialog::update_clock (AudioClock & clock, ARDOUR::AnyTime const & time)
{
// TODO position
- clock.set (_session->convert_to_frames_at (0, time), true);
+ clock.set (_session->convert_to_frames (time), true);
AudioClock::Mode mode(AudioClock::Timecode);
return;
}
- nframes_t frames = clock.current_duration();
+ framecnt_t frames = clock.current_duration();
switch (clock.mode()) {
case AudioClock::Timecode: