C# Class WAVTools.WAVWriter

Datei anzeigen Open project: fengmoxi/QiyiFLV2MP4

Public Methods

Method Description
Close ( ) : void
WAVWriter ( Stream stream, int bitsPerSample, int channelCount, int sampleRate ) : System
WAVWriter ( string path, int bitsPerSample, int channelCount, int sampleRate ) : System
Write ( byte buff, int sampleCount ) : void

Private Methods

Method Description
GetDataChunkSize ( long sampleCount ) : uint
WriteHeaders ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

WAVWriter() public method

public WAVWriter ( Stream stream, int bitsPerSample, int channelCount, int sampleRate ) : System
stream Stream
bitsPerSample int
channelCount int
sampleRate int
return System

WAVWriter() public method

public WAVWriter ( string path, int bitsPerSample, int channelCount, int sampleRate ) : System
path string
bitsPerSample int
channelCount int
sampleRate int
return System

Write() public method

public Write ( byte buff, int sampleCount ) : void
buff byte
sampleCount int
return void