C# Класс ManagedBass.Enc.AcmFileWriter

Writes an audio file encoded using Audio Codecs Managed (ACM).
Наследование: IAudioWriter
Показать файл Открыть проект

Открытые методы

Метод Описание
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[].

Приватные методы

Метод Описание
GetDummyChannel ( WaveFormat Format ) : int
ToBassFlags ( WaveFormatTag WfTag, int BitsPerSample ) : BassFlags

Описание методов

AcmFileWriter() публичный Метод

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.
Результат System

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Write() публичный Метод

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.
Результат bool

Write() публичный Метод

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.
Результат bool

Write() публичный Метод

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.
Результат bool