C# 클래스 TagLib.Ogg.Codecs.Vorbis

상속: Codec, ICodec, IAudioCodec
파일 보기 프로젝트 열기: secred/Tachycardia

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
PacketType ( ByteVector packet ) : int

Gets the packet type for a specified Vorbis packet.

Vorbis ( ) : System

Constructs and initializes a new instance of .

메소드 상세

FromPacket() 공개 정적인 메소드

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. ///
리턴 Codec

GetDuration() 공개 메소드

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. ///
리턴 System.TimeSpan

ReadPacket() 공개 메소드

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. ///
리턴 bool