Düzenle

Aracılığıyla paylaş


AudioConverter Class

Definition

The linear PCM audio formats converter.

public class AudioConverter : IDisposable, ObjCRuntime.INativeObject
type AudioConverter = class
    interface IDisposable
    interface INativeObject
Inheritance
AudioConverter
Implements

Properties

ApplicableEncodeBitRates

All applicable bit rates based on current settings.

ApplicableEncodeSampleRates

All applicable sample rates based on current settings.

AvailableEncodeBitRates

All available bit rates for the input format.

AvailableEncodeChannelLayoutTags

All audio channel layouts for the input format.

AvailableEncodeSampleRates

All applicable sample rates based on current settings.

BitDepthHint

The source bit depth to preserve.

CalculateInputBufferSize
CalculateOutputBufferSize
CanResumeFromInterruption

The underlying codec supports resumption following an interruption.

ChannelMap

Input to Output channel mapping.

CodecQuality

Rendering quality of the converter codec.

CompressionMagicCookie

Gets or sets a magic cookie that is used for compression.

CurrentInputStreamDescription

Completely filled input audio description.

CurrentOutputStreamDescription

Completely filled output audio description.

DecodeFormats

All valid converter input formats.

DecompressionMagicCookie

Gets or sets a magic cookie that is used for decompression.

EncodeAdjustableSampleRate

An an output sample rate.

EncodeBitRate

The number of bits per second to aim for when encoding data.

EncodeFormats

All valid converter output formats.

FormatList

All the data formats produced by the converter encoder.

Handle

Handle (pointer) to the unmanaged object representation.

InputChannelLayout

Input audio channels layout.

MaximumInputPacketSize

The size in bytes of the largest single packet of data in the input format.

MaximumOutputPacketSize

The size in bytes of the largest single packet of data in the output format.

MinimumInputBufferSize

The size in bytes of the smallest buffer of input data.

MinimumOutputBufferSize

The size in bytes of the smallest buffer of output data.

OutputChannelLayout

Output audio channels layout.

PrimeInfo

The priming method.

PrimeMethod

The priming information for converter's priming method.

SampleRateConverterComplexity

The sample rate converter algorithm.

SampleRateConverterInitialPhase

The initial sub-sample position of the sample rate converter.

SampleRateConverterQuality

The rendering quality of the sample rate converter.

Methods

ConvertBuffer(Byte[], Byte[])

Converts audio data from one linear PCM format to another.

ConvertComplexBuffer(Int32, AudioBuffers, AudioBuffers)

Converts audio data from one linear PCM format to another where both use the same sample rate.

Create(AudioStreamBasicDescription, AudioStreamBasicDescription, AudioClassDescription[])

Creates a new audio converter instance using a specified codec.

Create(AudioStreamBasicDescription, AudioStreamBasicDescription, AudioConverterError)

Creates a new audio converter instance using a specified codec.

Create(AudioStreamBasicDescription, AudioStreamBasicDescription)

Creates a new audio converter instance based on specified audio formats.

Dispose()

Releases the resources used by the AudioConverter object.

Dispose(Boolean)

Releases the resources used by the AudioConverter object.

FillComplexBuffer(Int32, AudioBuffers, AudioStreamPacketDescription[], AudioConverterComplexInputData)
FillComplexBuffer(Int32, AudioBuffers, AudioStreamPacketDescription[])

Converts audio data supporting non-interleaved and packetized formats.

Finalize()

Finalizer for the AudioConverter object

Reset()

Resets an audio converter.

Events

InputData

Used by FillComplexBuffer to supply input data.

Applies to