C# Class ManagedBass.Wma.WmaFileWriter

Writes a WMA File. Requires BassWma.dll
Inheritance: IAudioWriter
Show file Open project: ManagedBass/ManagedBass

Public Methods

Method Description
Dispose ( ) : void

Frees all resources used by the writer.

WmaFileWriter ( string FileName, WaveFormat WaveFormat, int BitRate = 128000 )

Creates a new instance of WmaFileWriter.

Write ( byte Buffer, int Length ) : bool

Write data from a byte[].

Write ( float Buffer, int Length ) : bool

Write data from a float[].

Write ( short Buffer, int Length ) : bool

Write data from a short[].

Private Methods

Method Description
ToWmaEncodeFlags ( WaveFormatTag WfTag, int BitsPerSample ) : WMAEncodeFlags

Method Details

Dispose() public method

Frees all resources used by the writer.
public Dispose ( ) : void
return void

WmaFileWriter() public method

Creates a new instance of WmaFileWriter.
public WmaFileWriter ( string FileName, WaveFormat WaveFormat, int BitRate = 128000 )
FileName string The path to the file to write to.
WaveFormat WaveFormat of the input data.
BitRate int BitRate of the written file.

Write() public method

Write data from a byte[].
public Write ( byte Buffer, int Length ) : bool
Buffer byte byte[] to write from.
Length int No of bytes to write.
return bool

Write() public method

Write data from a float[].
public Write ( float Buffer, int Length ) : bool
Buffer float float[] to write from.
Length int No of bytes to write, i.e. (No of floats) * 4.
return bool

Write() public method

Write data from a short[].
public Write ( short Buffer, int Length ) : bool
Buffer short short[] to write from.
Length int No of bytes to write, i.e. (No of Shorts) * 2.
return bool