Forward-port move of content description generation to lib/ rather than wx/.
[dcpomatic.git] / src / wx / audio_panel.cc
index b7d6979d35f20e0988f0b3135c5f0e0acc6fac5f..a2de484c0d91e1f7fb99c38fcdf1a639f2276394 100644 (file)
@@ -268,16 +268,7 @@ AudioPanel::setup_description ()
                return;
        }
 
-       shared_ptr<AudioContent> acs = ac.front ();
-       if (acs->audio_frame_rate() != acs->resampled_audio_frame_rate ()) {
-               _description->SetLabel (wxString::Format (
-                                               _("Audio will be resampled from %.3fkHz to %.3fkHz."),
-                                               acs->audio_frame_rate() / 1000.0,
-                                               acs->resampled_audio_frame_rate() / 1000.0
-                                               ));
-       } else {
-               _description->SetLabel (_("Audio will not be resampled."));
-       }
+       _description->SetLabel (std_to_wx (ac.front()->processing_description ()));
 }
 
 void