using boost::shared_ptr;
AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> content, shared_ptr<Log> log)
- : _ignore (false)
+ : DecoderPart (parent)
{
BOOST_FOREACH (AudioStreamPtr i, content->streams ()) {
- _streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (content, i, parent, log));
+ _streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (content, i, parent, this, log));
}
}
void
AudioDecoder::give (AudioStreamPtr stream, shared_ptr<const AudioBuffers> data, ContentTime time)
{
- if (_ignore) {
+ if (ignore ()) {
return;
}
}
}
-/** Set this decoder never to produce any data */
-void
-AudioDecoder::set_ignore ()
-{
- _ignore = true;
-}
-
void
AudioDecoder::set_fast ()
{