X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_panel.cc;h=183a3d4b9817ca8cfe89425e583eb69966f2cbcc;hb=e0b2ef3dbac6fc4900cad6fea4395c212578602b;hp=ccdb579079dc166ef79acc1269760de64ae2f0ea;hpb=7d9cb77d1c83345d463a327ea10da921fbcfd956;p=dcpomatic.git diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index ccdb57907..183a3d4b9 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -88,7 +88,7 @@ AudioPanel::AudioPanel (ContentPanel* p) /// TRANSLATORS: this is an abbreviation for milliseconds, the unit of time _delay_ms_label = create_label (this, _("ms"), false); - _mapping = new AudioMappingView (this); + _mapping = new AudioMappingView (this, _("Content"), _("content"), _("DCP"), _("DCP")); _sizer->Add (_mapping, 1, wxEXPAND | wxALL, 6); _description = new StaticText (this, wxT(" \n"), wxDefaultPosition, wxDefaultSize); @@ -251,18 +251,14 @@ AudioPanel::gain_calculate_button_clicked () { GainCalculatorDialog* d = new GainCalculatorDialog (this); int const r = d->ShowModal (); + optional c = d->db_change(); - if (r == wxID_CANCEL || d->wanted_fader() == 0 || d->actual_fader() == 0) { + if (r == wxID_CANCEL || !c) { d->Destroy (); return; } - _gain->wrapped()->SetValue ( - Config::instance()->cinema_sound_processor()->db_for_fader_change ( - d->wanted_fader (), - d->actual_fader () - ) - ); + _gain->wrapped()->SetValue (*c); /* This appears to be necessary, as the change is not signalled, I think.