C# Class ManagedBass.Enc.AcmFileWriter

Writes an audio file encoded using Audio Codecs Managed (ACM).
Inheritance: IAudioWriter
Afficher le fichier Open project: ManagedBass/ManagedBass

Méthodes publiques

Méthode 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

Méthode Description
GetDummyChannel ( WaveFormat Format ) : int
ToBassFlags ( WaveFormatTag WfTag, int BitsPerSample ) : BassFlags

Method Details

AcmFileWriter() public méthode

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.
Résultat System

Dispose() public méthode

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

Write() public méthode

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.
Résultat bool

Write() public méthode

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.
Résultat bool

Write() public méthode

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.
Résultat bool