Xeno-rat
Loading...
Searching...
No Matches
NAudio.Wave.CueList Class Reference

Holds a list of cues. More...

Collaboration diagram for NAudio.Wave.CueList:

Public Member Functions

 CueList ()
 Creates an empty cue list.
 
void Add (Cue cue)
 Adds a cue to the collection of cues.
 

Properties

int[] CuePositions [get]
 Gets sample positions for the embedded cues.
 
string[] CueLabels [get]
 Gets labels for the embedded cues.
 
int Count [get]
 Number of cues.
 
Cue this[int index] [get]
 Accesses the cue at the specified index.
 

Private Attributes

readonly List< Cuecues = new List<Cue>()
 

Detailed Description

Holds a list of cues.

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; /* Encoded with extended ASCII *‍/ } LabelChunk;

Constructor & Destructor Documentation

◆ CueList()

NAudio.Wave.CueList.CueList ( )
inline

Creates an empty cue list.

Member Function Documentation

◆ Add()

void NAudio.Wave.CueList.Add ( Cue cue)
inline

Adds a cue to the collection of cues.

Parameters
cueThe cue to be added to the collection.

This method adds the specified cue to the collection of cues.

Here is the caller graph for this function:

Member Data Documentation

◆ cues

readonly List<Cue> NAudio.Wave.CueList.cues = new List<Cue>()
private

Property Documentation

◆ Count

int NAudio.Wave.CueList.Count
get

Number of cues.

◆ CueLabels

string [] NAudio.Wave.CueList.CueLabels
get

Gets labels for the embedded cues.

Returns
Array containing the labels

◆ CuePositions

int [] NAudio.Wave.CueList.CuePositions
get

Gets sample positions for the embedded cues.

Returns
Array containing the cue positions

◆ this[int index]

Cue NAudio.Wave.CueList.this[int index]
get

Accesses the cue at the specified index.

Parameters
index
Returns

The documentation for this class was generated from the following file: