+void
+AudioPanel::setup_description ()
+{
+ AudioContentList ac = _editor->selected_audio_content ();
+ if (ac.size () != 1) {
+ _description->SetLabel ("");
+ return;
+ }
+
+ shared_ptr<AudioContent> acs = ac.front ();
+ if (acs->content_audio_frame_rate() != acs->output_audio_frame_rate ()) {
+ _description->SetLabel (wxString::Format (
+ _("Audio will be resampled from %.3fkHz to %.3fkHz."),
+ acs->content_audio_frame_rate() / 1000.0,
+ acs->output_audio_frame_rate() / 1000.0
+ ));
+ } else {
+ _description->SetLabel (_("Audio will not be resampled."));
+ }
+}
+