Contents

init(devicePlacement:deviceCapabilities:primaryAudioSourceDeviceIdentifier:secondaryAudioSourceDeviceIdentifier:spatialExtensionDescription:)

Creates a new device configuration with spatial audio support.

Declaration

init(devicePlacement: AccessoryControlDevice.Placement? = nil, deviceCapabilities: AccessoryControlDevice.Capabilities, primaryAudioSourceDeviceIdentifier: Data? = nil, secondaryAudioSourceDeviceIdentifier: Data? = nil, spatialExtensionDescription: AudioComponentDescription?)

Parameters

  • devicePlacement:

    The current placement state (e.g., .offHead, .onHead, .inEar) - only applicable with .placement capability

  • deviceCapabilities:

    The capabilities supported by the device (e.g., [.placement, .audioSpatialization])

  • primaryAudioSourceDeviceIdentifier:

    Bluetooth address of the primary audio source (only applicable with .audioSwitching capability)

  • secondaryAudioSourceDeviceIdentifier:

    Bluetooth address of secondary audio source (only applicable with .audioSwitching capability)

  • spatialExtensionDescription:

    The audio component description for the spatial audio rendering extension (only applicable with .audioSpatialization capability)