This abstract class implements ICodec to provide support for processing packets from an Ogg logical bitstream.
Unsupported Ogg codecs can be added by creating child classes and registering them using AddCodecProvider.
Inheritance: ICodec
示例#1
0
 /// <summary>
 ///    Constructs and initializes a new instance of <see
 ///    cref="Paginator" /> for a given <see cref="Codec" />
 ///    object.
 /// </summary>
 /// <param name="codec">
 ///    A <see cref="Codec"/> object to use when processing
 ///    packets.
 /// </param>
 public Paginator(Codec codec)
 {
     this.codec = codec;
 }
示例#2
0
 /// <summary>
 ///    Gets the duration of the stream represented by the
 ///    current instance.
 /// </summary>
 /// <param name="lastAbsoluteGranularPosition">
 ///    A <see cref="long" /> value containing the absolute
 ///    granular position of the last page in the bitstream.
 /// </param>
 /// <returns>
 ///    A <see cref="TimeSpan" /> object containing the duration
 ///    of the stream represented by the current instance.
 /// </returns>
 public TimeSpan GetDuration(long lastAbsoluteGranularPosition)
 {
     return(Codec.GetDuration(first_absolute_granular_position, lastAbsoluteGranularPosition));
 }