- /** Try to fetch some audio from a specific place in this content.
- * @param frame Frame to start from (after resampling, if applicable)
- * @param length Frames to get (after resampling, if applicable)
- * @param accurate true to try hard to return frames from exactly `frame', false if we don't mind nearby frames.
- * @return Time-stamped audio data which may or may not be from the location (and of the length) requested.
- */
- ContentAudio get (AudioStreamPtr stream, Frame time, Frame length, bool accurate);
+ boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film> film) const;
+ void emit (boost::shared_ptr<const Film> film, AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime);
+ void seek ();
+ void flush ();