- shared_ptr<FFmpegContent> fcs = fc.front ();
-
- if (!fcs->audio_stream ()) {
- _description->SetLabel (wxT (""));
- } else {
- wxString s;
- if (fcs->audio_channels() == 1) {
- s << _("1 channel");
- } else {
- s << fcs->audio_channels() << wxT (" ") << _("channels");
- }
- s << wxT (", ") << fcs->audio_frame_rate() << _("Hz");
- _description->SetLabel (s);
- }
-}
-
-void
-AudioPanel::processor_changed ()
-{
- string const s = string_client_data (_processor->GetClientObject (_processor->GetSelection ()));
- AudioProcessor const * p = 0;
- if (s != wx_to_std (N_("none"))) {
- p = AudioProcessor::from_id (s);
- }
-
- AudioContentList c = _parent->selected_audio ();
- for (AudioContentList::const_iterator i = c.begin(); i != c.end(); ++i) {
- (*i)->set_audio_processor (p);
- }