Share via


AudioConverter.FillComplexBuffer Method

Definition

Overloads

Name Description
FillComplexBuffer(Int32, AudioBuffers, AudioStreamPacketDescription[])

Converts audio data supporting non-interleaved and packetized formats.

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

Converts audio data supporting non-interleaved and packetized formats.

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

Converts audio data, supplied by an event handler, supporting packet dependencies.

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

Converts audio data, supplied by a callback function, supporting packet dependencies.

FillComplexBuffer(Int32, AudioBuffers, AudioStreamPacketDescription[])

Converts audio data supporting non-interleaved and packetized formats.

public AudioToolbox.AudioConverterError FillComplexBuffer(ref int outputDataPacketSize, AudioToolbox.AudioBuffers outputData, AudioToolbox.AudioStreamPacketDescription[] packetDescription);
member this.FillComplexBuffer : int * AudioToolbox.AudioBuffers * AudioToolbox.AudioStreamPacketDescription[] -> AudioToolbox.AudioConverterError

Parameters

outputDataPacketSize
Int32

The capacity of converted output data expressed in packets

outputData
AudioBuffers

The converted output data.

packetDescription
AudioStreamPacketDescription[]

An array of packet descriptions.

Returns

In case of failure, will the error code for the failure. Otherwise the value None will be returned.

Remarks

The InputData event is invoked to supply the input data for the conversion.

Applies to

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

Converts audio data supporting non-interleaved and packetized formats.

public AudioToolbox.AudioConverterError FillComplexBuffer(ref int outputDataPacketSize, AudioToolbox.AudioBuffers outputData, AudioToolbox.AudioStreamPacketDescription[] packetDescription, AudioToolbox.AudioConverterComplexInputData newInputDataHandler);
member this.FillComplexBuffer : int * AudioToolbox.AudioBuffers * AudioToolbox.AudioStreamPacketDescription[] * AudioToolbox.AudioConverterComplexInputData -> AudioToolbox.AudioConverterError

Parameters

outputDataPacketSize
Int32

The capacity of converted output data expressed in packets

outputData
AudioBuffers

The converted output data.

packetDescription
AudioStreamPacketDescription[]

An array of packet descriptions.

newInputDataHandler
AudioConverterComplexInputData

A callback that will be called to supply audio data for the conversion.

Returns

In case of failure, will the error code for the failure. Otherwise the value None will be returned.

Applies to

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

Converts audio data, supplied by an event handler, supporting packet dependencies.

public AudioToolbox.AudioConverterError FillComplexBuffer(ref int outputDataPacketSize, AudioToolbox.AudioBuffers outputData, AudioToolbox.AudioStreamPacketDescription[] packetDescription, AudioToolbox.AudioStreamPacketDependencyDescription[] packetDependencies);
member this.FillComplexBuffer : int * AudioToolbox.AudioBuffers * AudioToolbox.AudioStreamPacketDescription[] * AudioToolbox.AudioStreamPacketDependencyDescription[] -> AudioToolbox.AudioConverterError

Parameters

outputDataPacketSize
Int32

On input, the size if the output buffer (outputData). On output, the number of converted audio packets.

outputData
AudioBuffers

The buffer where the converted audio data is to be written.

packetDescription
AudioStreamPacketDescription[]

An array of packet descriptions that will contain the decoded packet descriptions upon return.

packetDependencies
AudioStreamPacketDependencyDescription[]

An array of packet dependencies that will contain the decoded packet dependencies (if any) upon return.

Returns

An error code in case of failure, None otherwise.

Applies to

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

Converts audio data, supplied by a callback function, supporting packet dependencies.

public AudioToolbox.AudioConverterError FillComplexBuffer(ref int outputDataPacketSize, AudioToolbox.AudioBuffers outputData, AudioToolbox.AudioStreamPacketDescription[]? packetDescription, AudioToolbox.AudioConverterComplexInputData dataHandler, AudioToolbox.AudioStreamPacketDependencyDescription[] packetDependencies);
member this.FillComplexBuffer : int * AudioToolbox.AudioBuffers * AudioToolbox.AudioStreamPacketDescription[] * AudioToolbox.AudioConverterComplexInputData * AudioToolbox.AudioStreamPacketDependencyDescription[] -> AudioToolbox.AudioConverterError

Parameters

outputDataPacketSize
Int32

On input, the size if the output buffer (outputData). On output, the number of converted audio packets.

outputData
AudioBuffers

The buffer where the converted audio data is to be written.

packetDescription
AudioStreamPacketDescription[]

An array of packet descriptions that will contain the decoded packet descriptions upon return.

dataHandler
AudioConverterComplexInputData

The callback that will be called to supply audio data for the conversion.

packetDependencies
AudioStreamPacketDependencyDescription[]

An array of packet dependencies that will contain the decoded packet dependencies (if any) upon return.

Returns

An error code in case of failure, None otherwise.

Applies to