AudioDecoder::AudioDecoder (shared_ptr<const Film> f, shared_ptr<const AudioContent> c)
: Decoder (f)
+ , _next_audio (0)
, _audio_content (c)
, _output_audio_frame_rate (_audio_content->output_audio_frame_rate (f))
{
{
/* XXX: map audio to 5.1 */
- /* Maybe sample-rate convert */
+ /* Maybe resample */
if (_swr_context) {
/* Compute the resampled frames count and add 32 for luck */
}
Audio (data, time);
+
+ _next_audio = time + _film->audio_frames_to_time (data->frames());
}