C# Class DSPUtil.WaveReader

Inheritance: SoundObj
显示文件 Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Private Properties

Property Type Description
First ISample
Next ISample
NextDouble double
OpenFile void
ReadSPDIF void
ReadWaveHeader void
Seek void
SkipToStart void
This ISample

Public Methods

Method Description
Close ( ) : void

Close the wave file

WaveReader ( Stream input ) : System
WaveReader ( Stream input, WaveFormat format ) : System
WaveReader ( string fileName ) : System

Read a wave file

WaveReader ( string fileName, System.TimeSpan startTime ) : System
WaveReader ( string fileName, WaveFormat format ) : System
WaveReader ( string fileName, WaveFormat format, ushort bitsPerSample, ushort numChannels ) : System
WaveReader ( string fileName, WaveFormat format, ushort bitsPerSample, ushort numChannels, System.TimeSpan startTime ) : System

Private Methods

Method Description
First ( bool &more ) : ISample
Next ( BinaryReader rdr, bool &more ) : ISample
NextDouble ( BinaryReader rdr ) : double
OpenFile ( string fileName ) : void
ReadSPDIF ( ) : void
ReadWaveHeader ( WaveFormat format, bool expectHeader ) : void
Seek ( long pos ) : void

Seek to position in the data stream

SkipToStart ( System.TimeSpan ts ) : void
This ( bool &more ) : ISample

Method Details

Close() public method

Close the wave file
public Close ( ) : void
return void

WaveReader() public method

public WaveReader ( Stream input ) : System
input Stream
return System

WaveReader() public method

public WaveReader ( Stream input, WaveFormat format ) : System
input Stream
format WaveFormat
return System

WaveReader() public method

Read a wave file
public WaveReader ( string fileName ) : System
fileName string Name of the wave file
return System

WaveReader() public method

public WaveReader ( string fileName, System.TimeSpan startTime ) : System
fileName string
startTime System.TimeSpan
return System

WaveReader() public method

public WaveReader ( string fileName, WaveFormat format ) : System
fileName string
format WaveFormat
return System

WaveReader() public method

public WaveReader ( string fileName, WaveFormat format, ushort bitsPerSample, ushort numChannels ) : System
fileName string
format WaveFormat
bitsPerSample ushort
numChannels ushort
return System

WaveReader() public method

public WaveReader ( string fileName, WaveFormat format, ushort bitsPerSample, ushort numChannels, System.TimeSpan startTime ) : System
fileName string
format WaveFormat
bitsPerSample ushort
numChannels ushort
startTime System.TimeSpan
return System