OggPacketSequence
A sequence of Ogg packets.
A sequence of Ogg packets.
A sequence of Ogg packets.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
OggPacketSequenceConstructor
public OggPacketSequence();Properties3
GranulePositionsProperty
public long[] GranulePositions { get; set; }Contains the granule positions for each page in this packet sequence.
PacketDataProperty
public Reckfell.Collections.Array<Reckfell.Collections.Array> PacketData { get; set; }Contains the raw packets that make up this OggPacketSequence.
SamplingRateProperty
public float SamplingRate { get; set; }Holds sample rate information about this sequence. Must be set by another class that actually understands the codec.
Methods8
GetLengthfloat
public float GetLength();The length of this stream, in seconds.
Returns
floatGetPacketDataReckfell.Collections.Array<Reckfell.Collections.Array>
public Reckfell.Collections.Array<Reckfell.Collections.Array> GetPacketData();Returns
Reckfell.Collections.Array<Reckfell.Collections.Array>GetPacketGranulePositionslong[]
public long[] GetPacketGranulePositions();Returns
long[]GetSamplingRatefloat
public float GetSamplingRate();Returns
floatSetPacketDatavoid
public void SetPacketData(Reckfell.Collections.Array<Reckfell.Collections.Array> packetData);| Name | Type | Default |
|---|---|---|
packetData | Reckfell.Collections.Array<Reckfell.Collections.Array> | — |
SetPacketGranulePositions2 overloads
public void SetPacketGranulePositions(long[] granulePositions);| Name | Type | Default |
|---|---|---|
granulePositions | long[] | — |
public void SetPacketGranulePositions(ReadOnlySpan<long> granulePositions);| Name | Type | Default |
|---|---|---|
granulePositions | ReadOnlySpan<long> | — |
SetSamplingRatevoid
public void SetSamplingRate(float samplingRate);| Name | Type | Default |
|---|---|---|
samplingRate | float | — |
Reckfell Engine documentationBack to top ↑