Method | Description | |
---|---|---|
AddCodecProvider ( CodecProvider provider ) : void |
Adds a codec A CodecProvider delegate is used to add support for new Codec subclasses in |
|
GetCodec ( ByteVector packet ) : Codec |
Determines the correct codec to use for a stream header packet. This method will first use CodecProvider delegates registered with AddCodecProvider and then attempt to use the built-in codecs. |
|
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.
|
public static AddCodecProvider ( CodecProvider provider ) : void | ||
provider | CodecProvider |
/// A |
return | void |
public static GetCodec ( ByteVector packet ) : Codec | ||
packet | ByteVector |
/// A |
return | Codec |
public abstract GetDuration ( long firstGranularPosition, long lastGranularPosition ) : System.TimeSpan | ||
firstGranularPosition | long |
/// A |
lastGranularPosition | long |
/// A |
return | System.TimeSpan |
public abstract ReadPacket ( ByteVector packet, int index ) : bool | ||
packet | ByteVector |
/// A |
index | int |
/// A |
return | bool |