C# Class TagLib.Ogg.Codecs.Vorbis

Inheritance: Codec, ICodec, IAudioCodec
Mostrar archivo Open project: secred/Tachycardia

Public Methods

Method Description
FromPacket ( ByteVector packet ) : Codec

Implements the CodecProvider delegate to provide support for recognizing a Vorbis stream from the header packet.

GetDuration ( long firstGranularPosition, long lastGranularPosition ) : System.TimeSpan

Computes the duration of the stream using the first and last granular positions of the stream.

ReadPacket ( ByteVector packet, int index ) : bool

Reads a Ogg packet that has been encountered in the stream.

Private Methods

Method Description
PacketType ( ByteVector packet ) : int

Gets the packet type for a specified Vorbis packet.

Vorbis ( ) : System

Constructs and initializes a new instance of .

Method Details

FromPacket() public static method

Implements the CodecProvider delegate to provide support for recognizing a Vorbis stream from the header packet.
public static FromPacket ( ByteVector packet ) : Codec
packet ByteVector /// A object containing the stream /// header packet. ///
return Codec

GetDuration() public method

Computes the duration of the stream using the first and last granular positions of the stream.
public GetDuration ( long firstGranularPosition, long lastGranularPosition ) : System.TimeSpan
firstGranularPosition long /// A value containing the first granular /// position of the stream. ///
lastGranularPosition long /// A value containing the last granular /// position of the stream. ///
return System.TimeSpan

ReadPacket() public method

Reads a Ogg packet that has been encountered in the stream.
/// is . /// /// is less than zero. /// /// The data does not conform to the specificiation for the /// codec represented by the current instance. ///
public ReadPacket ( ByteVector packet, int index ) : bool
packet ByteVector /// A object containing a packet to /// be read by the current instance. ///
index int /// A value containing the index of the /// packet in the stream. ///
return bool