C# Class ManagedBass.WaveFileWriter

Writes Wave data to a .wav file
Inheritance: IAudioWriter
显示文件 Open project: ManagedBass/ManagedBass

Public Methods

Method Description
Dispose ( ) : void

Closes this WaveFile

WaveFileWriter ( Stream outStream, WaveFormat format ) : System

Creates a WaveFileWriter that writes to a Stream.

Write ( byte Data, int Length ) : bool

Writes bytes to the WaveFile

Write ( float Data, int Length ) : bool

Writes 32 bit float samples to the Wave file

Write ( short Data, int Length ) : bool

Writes 16 bit samples to the Wave file

Private Methods

Method Description
Dispose ( bool Disposing ) : void

Actually performs the close,making sure the header contains the correct data

Method Details

Dispose() public method

Closes this WaveFile
public Dispose ( ) : void
return void

WaveFileWriter() public method

Creates a WaveFileWriter that writes to a Stream.
public WaveFileWriter ( Stream outStream, WaveFormat format ) : System
outStream Stream
format WaveFormat
return System

Write() public method

Writes bytes to the WaveFile
public Write ( byte Data, int Length ) : bool
Data byte the Buffer containing the wave data
Length int the number of bytes to write
return bool

Write() public method

Writes 32 bit float samples to the Wave file
public Write ( float Data, int Length ) : bool
Data float The Buffer containing the wave data
Length int The number of bytes to write
return bool

Write() public method

Writes 16 bit samples to the Wave file
public Write ( short Data, int Length ) : bool
Data short The Buffer containing the wave data
Length int The number of bytes to write
return bool