#include "audio_content.h"
+#include "audio_decoder.h"
#include "content.h"
#include "dcp_content.h"
#include "dcpomatic_log.h"
if (_decoder->video) {
_decoder->video->Data.connect (boost::bind(&Piece::video, this, _1, _2, _3, _4));
}
+
+ if (_decoder->audio) {
+ _decoder->audio->Data.connect (boost::bind(&Piece::audio, this, _1, _2, _3));
+ }
}
}
+void
+Piece::audio (AudioStreamPtr stream, shared_ptr<const AudioBuffers> audio, Frame frame)
+{
+ Audio (PieceAudio(stream, audio, frame));
+}
+
+
void
Piece::update_pull_to (DCPTime& pull_to) const
{