- /* Resample to a DCI-approved sample rate */
- return dcp_audio_frame_rate (content_audio_frame_rate ());
+ shared_ptr<const Film> film = _film.lock ();
+ assert (film);
+
+ FrameRateChange frc = film->active_frame_rate_change (position ());
+
+ OutputAudioFrame const len = divide_with_round (
+ audio_length() * output_audio_frame_rate() * frc.source,
+ content_audio_frame_rate() * film->video_frame_rate()
+ );
+
+ return film->audio_frames_to_time (len);