Modifier

Partager via


AudioConverter.Create Method

Definition

Overloads

Create(AudioStreamBasicDescription, AudioStreamBasicDescription)

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

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.

public static AudioToolbox.AudioConverter Create (AudioToolbox.AudioStreamBasicDescription sourceFormat, AudioToolbox.AudioStreamBasicDescription destinationFormat);
static member Create : AudioToolbox.AudioStreamBasicDescription * AudioToolbox.AudioStreamBasicDescription -> AudioToolbox.AudioConverter

Parameters

sourceFormat
AudioStreamBasicDescription

Input audio format.

destinationFormat
AudioStreamBasicDescription

Output audio format.

Returns

Applies to

Create(AudioStreamBasicDescription, AudioStreamBasicDescription, AudioClassDescription[])

Creates a new audio converter instance using a specified codec.

public static AudioToolbox.AudioConverter Create (AudioToolbox.AudioStreamBasicDescription sourceFormat, AudioToolbox.AudioStreamBasicDescription destinationFormat, AudioToolbox.AudioClassDescription[] descriptions);
static member Create : AudioToolbox.AudioStreamBasicDescription * AudioToolbox.AudioStreamBasicDescription * AudioToolbox.AudioClassDescription[] -> AudioToolbox.AudioConverter

Parameters

sourceFormat
AudioStreamBasicDescription

Input audio format.

destinationFormat
AudioStreamBasicDescription

Output audio format.

descriptions
AudioClassDescription[]

A list of codec to be used.

Returns

Applies to

Create(AudioStreamBasicDescription, AudioStreamBasicDescription, AudioConverterError)

Creates a new audio converter instance using a specified codec.

public static AudioToolbox.AudioConverter Create (AudioToolbox.AudioStreamBasicDescription sourceFormat, AudioToolbox.AudioStreamBasicDescription destinationFormat, out AudioToolbox.AudioConverterError error);
static member Create : AudioToolbox.AudioStreamBasicDescription * AudioToolbox.AudioStreamBasicDescription *  -> AudioToolbox.AudioConverter

Parameters

sourceFormat
AudioStreamBasicDescription

The format of the source audio.

destinationFormat
AudioStreamBasicDescription

The destination audio format.

Returns

Applies to