C# Class ManagedBass.Enc.AcmFileWriter

Writes an audio file encoded using Audio Codecs Managed (ACM).
Inheritance: IAudioWriter
显示文件 Open project: ManagedBass/ManagedBass

Public Methods

Method Description
AcmFileWriter ( string FileName, WaveFormatTag Encoding, WaveFormat Format ) : System

Creates a new instance of AcmFileWriter.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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
GetDummyChannel ( WaveFormat Format ) : int
ToBassFlags ( WaveFormatTag WfTag, int BitsPerSample ) : BassFlags

Method Details

AcmFileWriter() public method

Creates a new instance of AcmFileWriter.
public AcmFileWriter ( string FileName, WaveFormatTag Encoding, WaveFormat Format ) : System
FileName string Path to the file to write.
Encoding WaveFormatTag for written audio.
Format WaveFormat of input audio.
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

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