Class CueList
Holds a list of cues
public class CueList
- Inheritance
-
CueList
- Inherited Members
Remarks
The specs for reading and writing cues from the cue and list RIFF chunks are from http://www.sonicspot.com/guide/wavefiles.html and http://www.wotsit.org/
The cues are stored like this:
struct CuePoint { Int32 dwIdentifier; Int32 dwPosition; Int32 fccChunk; Int32 dwChunkStart; Int32 dwBlockStart; Int32 dwSampleOffset; }
struct CueChunk { Int32 chunkID; Int32 chunkSize; Int32 dwCuePoints; CuePoint[] points; }
Labels look like this:
struct ListHeader { Int32 listID; /* 'list' / Int32 chunkSize; / includes the Type ID below / Int32 typeID; / 'adtl' */ }
struct LabelChunk { Int32 chunkID; Int32 chunkSize; Int32 dwIdentifier; Char[] dwText; /* null-terminated; RIFF does not mandate an encoding — NAudio uses UTF-8 */ } LabelChunk;
struct TextWithDataLengthChunk { Int32 chunkID; /* 'ltxt' / Int32 chunkSize; Int32 dwIdentifier; Int32 dwSampleLength; Int32 dwPurpose; Int16 wCountry; Int16 wLanguage; Int16 wDialect; Int16 wCodePage; / optional trailing text may follow */ } TextWithDataLengthChunk;
Constructors
CueList()
Creates an empty cue list
public CueList()
Properties
Count
Number of cues
public int Count { get; }
Property Value
CueLabels
Gets labels for the embedded cues
public string[] CueLabels { get; }
Property Value
- string[]
Array containing the labels
CueLengths
Gets region lengths in samples for the embedded cues. Entries are null
for cues that are point markers rather than regions.
public int?[] CueLengths { get; }
Property Value
- int?[]
Array containing the cue lengths.
CuePositions
Gets sample positions for the embedded cues
public int[] CuePositions { get; }
Property Value
- int[]
Array containing the cue positions
this[int]
Accesses the cue at the specified index
public Cue this[int index] { get; }
Parameters
indexint
Property Value
Methods
Add(Cue)
Adds an item to the list
public void Add(Cue cue)
Parameters
cueCueCue