Contents

AudioConverterNewSpecific(_:_:_:_:_:)

Creates a new audio converter object using a specified codec.

Declaration

func AudioConverterNewSpecific(_ inSourceFormat: UnsafePointer<AudioStreamBasicDescription>, _ inDestinationFormat: UnsafePointer<AudioStreamBasicDescription>, _ inNumberClassDescriptions: UInt32, _ inClassDescriptions: UnsafePointer<AudioClassDescription>, _ outAudioConverter: UnsafeMutablePointer<AudioConverterRef?>) -> OSStatus

Parameters

  • inSourceFormat:

    The format of the source audio to be converted.

  • inDestinationFormat:

    The destination format to which the audio is to be converted.

  • inNumberClassDescriptions:

    The number of class descriptions supplied in the inClassDescriptions parameter.

  • inClassDescriptions:

    A list of AudioClassDescription objects that specify the codec to use.

  • outAudioConverter:

    On return, a new audio converter object.

Return Value

A result code.

Discussion

This function is identical to AudioConverterNew(_:_:_:) function, except that your application may explicitly choose which codec to instantiate if there is more than one choice.

See Also

Managing Audio Converter Objects