protected AudioMediaParser(TsStreamType streamType, TConfigurator configurator, ITsPesPacketPool pesPacketPool, IShoutcastMetadataFilterFactory shoutcastMetadataFilterFactory, IMetadataSink metadataSink) : base(streamType, configurator, pesPacketPool) { if (null == shoutcastMetadataFilterFactory) { throw new ArgumentNullException("shoutcastMetadataFilterFactory"); } if (null == metadataSink) { throw new ArgumentNullException("metadataSink"); } this._shoutcastMetadataFilterFactory = shoutcastMetadataFilterFactory; this._metadataSink = metadataSink; }
public Ac3MediaParser(ITsPesPacketPool pesPacketPool, IShoutcastMetadataFilterFactory shoutcastMetadataFilterFactory, IMetadataSink metadataSink) : base(Ac3MediaParser.StreamType, new Ac3Configurator((IMediaStreamMetadata)null, (string)null), pesPacketPool, shoutcastMetadataFilterFactory, metadataSink) { this.Parser = new Ac3Parser(pesPacketPool, new Action <IAudioFrameHeader>(this.Configurator.Configure), new Action <TsPesPacket>(((MediaParserBase <Ac3Configurator>) this).SubmitPacket)); }
public Mp3MediaParser(ITsPesPacketPool pesPacketPool, IShoutcastMetadataFilterFactory shoutcastMetadataFilterFactory, IMetadataSink metadataSink) : base(StreamType, new Mp3Configurator(null), pesPacketPool, shoutcastMetadataFilterFactory, metadataSink) { Parser = new Mp3Parser(pesPacketPool, Configurator.Configure, SubmitPacket); }
public AacMediaParser(ITsPesPacketPool pesPacketPool, IShoutcastMetadataFilterFactory shoutcastMetadataFilterFactory, IMetadataSink metadataSink) : base(StreamType, new AacConfigurator((IMediaStreamMetadata)null, null), pesPacketPool, shoutcastMetadataFilterFactory, metadataSink) { Parser = new AacParser(pesPacketPool, Configurator.Configure, SubmitPacket); }