C# Class NAudio.Wave.CueList

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;
Show file Open project: jishi/Jishi.StreamToSonos Class Usage Examples

Public Methods

Method Description
Add ( Cue cue ) : void

Adds an item to the list

CueList ( ) : System

Creates an empty cue list

this ( int index ) : Cue

Accesses the cue at the specified index

Private Methods

Method Description
CueList ( byte cueChunkData, byte listChunkData ) : System

Creates a cue list from the cue RIFF chunk and the list RIFF chunk

FromChunks ( NAudio.Wave.WaveFileReader reader ) : CueList

Checks if the cue and list chunks exist and if so, creates a cue list

GetRIFFChunks ( ) : byte[]

Gets the cues as the concatenated cue and list RIFF chunks.

Method Details

Add() public method

Adds an item to the list
public Add ( Cue cue ) : void
cue Cue Cue
return void

CueList() public method

Creates an empty cue list
public CueList ( ) : System
return System

this() public method

Accesses the cue at the specified index
public this ( int index ) : Cue
index int
return Cue