C# Class NVorbis.VorbisReader

Inheritance: IDisposable
Show file Open project: gregzo/G-Audio Class Usage Examples

Private Properties

Property Type Description
LoadContainer bool
NewStream void
VorbisReader System

Public Methods

Method Description
ClearParameterChange ( ) : void

Clears the parameter change flag so further samples can be requested.

Dispose ( ) : void
FindNextStream ( ) : bool

Searches for the next stream in a concatenated file

ReadSamples ( float buffer, int offset, int count ) : int

Reads decoded samples from the current logical stream

SwitchStreams ( int index ) : bool

Switches to an alternate logical stream.

VorbisReader ( IContainerReader containerReader ) : System
VorbisReader ( IPacketProvider packetProvider ) : System
VorbisReader ( Stream stream, bool closeStreamOnDispose ) : System
VorbisReader ( string fileName ) : System

Private Methods

Method Description
LoadContainer ( IContainerReader containerReader ) : bool
NewStream ( object sender, NewStreamEventArgs ea ) : void
VorbisReader ( ) : System

Method Details

ClearParameterChange() public method

Clears the parameter change flag so further samples can be requested.
public ClearParameterChange ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

FindNextStream() public method

Searches for the next stream in a concatenated file
public FindNextStream ( ) : bool
return bool

ReadSamples() public method

Reads decoded samples from the current logical stream
public ReadSamples ( float buffer, int offset, int count ) : int
buffer float The buffer to write the samples to
offset int The offset into the buffer to write the samples to
count int The number of samples to write
return int

SwitchStreams() public method

Switches to an alternate logical stream.
public SwitchStreams ( int index ) : bool
index int The logical stream index to switch to
return bool

VorbisReader() public method

public VorbisReader ( IContainerReader containerReader ) : System
containerReader IContainerReader
return System

VorbisReader() public method

public VorbisReader ( IPacketProvider packetProvider ) : System
packetProvider IPacketProvider
return System

VorbisReader() public method

public VorbisReader ( Stream stream, bool closeStreamOnDispose ) : System
stream Stream
closeStreamOnDispose bool
return System

VorbisReader() public method

public VorbisReader ( string fileName ) : System
fileName string
return System