+
+int
+AudioContent::processed_audio_channels () const
+{
+ if (!audio_processor ()) {
+ return audio_channels ();
+ }
+
+ return audio_processor()->out_channels (audio_channels ());
+}
+
+string
+AudioContent::processing_description () const
+{
+ stringstream d;
+
+ if (audio_frame_rate() != resampled_audio_frame_rate ()) {
+ stringstream from;
+ from << fixed << setprecision(3) << (audio_frame_rate() / 1000.0);
+ stringstream to;
+ to << fixed << setprecision(3) << (resampled_audio_frame_rate() / 1000.0);
+
+ d << String::compose (_("Audio will be resampled from %1kHz to %2kHz."), from.str(), to.str());
+ } else {
+ d << _("Audio will not be resampled.");
+ }
+
+ return d.str ();
+}
+