peachsim 0.1.1744 → 0.1.1801
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/cli/account-gate.ts +97 -0
- package/cli/app-catalog.ts +24 -0
- package/cli/app-stubs.ts +7 -0
- package/cli/auth.ts +48 -18
- package/cli/bin.ts +35 -2
- package/cli/bridge-flow-runner.ts +174 -6
- package/cli/cloud-dispatch.ts +0 -3
- package/cli/command-registry.ts +2 -6
- package/cli/commands/auth.ts +68 -3
- package/cli/commands/compat.ts +1116 -0
- package/cli/commands/control.ts +90 -13
- package/cli/commands/coverage.ts +85 -116
- package/cli/commands/detox.ts +20 -20
- package/cli/commands/device.ts +31 -27
- package/cli/commands/doctor.ts +76 -1032
- package/cli/commands/flow.ts +80 -41
- package/cli/commands/guest-host.ts +2 -2
- package/cli/commands/inspect/core.ts +8 -7
- package/cli/commands/inspect/settling.ts +60 -25
- package/cli/commands/inspect/wait-ready.ts +6 -4
- package/cli/commands/inspect/wait-selector.ts +32 -18
- package/cli/commands/inspect.ts +8 -6
- package/cli/commands/kotlin.ts +15 -6
- package/cli/commands/logout.ts +4 -2
- package/cli/commands/maestro-compare.ts +19 -37
- package/cli/commands/maestro-generate.ts +4 -4
- package/cli/commands/maestro.ts +56 -37
- package/cli/commands/package.ts +136 -57
- package/cli/commands/preview.ts +10 -1
- package/cli/commands/{film.ts → record-three.ts} +33 -28
- package/cli/commands/record.ts +41 -39
- package/cli/commands/screenshots.ts +4 -0
- package/cli/commands/setup.ts +38 -1
- package/cli/commands/shell-url.ts +49 -24
- package/cli/commands/swift.ts +29 -11
- package/cli/commands/test.ts +43 -13
- package/cli/commands/upload.ts +12 -9
- package/cli/drivers/playwright-core-pin.ts +2 -2
- package/cli/flow-export.ts +1 -1
- package/cli/flow-file.ts +1 -1
- package/cli/internal-child.ts +3 -8
- package/cli/maestro-compare.ts +73 -7
- package/cli/maestro-js.ts +1 -1
- package/cli/maestro-report.ts +1 -1
- package/cli/maestro-workspace.ts +66 -4
- package/cli/main.ts +22 -55
- package/cli/native-input.ts +13 -20
- package/cli/outbound-endpoints.ts +40 -7
- package/cli/output-redaction.ts +8 -3
- package/cli/packaged-app-launcher.ts +40 -28
- package/cli/prompt.ts +20 -0
- package/cli/recording-access.ts +7 -7
- package/cli/run-registry.ts +1 -1
- package/cli/scene-video.ts +0 -4
- package/cli/ws-bridge.ts +7 -4
- package/detox/index.ts +293 -50
- package/detox/jest-preset.cjs +6 -0
- package/detox/launch-permissions.ts +1 -21
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -8
- package/dist-lib/bridge-contract.mjs +2 -7
- package/dist-lib/bundle-channel.cjs +45273 -38265
- package/dist-lib/capture-contract.cjs +37 -14
- package/dist-lib/capture-contract.mjs +36 -13
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +2 -2
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +562 -126
- package/dist-lib/detox/jest-preset.cjs +6 -0
- package/dist-lib/dev-bundle-resolution.cjs +18 -13
- package/dist-lib/expo-swift-bundle.cjs +28566 -23874
- package/dist-lib/expo-swift-metadata.cjs +104 -2
- package/dist-lib/expo-swift-metadata.mjs +104 -2
- package/dist-lib/home-paths.cjs +8 -5
- package/dist-lib/host/bridge-host.cjs +36618 -29846
- package/dist-lib/host/fetch-proxy-handler.cjs +23 -20
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +5 -2
- package/dist-lib/index.cjs +1921 -1549
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +21 -7
- package/dist-lib/menu.mjs +21 -7
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1877 -1584
- package/dist-lib/native-app-identity-project.cjs +1274 -951
- package/dist-lib/native-app-identity-project.mjs +1414 -963
- package/dist-lib/native-app-identity.cjs +64 -58
- package/dist-lib/native-app-identity.mjs +64 -58
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -33
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +484 -280
- package/dist-lib/react-native-host-modules.cjs +3 -1
- package/dist-lib/react-native-host-modules.mjs +3 -1
- package/dist-lib/reap-browser.cjs +23 -26
- package/dist-lib/scripts/dev-server-scanner.cjs +13 -10
- package/dist-lib/sdk.cjs +69 -36
- package/dist-lib/sdk.mjs +69 -36
- package/dist-lib/skills.cjs +33781 -27141
- package/dist-lib/swift-compile.cjs +3759 -2520
- package/dist-lib/swift-compile.mjs +3680 -2441
- package/dist-lib/swift-package.cjs +33 -1
- package/dist-lib/swift-package.mjs +31 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +102 -5
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16480 -14579
- package/dist-lib/vite.cjs +269 -295
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/secure-item-store.d.ts +38 -0
- package/dist-types/packages/peach-compat/src/stubs/ring-mode-state.d.ts +4 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +21 -12
- package/dist-types/packages/peach-engine/src/billing/plans.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/capture/browser-composite-provider.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +10 -10
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +6 -2
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +18 -1
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +71 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +31 -3
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +7 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +55 -0
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +85 -26
- package/dist-types/packages/peach-engine/src/graphite-stats-fields.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +3 -4
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/ios/shell-controller-types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/metro-asset-path.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +31 -12
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-presentation.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgetContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -9
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -4
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +5 -1
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +23 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +2 -0
- package/dist-types/packages/peach-kit/src/ui/keyboard-toolbar.d.ts +5 -0
- package/install.sh +20 -1
- package/package.json +6 -5
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h +629 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionDeprecated.h +90 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h +256 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h +1006 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.apinotes +246 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSession.h +11 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVBase.h +264 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +88 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h +1360 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h +167 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h +508 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +18 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureDeviceDirectionCoordinator.h +113 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEvent.h +82 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventInteraction.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventSound.h +50 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVError.h +51 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInputPickerInteraction.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInterstitialTimeRange.h +39 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes +112 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h +110 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h +79 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h +54 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVLegibleMediaOptionsMenuController.h +193 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h +271 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h +135 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackRouteSelecting.h +46 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeed.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackUserInterfaceControllable.h +551 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h +42 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h +704 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVRoutePickerView.h +186 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/AudioSessionTypes.h +104 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h +1621 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes +42 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h +195 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h +220 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h +501 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +3 -18
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h +443 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSync.h +996 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h +1811 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h +360 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +574 -17
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h +336 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h +203 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h +264 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h +531 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h +326 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h +547 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h +158 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h +286 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +80 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h +1833 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h +482 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DDDevicePickerViewController.h +41 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUI.h +9 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUIDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/DeviceDiscoveryUI.swiftcrossimport/SwiftUI.swiftoverlay +4 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +49 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +2 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +6 -6
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +5 -5
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +14 -14
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +20 -20
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +1 -1
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +6 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h +195 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h +245 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h +178 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSExport.h +151 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSManagedValue.h +81 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSObjectRef.h +755 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRef.h +148 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRefCF.h +60 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSTypedArray.h +180 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValue.h +824 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h +555 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSVirtualMachine.h +92 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h +37 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScriptCore.h +38 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h +36 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCAdvertiserAssistant.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCBrowserViewController.h +88 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCError.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceAdvertiser.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceBrowser.h +94 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCPeerID.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCSession.h +215 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +6 -6
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +4 -4
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +172 -27
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +10 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h +142 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +20 -20
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +103 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +8 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +80 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +191 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +259 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +9 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +5 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +6 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4248 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +66 -102
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +283 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +3 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +135 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTAdditions.h +167 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTCoreTypes.h +1332 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes +53 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +18 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttributedMessageContext.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +152 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +107 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes +17 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +200 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionFile.h +30 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionUserInfoTransfer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.apinotes +19 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h +120 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +77 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +54 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +37 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDataDetectorTypes.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +67 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownloadDelegate.h +146 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKError.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +41 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +63 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFoundation.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +62 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +108 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironment.h +50 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironmentDelegate.h +69 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +80 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +45 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +118 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h +219 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +49 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +117 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItemIdentifiers.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +64 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandler.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandlerWithReply.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +59 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h +316 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeHandler.h +61 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeTask.h +75 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +76 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +237 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionAction.h +164 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionCommand.h +106 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +790 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +255 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +89 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerDelegate.h +207 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataType.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +175 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMessagePort.h +99 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionPermission.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTab.h +396 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTabConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindow.h +170 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindowConfiguration.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +800 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +275 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +150 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +137 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes +204 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h +93 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKitLegacy.h +3 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WiFiAware.framework/Modules/WiFiAware.swiftmodule/arm64-apple-ios-simulator.swiftinterface +605 -0
- package/sdk/ios/System/Library/Frameworks/_DeviceDiscoveryUI_SwiftUI.framework/Modules/_DeviceDiscoveryUI_SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +79 -0
- package/sdk/ios/usr/include/MacTypes.h +8 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +5 -0
- package/sdk/ios/wasm/include/fcntl.h +1 -0
- package/sdk/ios/wasm/include/pthread.h +2 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/native-hashes.json +11 -1
- package/skills/contrast/SKILL.md +4 -9
- package/skills/peach-perf/SKILL.md +3 -1
- package/skills/peach-perf/references/profiling.md +1 -1
- package/skills/peach-test/SKILL.md +20 -17
- package/skills/peach-test/references/detox.md +7 -7
- package/skills/peach-test/references/maestro.md +20 -18
- package/src/admitted-mac-build.ts +7 -0
- package/src/android-autolinking.ts +2 -2
- package/src/android-drawables.ts +5 -5
- package/src/android-string-value.ts +1 -1
- package/src/android-strings.ts +1 -1
- package/src/android-theme.ts +2 -2
- package/src/appPackageContract.ts +1 -1
- package/src/bridge-contract.ts +12 -16
- package/src/build-cache.ts +65 -0
- package/src/bundle-channel.mjs +69 -9
- package/src/capture-contract.ts +55 -17
- package/src/chromium-admission.ts +24 -21
- package/src/conformance-comparison-contract.ts +105 -40
- package/src/dev-bundle-resolution.ts +23 -10
- package/src/device-catalog.ts +35 -2
- package/src/disk-cleanup.ts +18 -8
- package/src/expo-autolinking.ts +24 -0
- package/src/expo-discovery-cache.ts +168 -23
- package/src/expo-native-workspace.ts +551 -191
- package/src/expo-swift-host.ts +711 -314
- package/src/expo-swift-ready.ts +39 -5
- package/src/expo-widget-assets.ts +2 -2
- package/src/expo-widgets-bundle.ts +56 -0
- package/src/expo-workspace-exclusion.ts +62 -0
- package/src/expoSwiftContract.ts +27 -4
- package/src/forked-script-contract.ts +3 -0
- package/src/home-paths.ts +10 -6
- package/src/host/bridge-host.ts +27 -0
- package/src/host/network-policy.ts +1 -1
- package/src/kotlin-app.ts +9 -11
- package/src/kotlin-host.ts +2 -2
- package/src/launchMetadataContract.ts +5 -0
- package/src/menu.ts +19 -5
- package/src/native-app-identity-project.ts +35 -49
- package/src/native-app-identity.ts +5 -6
- package/src/native-firebase-config.ts +10 -48
- package/src/native-prebuilt.ts +3 -2
- package/src/native-slices.ts +39 -0
- package/src/native-static-libraries.ts +73 -0
- package/src/nitro-adapter.lock.json +249 -249
- package/src/nitro-adapter.ts +16 -5
- package/src/nitro-bundle.ts +35 -16
- package/src/nitro-compile.ts +254 -16
- package/src/nitro-compiler-digest.ts +39 -0
- package/src/nitro-dependencies.ts +368 -28
- package/src/nitro-source.ts +432 -77
- package/src/nitro-superset.lock.json +27 -36
- package/src/nitro-superset.ts +6 -0
- package/src/nitroAdapterContract.ts +52 -0
- package/src/nitroContract.ts +40 -4
- package/src/numbered-lock.ts +2 -2
- package/src/one-native-app-accent.ts +32 -0
- package/src/one-widget-discovery.ts +6 -1
- package/src/one-widget-metadata.ts +2 -2
- package/src/portable-expo-contract.ts +103 -0
- package/src/portable-expo-workspace.ts +94 -0
- package/src/prepared-native-inventory.ts +93 -0
- package/src/prepared-xcode-phases.ts +194 -0
- package/src/process-group.ts +8 -15
- package/src/process-table.ts +117 -0
- package/src/react-native-bridge-modules.ts +240 -14
- package/src/react-native-coverage/native-typescript-parser.ts +11 -2
- package/src/react-native-coverage/verified-reach.ts +12 -6
- package/src/react-native-host-modules.ts +2 -0
- package/src/reap-browser.ts +13 -9
- package/src/retired-cache-directory.ts +34 -0
- package/src/runtime-assets.ts +1 -0
- package/src/screenshots/orchestrate.ts +4 -0
- package/src/screenshots/schema.ts +2 -2
- package/src/storageSnapshotContract.ts +9 -2
- package/src/stub-pattern-matcher.ts +53 -19
- package/src/swift-compile.ts +1011 -327
- package/src/swift-compiler-digest.ts +3 -0
- package/src/swift-coverage/indexing.ts +1 -1
- package/src/swift-coverage/xcode-asset-symbols.ts +72 -39
- package/src/swift-coverage/xcode-assets.ts +2 -1
- package/src/swift-cxx-declarations.ts +114 -130
- package/src/swift-cxx-standin.ts +3 -3
- package/src/swift-darwin-records.ts +88 -0
- package/src/swift-distribution.lock.json +15 -12
- package/src/swift-distribution.ts +25 -9
- package/src/swift-host.ts +443 -142
- package/src/swift-icu.ts +72 -4
- package/src/swift-link-roots.ts +2 -0
- package/src/swift-objc-compile.ts +312 -65
- package/src/swift-objc-import.ts +8 -1
- package/src/swift-objc-standin.ts +20 -2
- package/src/swift-package-manifest.ts +189 -57
- package/src/swift-package.ts +51 -0
- package/src/swift-packages.ts +117 -45
- package/src/swift-pdf-raster.ts +7 -4
- package/src/swift-project-user.ts +183 -0
- package/src/swift-reproducible.ts +26 -0
- package/src/swift-root-lock.ts +34 -62
- package/src/swift-shared-sdk.ts +232 -21
- package/src/swift-source-pods.ts +9 -2
- package/src/swift-standin-emit.ts +248 -7
- package/src/swift-standins.ts +130 -108
- package/src/swift-submit.ts +3 -0
- package/src/swift-toolchain.ts +109 -8
- package/src/swift-wasm-prune.ts +210 -55
- package/src/swiftContract.ts +14 -0
- package/src/swiftGuestImageContract.ts +113 -0
- package/src/turbo-bundle.ts +5 -8
- package/src/turbo-codegen-intake.ts +134 -0
- package/src/turbo-compile.ts +198 -21
- package/src/turbo-native-libraries.ts +98 -0
- package/src/turbo-runtime.lock.json +25 -18
- package/src/turbo-source.ts +1519 -147
- package/src/vite-plugin-one.ts +25 -3
- package/src/vite-plugin-swift.ts +5 -1
- package/src/vite-plugin.ts +40 -18
- package/src/worker-system-chunks.ts +103 -15
- package/src/worklets-babel.ts +50 -29
- package/src/xcode-header-search.ts +15 -5
- package/src/xcode-project.ts +444 -88
- package/src/xcode-target-members.ts +72 -63
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-resample.d.ts +0 -44
package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h
ADDED
|
@@ -0,0 +1,1621 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
@file CoreAudioBaseTypes.h
|
|
3
|
+
@framework CoreAudioTypes.framework
|
|
4
|
+
@copyright (c) 1985-2021 by Apple, Inc., all rights reserved.
|
|
5
|
+
@abstract Definition of types common to the Core Audio APIs.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#ifndef CoreAudioTypes_CoreAudioBaseTypes_h
|
|
9
|
+
#define CoreAudioTypes_CoreAudioBaseTypes_h
|
|
10
|
+
|
|
11
|
+
//==================================================================================================
|
|
12
|
+
#pragma mark -
|
|
13
|
+
#pragma mark Includes
|
|
14
|
+
|
|
15
|
+
#define COREAUDIOTYPES_VERSION 20211130
|
|
16
|
+
|
|
17
|
+
#include <TargetConditionals.h>
|
|
18
|
+
#include <CoreFoundation/CFBase.h>
|
|
19
|
+
|
|
20
|
+
// CA_PREFER_FIXED_POINT is true on iOS, but the concept is no longer true. This symbol WILL
|
|
21
|
+
// be removed in a future release. (Only deprecated symbols depend on it.)
|
|
22
|
+
#if !defined(CA_PREFER_FIXED_POINT)
|
|
23
|
+
#if TARGET_OS_IPHONE && !TARGET_OS_MACCATALYST
|
|
24
|
+
#define CA_PREFER_FIXED_POINT 1
|
|
25
|
+
#endif
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
#if defined(__has_feature) && __has_feature(attribute_deprecated_with_message)
|
|
29
|
+
#define CA_CANONICAL_DEPRECATED __attribute__((deprecated("The concept of canonical formats is deprecated")))
|
|
30
|
+
#else
|
|
31
|
+
#define CA_CANONICAL_DEPRECATED
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
@macro CA_REALTIME_API
|
|
37
|
+
@brief A function (type) which is guaranteed / required to be realtime safe.
|
|
38
|
+
|
|
39
|
+
In C++11 and later, use the bracketed form of the attribute for compatibility with the syntax of
|
|
40
|
+
a `using` typealias.
|
|
41
|
+
*/
|
|
42
|
+
#if defined(__has_attribute) && __has_attribute(nonblocking)
|
|
43
|
+
# if defined(__cplusplus) && __cplusplus > 199711L
|
|
44
|
+
# define CA_REALTIME_API [[clang::nonblocking]]
|
|
45
|
+
# else
|
|
46
|
+
# define CA_REALTIME_API __attribute__((nonblocking))
|
|
47
|
+
# endif
|
|
48
|
+
#else
|
|
49
|
+
# define CA_REALTIME_API
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
#pragma clang diagnostic push
|
|
54
|
+
#pragma clang diagnostic ignored "-Wold-style-cast"
|
|
55
|
+
|
|
56
|
+
#if defined(__cplusplus)
|
|
57
|
+
#include <string.h>
|
|
58
|
+
#endif
|
|
59
|
+
|
|
60
|
+
//==================================================================================================
|
|
61
|
+
|
|
62
|
+
#if defined(__cplusplus)
|
|
63
|
+
extern "C"
|
|
64
|
+
{
|
|
65
|
+
#endif
|
|
66
|
+
|
|
67
|
+
//==================================================================================================
|
|
68
|
+
#pragma mark -
|
|
69
|
+
#pragma mark General Error Codes
|
|
70
|
+
|
|
71
|
+
/*!
|
|
72
|
+
@enum General Audio error codes
|
|
73
|
+
@abstract These are some of the error codes returned from the APIs found through Core Audio related frameworks.
|
|
74
|
+
@constant kAudio_NoError
|
|
75
|
+
Returned on success.
|
|
76
|
+
@constant kAudio_UnimplementedError
|
|
77
|
+
Unimplemented core routine.
|
|
78
|
+
@constant kAudio_FileNotFoundError
|
|
79
|
+
File not found.
|
|
80
|
+
@constant kAudio_FilePermissionError
|
|
81
|
+
File cannot be opened due to either file, directory, or sandbox permissions.
|
|
82
|
+
@constant kAudio_TooManyFilesOpenError
|
|
83
|
+
File cannot be opened because too many files are already open.
|
|
84
|
+
@constant kAudio_BadFilePathError
|
|
85
|
+
File cannot be opened because the specified path is malformed.
|
|
86
|
+
@constant kAudio_ParamError
|
|
87
|
+
Error in user parameter list.
|
|
88
|
+
@constant kAudio_MemFullError
|
|
89
|
+
Not enough room in heap zone.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
CF_ENUM(OSStatus)
|
|
93
|
+
{
|
|
94
|
+
kAudio_NoError = 0,
|
|
95
|
+
kAudio_UnimplementedError = -4,
|
|
96
|
+
kAudio_FileNotFoundError = -43,
|
|
97
|
+
kAudio_FilePermissionError = -54,
|
|
98
|
+
kAudio_TooManyFilesOpenError = -42,
|
|
99
|
+
kAudio_BadFilePathError = '!pth', // 0x21707468, 561017960
|
|
100
|
+
kAudio_ParamError = -50,
|
|
101
|
+
kAudio_MemFullError = -108
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
//==================================================================================================
|
|
105
|
+
#pragma mark -
|
|
106
|
+
#pragma mark AudioValueRange
|
|
107
|
+
|
|
108
|
+
/*!
|
|
109
|
+
@struct AudioValueRange
|
|
110
|
+
@abstract This structure holds a pair of numbers that represent a continuous range of
|
|
111
|
+
values.
|
|
112
|
+
@var mMinimum
|
|
113
|
+
The minimum value.
|
|
114
|
+
@var mMaximum
|
|
115
|
+
The maximum value.
|
|
116
|
+
*/
|
|
117
|
+
struct AudioValueRange
|
|
118
|
+
{
|
|
119
|
+
Float64 mMinimum;
|
|
120
|
+
Float64 mMaximum;
|
|
121
|
+
};
|
|
122
|
+
typedef struct AudioValueRange AudioValueRange;
|
|
123
|
+
|
|
124
|
+
//==================================================================================================
|
|
125
|
+
#pragma mark -
|
|
126
|
+
#pragma mark AudioValueTranslation
|
|
127
|
+
|
|
128
|
+
/*!
|
|
129
|
+
@struct AudioValueTranslation
|
|
130
|
+
@abstract This stucture holds the buffers necessary for translation operations.
|
|
131
|
+
@var mInputData
|
|
132
|
+
The buffer containing the data to be translated.
|
|
133
|
+
@var mInputDataSize
|
|
134
|
+
The number of bytes in the buffer pointed at by mInputData.
|
|
135
|
+
@var mOutputData
|
|
136
|
+
The buffer to hold the result of the translation.
|
|
137
|
+
@var mOutputDataSize
|
|
138
|
+
The number of bytes in the buffer pointed at by mOutputData.
|
|
139
|
+
*/
|
|
140
|
+
struct AudioValueTranslation
|
|
141
|
+
{
|
|
142
|
+
void* __nonnull mInputData;
|
|
143
|
+
UInt32 mInputDataSize;
|
|
144
|
+
void* __nonnull mOutputData;
|
|
145
|
+
UInt32 mOutputDataSize;
|
|
146
|
+
};
|
|
147
|
+
typedef struct AudioValueTranslation AudioValueTranslation;
|
|
148
|
+
|
|
149
|
+
//==================================================================================================
|
|
150
|
+
#pragma mark -
|
|
151
|
+
#pragma mark AudioBuffer/AudioBufferList
|
|
152
|
+
|
|
153
|
+
/*!
|
|
154
|
+
@struct AudioBuffer
|
|
155
|
+
@abstract A structure to hold a buffer of audio data.
|
|
156
|
+
@var mNumberChannels
|
|
157
|
+
The number of interleaved channels in the buffer.
|
|
158
|
+
@var mDataByteSize
|
|
159
|
+
The number of bytes in the buffer pointed at by mData.
|
|
160
|
+
@var mData
|
|
161
|
+
A pointer to the buffer of audio data.
|
|
162
|
+
*/
|
|
163
|
+
struct AudioBuffer
|
|
164
|
+
{
|
|
165
|
+
UInt32 mNumberChannels;
|
|
166
|
+
UInt32 mDataByteSize;
|
|
167
|
+
void* __nullable mData;
|
|
168
|
+
};
|
|
169
|
+
typedef struct AudioBuffer AudioBuffer;
|
|
170
|
+
|
|
171
|
+
/*!
|
|
172
|
+
@struct AudioBufferList
|
|
173
|
+
@abstract A variable length array of AudioBuffer structures.
|
|
174
|
+
@var mNumberBuffers
|
|
175
|
+
The number of AudioBuffers in the mBuffers array.
|
|
176
|
+
@var mBuffers
|
|
177
|
+
A variable length array of AudioBuffers.
|
|
178
|
+
*/
|
|
179
|
+
struct AudioBufferList
|
|
180
|
+
{
|
|
181
|
+
UInt32 mNumberBuffers;
|
|
182
|
+
AudioBuffer mBuffers[1]; // this is a variable length array of mNumberBuffers elements
|
|
183
|
+
|
|
184
|
+
#if defined(__cplusplus) && defined(CA_STRICT) && CA_STRICT
|
|
185
|
+
public:
|
|
186
|
+
AudioBufferList() {}
|
|
187
|
+
private:
|
|
188
|
+
// Copying and assigning a variable length struct is problematic; generate a compile error.
|
|
189
|
+
AudioBufferList(const AudioBufferList&);
|
|
190
|
+
AudioBufferList& operator=(const AudioBufferList&);
|
|
191
|
+
#endif
|
|
192
|
+
|
|
193
|
+
};
|
|
194
|
+
typedef struct AudioBufferList AudioBufferList;
|
|
195
|
+
|
|
196
|
+
//==================================================================================================
|
|
197
|
+
#pragma mark -
|
|
198
|
+
#pragma mark Audio Formats
|
|
199
|
+
|
|
200
|
+
/*!
|
|
201
|
+
@typedef AudioSampleType
|
|
202
|
+
@abstract The canonical audio sample type used by the various CoreAudio APIs
|
|
203
|
+
@discussion
|
|
204
|
+
These types are deprecated. Code performing signal processing should use concrete types
|
|
205
|
+
(e.g. float, Float32, SInt16, SInt32). Format-agnostic code, instead of relying on the sizes
|
|
206
|
+
of these types, should calculate the size of a sample from an AudioStreamBasicDescription's
|
|
207
|
+
mBytesPerChannel, mChannelsPerFrame, and (mFlags & kLinearPCMFormatFlagIsNonInterleaved).
|
|
208
|
+
For interleaved formats, the size of a sample is mBytesPerFrame / mChannelsPerFrame.
|
|
209
|
+
For non-interleaved formats, it is simply mBytesPerFrame.
|
|
210
|
+
*/
|
|
211
|
+
#if !defined(CA_PREFER_FIXED_POINT) || !CA_PREFER_FIXED_POINT
|
|
212
|
+
CA_CANONICAL_DEPRECATED typedef Float32 AudioSampleType;
|
|
213
|
+
CA_CANONICAL_DEPRECATED typedef Float32 AudioUnitSampleType;
|
|
214
|
+
#else
|
|
215
|
+
CA_CANONICAL_DEPRECATED typedef SInt16 AudioSampleType;
|
|
216
|
+
CA_CANONICAL_DEPRECATED typedef SInt32 AudioUnitSampleType;
|
|
217
|
+
#define kAudioUnitSampleFractionBits 24
|
|
218
|
+
#endif
|
|
219
|
+
|
|
220
|
+
/*!
|
|
221
|
+
@typedef AudioFormatID
|
|
222
|
+
@abstract A four char code indicating the general kind of data in the stream.
|
|
223
|
+
*/
|
|
224
|
+
typedef UInt32 AudioFormatID;
|
|
225
|
+
|
|
226
|
+
/*!
|
|
227
|
+
@typedef AudioFormatFlags
|
|
228
|
+
@abstract Flags that are specific to each format.
|
|
229
|
+
*/
|
|
230
|
+
typedef UInt32 AudioFormatFlags;
|
|
231
|
+
|
|
232
|
+
/*!
|
|
233
|
+
@struct AudioStreamBasicDescription
|
|
234
|
+
@abstract This structure encapsulates all the information for describing the basic
|
|
235
|
+
format properties of a stream of audio data.
|
|
236
|
+
@discussion This structure is sufficient to describe any constant bit rate format that has
|
|
237
|
+
channels that are the same size. Extensions are required for variable bit rate
|
|
238
|
+
data and for constant bit rate data where the channels have unequal sizes.
|
|
239
|
+
However, where applicable, the appropriate fields will be filled out correctly
|
|
240
|
+
for these kinds of formats (the extra data is provided via separate properties).
|
|
241
|
+
In all fields, a value of 0 indicates that the field is either unknown, not
|
|
242
|
+
applicable or otherwise is inapproprate for the format and should be ignored.
|
|
243
|
+
Note that 0 is still a valid value for most formats in the mFormatFlags field.
|
|
244
|
+
|
|
245
|
+
In audio data a frame is one sample across all channels. In non-interleaved
|
|
246
|
+
audio, the per frame fields identify one channel. In interleaved audio, the per
|
|
247
|
+
frame fields identify the set of n channels. In uncompressed audio, a Packet is
|
|
248
|
+
one frame, (mFramesPerPacket == 1). In compressed audio, a Packet is an
|
|
249
|
+
indivisible chunk of compressed data, for example an AAC packet will contain
|
|
250
|
+
1024 sample frames.
|
|
251
|
+
|
|
252
|
+
@var mSampleRate
|
|
253
|
+
The number of sample frames per second of the data in the stream.
|
|
254
|
+
@var mFormatID
|
|
255
|
+
The AudioFormatID indicating the general kind of data in the stream.
|
|
256
|
+
@var mFormatFlags
|
|
257
|
+
The AudioFormatFlags for the format indicated by mFormatID.
|
|
258
|
+
@var mBytesPerPacket
|
|
259
|
+
The number of bytes in a packet of data.
|
|
260
|
+
@var mFramesPerPacket
|
|
261
|
+
The number of sample frames in each packet of data.
|
|
262
|
+
@var mBytesPerFrame
|
|
263
|
+
The number of bytes in a single sample frame of data.
|
|
264
|
+
@var mChannelsPerFrame
|
|
265
|
+
The number of channels in each frame of data.
|
|
266
|
+
@var mBitsPerChannel
|
|
267
|
+
The number of bits of sample data for each channel in a frame of data.
|
|
268
|
+
@var mReserved
|
|
269
|
+
Pads the structure out to force an even 8 byte alignment.
|
|
270
|
+
*/
|
|
271
|
+
struct AudioStreamBasicDescription
|
|
272
|
+
{
|
|
273
|
+
Float64 mSampleRate;
|
|
274
|
+
AudioFormatID mFormatID;
|
|
275
|
+
AudioFormatFlags mFormatFlags;
|
|
276
|
+
UInt32 mBytesPerPacket;
|
|
277
|
+
UInt32 mFramesPerPacket;
|
|
278
|
+
UInt32 mBytesPerFrame;
|
|
279
|
+
UInt32 mChannelsPerFrame;
|
|
280
|
+
UInt32 mBitsPerChannel;
|
|
281
|
+
UInt32 mReserved;
|
|
282
|
+
};
|
|
283
|
+
typedef struct AudioStreamBasicDescription AudioStreamBasicDescription;
|
|
284
|
+
|
|
285
|
+
/*!
|
|
286
|
+
@constant kAudioStreamAnyRate
|
|
287
|
+
The format can use any sample rate. Note that this constant can only appear
|
|
288
|
+
in listings of supported formats. It will never appear in a current format.
|
|
289
|
+
*/
|
|
290
|
+
static const Float64 kAudioStreamAnyRate = 0.0;
|
|
291
|
+
|
|
292
|
+
/*!
|
|
293
|
+
@enum Format IDs
|
|
294
|
+
@abstract The AudioFormatIDs used to identify individual formats of audio data.
|
|
295
|
+
@constant kAudioFormatLinearPCM
|
|
296
|
+
Linear PCM, uses the standard flags.
|
|
297
|
+
@constant kAudioFormatAC3
|
|
298
|
+
AC-3, has no flags.
|
|
299
|
+
@constant kAudioFormat60958AC3
|
|
300
|
+
AC-3 packaged for transport over an IEC 60958 compliant digital audio
|
|
301
|
+
interface. Uses the standard flags.
|
|
302
|
+
@constant kAudioFormatAppleIMA4
|
|
303
|
+
Apples implementation of IMA 4:1 ADPCM, has no flags.
|
|
304
|
+
@constant kAudioFormatMPEG4AAC
|
|
305
|
+
MPEG-4 Low Complexity AAC audio object, has no flags.
|
|
306
|
+
@constant kAudioFormatMPEG4CELP
|
|
307
|
+
MPEG-4 CELP audio object, has no flags.
|
|
308
|
+
@constant kAudioFormatMPEG4HVXC
|
|
309
|
+
MPEG-4 HVXC audio object, has no flags.
|
|
310
|
+
@constant kAudioFormatMPEG4TwinVQ
|
|
311
|
+
MPEG-4 TwinVQ audio object type, has no flags.
|
|
312
|
+
@constant kAudioFormatMACE3
|
|
313
|
+
MACE 3:1, has no flags.
|
|
314
|
+
@constant kAudioFormatMACE6
|
|
315
|
+
MACE 6:1, has no flags.
|
|
316
|
+
@constant kAudioFormatULaw
|
|
317
|
+
µLaw 2:1, has no flags.
|
|
318
|
+
@constant kAudioFormatALaw
|
|
319
|
+
aLaw 2:1, has no flags.
|
|
320
|
+
@constant kAudioFormatQDesign
|
|
321
|
+
QDesign music, has no flags
|
|
322
|
+
@constant kAudioFormatQDesign2
|
|
323
|
+
QDesign2 music, has no flags
|
|
324
|
+
@constant kAudioFormatQUALCOMM
|
|
325
|
+
QUALCOMM PureVoice, has no flags
|
|
326
|
+
@constant kAudioFormatMPEGLayer1
|
|
327
|
+
MPEG-1/2, Layer 1 audio, has no flags
|
|
328
|
+
@constant kAudioFormatMPEGLayer2
|
|
329
|
+
MPEG-1/2, Layer 2 audio, has no flags
|
|
330
|
+
@constant kAudioFormatMPEGLayer3
|
|
331
|
+
MPEG-1/2, Layer 3 audio, has no flags
|
|
332
|
+
@constant kAudioFormatTimeCode
|
|
333
|
+
A stream of IOAudioTimeStamps, uses the IOAudioTimeStamp flags (see
|
|
334
|
+
IOKit/audio/IOAudioTypes.h).
|
|
335
|
+
@constant kAudioFormatMIDIStream
|
|
336
|
+
A stream of MIDIPacketLists where the time stamps in the MIDIPacketList are
|
|
337
|
+
sample offsets in the stream. The mSampleRate field is used to describe how
|
|
338
|
+
time is passed in this kind of stream and an AudioUnit that receives or
|
|
339
|
+
generates this stream can use this sample rate, the number of frames it is
|
|
340
|
+
rendering and the sample offsets within the MIDIPacketList to define the
|
|
341
|
+
time for any MIDI event within this list. It has no flags.
|
|
342
|
+
@constant kAudioFormatParameterValueStream
|
|
343
|
+
A "side-chain" of Float32 data that can be fed or generated by an AudioUnit
|
|
344
|
+
and is used to send a high density of parameter value control information.
|
|
345
|
+
An AU will typically run a ParameterValueStream at either the sample rate of
|
|
346
|
+
the AudioUnit's audio data, or some integer divisor of this (say a half or a
|
|
347
|
+
third of the sample rate of the audio). The Sample Rate of the ASBD
|
|
348
|
+
describes this relationship. It has no flags.
|
|
349
|
+
@constant kAudioFormatAppleLossless
|
|
350
|
+
Apple Lossless, the flags indicate the bit depth of the source material.
|
|
351
|
+
@constant kAudioFormatMPEG4AAC_HE
|
|
352
|
+
MPEG-4 High Efficiency AAC audio object, has no flags.
|
|
353
|
+
@constant kAudioFormatMPEG4AAC_LD
|
|
354
|
+
MPEG-4 AAC Low Delay audio object, has no flags.
|
|
355
|
+
@constant kAudioFormatMPEG4AAC_ELD
|
|
356
|
+
MPEG-4 AAC Enhanced Low Delay audio object, has no flags. This is the formatID of
|
|
357
|
+
the base layer without the SBR extension. See also kAudioFormatMPEG4AAC_ELD_SBR
|
|
358
|
+
@constant kAudioFormatMPEG4AAC_ELD_SBR
|
|
359
|
+
MPEG-4 AAC Enhanced Low Delay audio object with SBR extension layer, has no flags.
|
|
360
|
+
@constant kAudioFormatMPEG4AAC_HE_V2
|
|
361
|
+
MPEG-4 High Efficiency AAC Version 2 audio object, has no flags.
|
|
362
|
+
@constant kAudioFormatMPEG4AAC_Spatial
|
|
363
|
+
MPEG-4 Spatial Audio audio object, has no flags.
|
|
364
|
+
@constant kAudioFormatMPEGD_USAC
|
|
365
|
+
MPEG-D Unified Speech and Audio Coding, has no flags.
|
|
366
|
+
@constant kAudioFormatAMR
|
|
367
|
+
The AMR Narrow Band speech codec.
|
|
368
|
+
@constant kAudioFormatAMR_WB
|
|
369
|
+
The AMR Wide Band speech codec.
|
|
370
|
+
@constant kAudioFormatAudible
|
|
371
|
+
The format used for Audible audio books. It has no flags.
|
|
372
|
+
@constant kAudioFormatiLBC
|
|
373
|
+
The iLBC narrow band speech codec. It has no flags.
|
|
374
|
+
@constant kAudioFormatDVIIntelIMA
|
|
375
|
+
DVI/Intel IMA ADPCM - ACM code 17.
|
|
376
|
+
@constant kAudioFormatMicrosoftGSM
|
|
377
|
+
Microsoft GSM 6.10 - ACM code 49.
|
|
378
|
+
@constant kAudioFormatAES3
|
|
379
|
+
This format is defined by AES3-2003, and adopted into MXF and MPEG-2
|
|
380
|
+
containers and SDTI transport streams with SMPTE specs 302M-2002 and
|
|
381
|
+
331M-2000. It has no flags.
|
|
382
|
+
@constant kAudioFormatEnhancedAC3
|
|
383
|
+
Enhanced AC-3, has no flags.
|
|
384
|
+
@constant kAudioFormatFLAC
|
|
385
|
+
Free Lossless Audio Codec, the flags indicate the bit depth of the source material.
|
|
386
|
+
@constant kAudioFormatOpus
|
|
387
|
+
Opus codec, has no flags.
|
|
388
|
+
@constant kAudioFormatAPAC
|
|
389
|
+
Apple Positional Audio Codec, has no flags.
|
|
390
|
+
*/
|
|
391
|
+
CF_ENUM(AudioFormatID)
|
|
392
|
+
{
|
|
393
|
+
kAudioFormatLinearPCM = 'lpcm',
|
|
394
|
+
kAudioFormatAC3 = 'ac-3',
|
|
395
|
+
kAudioFormat60958AC3 = 'cac3',
|
|
396
|
+
kAudioFormatAppleIMA4 = 'ima4',
|
|
397
|
+
kAudioFormatMPEG4AAC = 'aac ',
|
|
398
|
+
kAudioFormatMPEG4CELP = 'celp',
|
|
399
|
+
kAudioFormatMPEG4HVXC = 'hvxc',
|
|
400
|
+
kAudioFormatMPEG4TwinVQ = 'twvq',
|
|
401
|
+
kAudioFormatMACE3 = 'MAC3',
|
|
402
|
+
kAudioFormatMACE6 = 'MAC6',
|
|
403
|
+
kAudioFormatULaw = 'ulaw',
|
|
404
|
+
kAudioFormatALaw = 'alaw',
|
|
405
|
+
kAudioFormatQDesign = 'QDMC',
|
|
406
|
+
kAudioFormatQDesign2 = 'QDM2',
|
|
407
|
+
kAudioFormatQUALCOMM = 'Qclp',
|
|
408
|
+
kAudioFormatMPEGLayer1 = '.mp1',
|
|
409
|
+
kAudioFormatMPEGLayer2 = '.mp2',
|
|
410
|
+
kAudioFormatMPEGLayer3 = '.mp3',
|
|
411
|
+
kAudioFormatTimeCode = 'time',
|
|
412
|
+
kAudioFormatMIDIStream = 'midi',
|
|
413
|
+
kAudioFormatParameterValueStream = 'apvs',
|
|
414
|
+
kAudioFormatAppleLossless = 'alac',
|
|
415
|
+
kAudioFormatMPEG4AAC_HE = 'aach',
|
|
416
|
+
kAudioFormatMPEG4AAC_LD = 'aacl',
|
|
417
|
+
kAudioFormatMPEG4AAC_ELD = 'aace',
|
|
418
|
+
kAudioFormatMPEG4AAC_ELD_SBR = 'aacf',
|
|
419
|
+
kAudioFormatMPEG4AAC_ELD_V2 = 'aacg',
|
|
420
|
+
kAudioFormatMPEG4AAC_HE_V2 = 'aacp',
|
|
421
|
+
kAudioFormatMPEG4AAC_Spatial = 'aacs',
|
|
422
|
+
kAudioFormatMPEGD_USAC = 'usac',
|
|
423
|
+
kAudioFormatAMR = 'samr',
|
|
424
|
+
kAudioFormatAMR_WB = 'sawb',
|
|
425
|
+
kAudioFormatAudible = 'AUDB',
|
|
426
|
+
kAudioFormatiLBC = 'ilbc',
|
|
427
|
+
kAudioFormatDVIIntelIMA = 0x6D730011,
|
|
428
|
+
kAudioFormatMicrosoftGSM = 0x6D730031,
|
|
429
|
+
kAudioFormatAES3 = 'aes3',
|
|
430
|
+
kAudioFormatEnhancedAC3 = 'ec-3',
|
|
431
|
+
kAudioFormatFLAC = 'flac',
|
|
432
|
+
kAudioFormatOpus = 'opus',
|
|
433
|
+
kAudioFormatAPAC = 'apac',
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
/*!
|
|
437
|
+
@enum Standard AudioFormatFlags Values for AudioStreamBasicDescription
|
|
438
|
+
@abstract These are the standard AudioFormatFlags for use in the mFormatFlags field of the
|
|
439
|
+
AudioStreamBasicDescription structure.
|
|
440
|
+
@discussion Typically, when an ASBD is being used, the fields describe the complete layout
|
|
441
|
+
of the sample data in the buffers that are represented by this description -
|
|
442
|
+
where typically those buffers are represented by an AudioBuffer that is
|
|
443
|
+
contained in an AudioBufferList.
|
|
444
|
+
|
|
445
|
+
However, when an ASBD has the kAudioFormatFlagIsNonInterleaved flag, the
|
|
446
|
+
AudioBufferList has a different structure and semantic. In this case, the ASBD
|
|
447
|
+
fields will describe the format of ONE of the AudioBuffers that are contained in
|
|
448
|
+
the list, AND each AudioBuffer in the list is determined to have a single (mono)
|
|
449
|
+
channel of audio data. Then, the ASBD's mChannelsPerFrame will indicate the
|
|
450
|
+
total number of AudioBuffers that are contained within the AudioBufferList -
|
|
451
|
+
where each buffer contains one channel. This is used primarily with the
|
|
452
|
+
AudioUnit (and AudioConverter) representation of this list - and won't be found
|
|
453
|
+
in the AudioHardware usage of this structure.
|
|
454
|
+
@constant kAudioFormatFlagIsFloat
|
|
455
|
+
Set for floating point, clear for integer.
|
|
456
|
+
@constant kAudioFormatFlagIsBigEndian
|
|
457
|
+
Set for big endian, clear for little endian.
|
|
458
|
+
@constant kAudioFormatFlagIsSignedInteger
|
|
459
|
+
Set for signed integer, clear for unsigned integer. This is only valid if
|
|
460
|
+
kAudioFormatFlagIsFloat is clear.
|
|
461
|
+
@constant kAudioFormatFlagIsPacked
|
|
462
|
+
Set if the sample bits occupy the entire available bits for the channel,
|
|
463
|
+
clear if they are high or low aligned within the channel. Note that even if
|
|
464
|
+
this flag is clear, it is implied that this flag is set if the
|
|
465
|
+
AudioStreamBasicDescription is filled out such that the fields have the
|
|
466
|
+
following relationship:
|
|
467
|
+
((mBitsPerSample / 8) * mChannelsPerFrame) == mBytesPerFrame
|
|
468
|
+
@constant kAudioFormatFlagIsAlignedHigh
|
|
469
|
+
Set if the sample bits are placed into the high bits of the channel, clear
|
|
470
|
+
for low bit placement. This is only valid if kAudioFormatFlagIsPacked is
|
|
471
|
+
clear.
|
|
472
|
+
@constant kAudioFormatFlagIsNonInterleaved
|
|
473
|
+
Set if the samples for each channel are located contiguously and the
|
|
474
|
+
channels are layed out end to end, clear if the samples for each frame are
|
|
475
|
+
layed out contiguously and the frames layed out end to end.
|
|
476
|
+
@constant kAudioFormatFlagIsNonMixable
|
|
477
|
+
Set to indicate when a format is non-mixable. Note that this flag is only
|
|
478
|
+
used when interacting with the HAL's stream format information. It is not a
|
|
479
|
+
valid flag for any other uses.
|
|
480
|
+
@constant kAudioFormatFlagsAreAllClear
|
|
481
|
+
Set if all the flags would be clear in order to preserve 0 as the wild card
|
|
482
|
+
value.
|
|
483
|
+
@constant kLinearPCMFormatFlagIsFloat
|
|
484
|
+
Synonym for kAudioFormatFlagIsFloat.
|
|
485
|
+
@constant kLinearPCMFormatFlagIsBigEndian
|
|
486
|
+
Synonym for kAudioFormatFlagIsBigEndian.
|
|
487
|
+
@constant kLinearPCMFormatFlagIsSignedInteger
|
|
488
|
+
Synonym for kAudioFormatFlagIsSignedInteger.
|
|
489
|
+
@constant kLinearPCMFormatFlagIsPacked
|
|
490
|
+
Synonym for kAudioFormatFlagIsPacked.
|
|
491
|
+
@constant kLinearPCMFormatFlagIsAlignedHigh
|
|
492
|
+
Synonym for kAudioFormatFlagIsAlignedHigh.
|
|
493
|
+
@constant kLinearPCMFormatFlagIsNonInterleaved
|
|
494
|
+
Synonym for kAudioFormatFlagIsNonInterleaved.
|
|
495
|
+
@constant kLinearPCMFormatFlagIsNonMixable
|
|
496
|
+
Synonym for kAudioFormatFlagIsNonMixable.
|
|
497
|
+
@constant kLinearPCMFormatFlagsAreAllClear
|
|
498
|
+
Synonym for kAudioFormatFlagsAreAllClear.
|
|
499
|
+
@constant kLinearPCMFormatFlagsSampleFractionShift
|
|
500
|
+
The linear PCM flags contain a 6-bit bitfield indicating that an integer
|
|
501
|
+
format is to be interpreted as fixed point. The value indicates the number
|
|
502
|
+
of bits are used to represent the fractional portion of each sample value.
|
|
503
|
+
This constant indicates the bit position (counting from the right) of the
|
|
504
|
+
bitfield in mFormatFlags.
|
|
505
|
+
@constant kLinearPCMFormatFlagsSampleFractionMask
|
|
506
|
+
number_fractional_bits = (mFormatFlags &
|
|
507
|
+
kLinearPCMFormatFlagsSampleFractionMask) >>
|
|
508
|
+
kLinearPCMFormatFlagsSampleFractionShift
|
|
509
|
+
@constant kAppleLosslessFormatFlag_16BitSourceData
|
|
510
|
+
This flag is set for Apple Lossless data that was sourced from 16 bit native
|
|
511
|
+
endian signed integer data.
|
|
512
|
+
@constant kAppleLosslessFormatFlag_20BitSourceData
|
|
513
|
+
This flag is set for Apple Lossless data that was sourced from 20 bit native
|
|
514
|
+
endian signed integer data aligned high in 24 bits.
|
|
515
|
+
@constant kAppleLosslessFormatFlag_24BitSourceData
|
|
516
|
+
This flag is set for Apple Lossless data that was sourced from 24 bit native
|
|
517
|
+
endian signed integer data.
|
|
518
|
+
@constant kAppleLosslessFormatFlag_32BitSourceData
|
|
519
|
+
This flag is set for Apple Lossless data that was sourced from 32 bit native
|
|
520
|
+
endian signed integer data.
|
|
521
|
+
*/
|
|
522
|
+
CF_ENUM(AudioFormatFlags)
|
|
523
|
+
{
|
|
524
|
+
kAudioFormatFlagIsFloat = (1U << 0), // 0x1
|
|
525
|
+
kAudioFormatFlagIsBigEndian = (1U << 1), // 0x2
|
|
526
|
+
kAudioFormatFlagIsSignedInteger = (1U << 2), // 0x4
|
|
527
|
+
kAudioFormatFlagIsPacked = (1U << 3), // 0x8
|
|
528
|
+
kAudioFormatFlagIsAlignedHigh = (1U << 4), // 0x10
|
|
529
|
+
kAudioFormatFlagIsNonInterleaved = (1U << 5), // 0x20
|
|
530
|
+
kAudioFormatFlagIsNonMixable = (1U << 6), // 0x40
|
|
531
|
+
kAudioFormatFlagsAreAllClear = 0x80000000,
|
|
532
|
+
|
|
533
|
+
kLinearPCMFormatFlagIsFloat = kAudioFormatFlagIsFloat,
|
|
534
|
+
kLinearPCMFormatFlagIsBigEndian = kAudioFormatFlagIsBigEndian,
|
|
535
|
+
kLinearPCMFormatFlagIsSignedInteger = kAudioFormatFlagIsSignedInteger,
|
|
536
|
+
kLinearPCMFormatFlagIsPacked = kAudioFormatFlagIsPacked,
|
|
537
|
+
kLinearPCMFormatFlagIsAlignedHigh = kAudioFormatFlagIsAlignedHigh,
|
|
538
|
+
kLinearPCMFormatFlagIsNonInterleaved = kAudioFormatFlagIsNonInterleaved,
|
|
539
|
+
kLinearPCMFormatFlagIsNonMixable = kAudioFormatFlagIsNonMixable,
|
|
540
|
+
kLinearPCMFormatFlagsSampleFractionShift = 7,
|
|
541
|
+
kLinearPCMFormatFlagsSampleFractionMask = (0x3F << kLinearPCMFormatFlagsSampleFractionShift),
|
|
542
|
+
kLinearPCMFormatFlagsAreAllClear = kAudioFormatFlagsAreAllClear,
|
|
543
|
+
|
|
544
|
+
kAppleLosslessFormatFlag_16BitSourceData = 1,
|
|
545
|
+
kAppleLosslessFormatFlag_20BitSourceData = 2,
|
|
546
|
+
kAppleLosslessFormatFlag_24BitSourceData = 3,
|
|
547
|
+
kAppleLosslessFormatFlag_32BitSourceData = 4
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
/*!
|
|
551
|
+
@enum Commonly Used Combinations of AudioFormatFlags
|
|
552
|
+
@abstract Some commonly used combinations of flags for AudioStreamBasicDescriptions.
|
|
553
|
+
@constant kAudioFormatFlagsNativeEndian
|
|
554
|
+
Defined to set or clear kAudioFormatFlagIsBigEndian depending on the
|
|
555
|
+
endianness of the processor at build time.
|
|
556
|
+
@constant kAudioFormatFlagsCanonical
|
|
557
|
+
The flags for the canonical audio sample type. This matches AudioSampleType.
|
|
558
|
+
@constant kAudioFormatFlagsAudioUnitCanonical
|
|
559
|
+
The flags for the canonical audio unit sample type. This matches
|
|
560
|
+
AudioUnitSampleType.
|
|
561
|
+
@constant kAudioFormatFlagsNativeFloatPacked
|
|
562
|
+
The flags for fully packed, native endian floating point data.
|
|
563
|
+
|
|
564
|
+
@discussion
|
|
565
|
+
The "canonical" flags are deprecated. CA_PREFER_FIXED_POINT is discouraged because floating-
|
|
566
|
+
point performance on iOS is such that fixed point is no longer truly preferred. All Apple-
|
|
567
|
+
supplied AudioUnits support floating point. Replacement should be done with careful
|
|
568
|
+
consideration of the format being specified or expected, but often
|
|
569
|
+
kAudioFormatFlagsCanonical can be replaced with kAudioFormatFlagsNativeFloatPacked, and
|
|
570
|
+
kAudioFormatFlagsAudioUnitCanonical with kAudioFormatFlagsNativeFloatPacked |
|
|
571
|
+
kAudioFormatFlagIsNonInterleaved.
|
|
572
|
+
*/
|
|
573
|
+
CF_ENUM(AudioFormatFlags)
|
|
574
|
+
{
|
|
575
|
+
#if TARGET_RT_BIG_ENDIAN
|
|
576
|
+
kAudioFormatFlagsNativeEndian = kAudioFormatFlagIsBigEndian,
|
|
577
|
+
#else
|
|
578
|
+
kAudioFormatFlagsNativeEndian = 0,
|
|
579
|
+
#endif
|
|
580
|
+
#if !defined(CA_PREFER_FIXED_POINT) || !CA_PREFER_FIXED_POINT
|
|
581
|
+
kAudioFormatFlagsCanonical CA_CANONICAL_DEPRECATED = kAudioFormatFlagIsFloat | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked,
|
|
582
|
+
kAudioFormatFlagsAudioUnitCanonical CA_CANONICAL_DEPRECATED = kAudioFormatFlagIsFloat | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved,
|
|
583
|
+
#else
|
|
584
|
+
kAudioFormatFlagsCanonical CA_CANONICAL_DEPRECATED = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked,
|
|
585
|
+
kAudioFormatFlagsAudioUnitCanonical CA_CANONICAL_DEPRECATED = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved | (kAudioUnitSampleFractionBits << kLinearPCMFormatFlagsSampleFractionShift),
|
|
586
|
+
#endif
|
|
587
|
+
kAudioFormatFlagsNativeFloatPacked = kAudioFormatFlagIsFloat | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
/*!
|
|
591
|
+
@defined TestAudioFormatNativeEndian
|
|
592
|
+
@abstract A macro for checking if an ASBD indicates native endian linear PCM data.
|
|
593
|
+
*/
|
|
594
|
+
#define TestAudioFormatNativeEndian(f) ((f.mFormatID == kAudioFormatLinearPCM) && ((f.mFormatFlags & kAudioFormatFlagIsBigEndian) == kAudioFormatFlagsNativeEndian))
|
|
595
|
+
|
|
596
|
+
/*!
|
|
597
|
+
@function IsAudioFormatNativeEndian
|
|
598
|
+
@abstract A C++ inline function for checking if an ASBD indicates native endian linear PCM
|
|
599
|
+
data.
|
|
600
|
+
@param f
|
|
601
|
+
The AudioStreamBasicDescription to examine.
|
|
602
|
+
@result Whether or not the ASBD indicates native endian linear PCM data.
|
|
603
|
+
*/
|
|
604
|
+
#if defined(__cplusplus)
|
|
605
|
+
static inline bool IsAudioFormatNativeEndian(const AudioStreamBasicDescription& f) { return (f.mFormatID == kAudioFormatLinearPCM) && ((f.mFormatFlags & kAudioFormatFlagIsBigEndian) == kAudioFormatFlagsNativeEndian); }
|
|
606
|
+
#endif
|
|
607
|
+
|
|
608
|
+
/*!
|
|
609
|
+
@function CalculateLPCMFlags
|
|
610
|
+
@abstract A C++ inline function for calculating the mFormatFlags for linear PCM data. Note
|
|
611
|
+
that this function does not support specifying sample formats that are either
|
|
612
|
+
unsigned integer or low-aligned.
|
|
613
|
+
@param inSampleRate
|
|
614
|
+
|
|
615
|
+
@param inValidBitsPerChannel
|
|
616
|
+
The number of valid bits in each sample.
|
|
617
|
+
@param inTotalBitsPerChannel
|
|
618
|
+
The total number of bits in each sample.
|
|
619
|
+
@param inIsFloat
|
|
620
|
+
Whether or not the samples are represented with floating point numbers.
|
|
621
|
+
@param isIsBigEndian
|
|
622
|
+
Whether the samples are big endian or little endian.
|
|
623
|
+
@result A UInt32 containing the format flags.
|
|
624
|
+
*/
|
|
625
|
+
#if defined(__cplusplus)
|
|
626
|
+
static inline AudioFormatFlags CalculateLPCMFlags(UInt32 inValidBitsPerChannel, UInt32 inTotalBitsPerChannel, bool inIsFloat, bool inIsBigEndian, bool inIsNonInterleaved = false) { return (inIsFloat ? kAudioFormatFlagIsFloat : kAudioFormatFlagIsSignedInteger) | (inIsBigEndian ? ((UInt32)kAudioFormatFlagIsBigEndian) : 0) | ((inValidBitsPerChannel == inTotalBitsPerChannel) ? kAudioFormatFlagIsPacked : kAudioFormatFlagIsAlignedHigh) | (inIsNonInterleaved ? ((UInt32)kAudioFormatFlagIsNonInterleaved) : 0); }
|
|
627
|
+
#endif
|
|
628
|
+
|
|
629
|
+
/*!
|
|
630
|
+
@function FillOutASBDForLPCM
|
|
631
|
+
@abstract A C++ inline function for filling out an AudioStreamBasicDescription to describe
|
|
632
|
+
linear PCM data. Note that this function does not support specifying sample formats
|
|
633
|
+
that are either unsigned integer or low-aligned.
|
|
634
|
+
@param outASBD
|
|
635
|
+
The AudioStreamBasicDescription to fill out.
|
|
636
|
+
@param inSampleRate
|
|
637
|
+
The number of sample frames per second of the data in the stream.
|
|
638
|
+
@param inChannelsPerFrame
|
|
639
|
+
The number of channels in each frame of data.
|
|
640
|
+
@param inValidBitsPerChannel
|
|
641
|
+
The number of valid bits in each sample.
|
|
642
|
+
@param inTotalBitsPerChannel
|
|
643
|
+
The total number of bits in each sample.
|
|
644
|
+
@param inIsFloat
|
|
645
|
+
Whether or not the samples are represented with floating point numbers.
|
|
646
|
+
@param isIsBigEndian
|
|
647
|
+
Whether the samples are big endian or little endian.
|
|
648
|
+
*/
|
|
649
|
+
#if defined(__cplusplus)
|
|
650
|
+
static inline void FillOutASBDForLPCM(AudioStreamBasicDescription& outASBD, Float64 inSampleRate, UInt32 inChannelsPerFrame, UInt32 inValidBitsPerChannel, UInt32 inTotalBitsPerChannel, bool inIsFloat, bool inIsBigEndian, bool inIsNonInterleaved = false) { outASBD.mSampleRate = inSampleRate; outASBD.mFormatID = kAudioFormatLinearPCM; outASBD.mFormatFlags = CalculateLPCMFlags(inValidBitsPerChannel, inTotalBitsPerChannel, inIsFloat, inIsBigEndian, inIsNonInterleaved); outASBD.mBytesPerPacket = (inIsNonInterleaved ? 1 : inChannelsPerFrame) * (inTotalBitsPerChannel / 8); outASBD.mFramesPerPacket = 1; outASBD.mBytesPerFrame = (inIsNonInterleaved ? 1 : inChannelsPerFrame) * (inTotalBitsPerChannel / 8); outASBD.mChannelsPerFrame = inChannelsPerFrame; outASBD.mBitsPerChannel = inValidBitsPerChannel; }
|
|
651
|
+
#endif
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
/*!
|
|
655
|
+
@struct AudioStreamPacketDescription
|
|
656
|
+
@abstract This structure describes the packet layout of a buffer of data where the size of
|
|
657
|
+
each packet may not be the same or where there is extraneous data between
|
|
658
|
+
packets.
|
|
659
|
+
@var mStartOffset
|
|
660
|
+
The number of bytes from the start of the buffer to the beginning of the
|
|
661
|
+
packet.
|
|
662
|
+
@var mVariableFramesInPacket
|
|
663
|
+
The number of sample frames of data in the packet. For formats with a
|
|
664
|
+
constant number of frames per packet, this field is set to 0.
|
|
665
|
+
@var mDataByteSize
|
|
666
|
+
The number of bytes in the packet.
|
|
667
|
+
*/
|
|
668
|
+
struct AudioStreamPacketDescription
|
|
669
|
+
{
|
|
670
|
+
SInt64 mStartOffset;
|
|
671
|
+
UInt32 mVariableFramesInPacket;
|
|
672
|
+
UInt32 mDataByteSize;
|
|
673
|
+
};
|
|
674
|
+
typedef struct AudioStreamPacketDescription AudioStreamPacketDescription;
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
/*!
|
|
678
|
+
@struct AudioStreamPacketDependencyDescription
|
|
679
|
+
@abstract A structure to provide a description of the dependencies of one audio packet on other audio packets.
|
|
680
|
+
|
|
681
|
+
@var mIsIndependentlyDecodable
|
|
682
|
+
1 if the packet is independently decodable, 0 otherwise.
|
|
683
|
+
@var mPreRollCount
|
|
684
|
+
The count of packets that must be decoded after this packet in order to refresh the decoder,
|
|
685
|
+
if the packet is independently decodable. This value should be ignored if
|
|
686
|
+
``mIsIndependentlyDecodable`` is 0.
|
|
687
|
+
@var mFlags
|
|
688
|
+
Currently unused.
|
|
689
|
+
@var mReserved
|
|
690
|
+
Reserved for future use.
|
|
691
|
+
|
|
692
|
+
@discussion
|
|
693
|
+
For independently decodable packets, the ``mPreRollCount`` indicates how many additional packets need
|
|
694
|
+
to be decoded after this packet in order for the decoder to start returning optimal output,
|
|
695
|
+
if this is the first packet decoded since the decoder was initialized.
|
|
696
|
+
|
|
697
|
+
For example, if this packet is packet #123 of some given packet stream, and ``mIsIndependentlyDecodable``
|
|
698
|
+
is 0, or ``mIsIndependentlyDecodable`` is 1 and ``mPreRollCount`` is non-zero, and the client desires optimal
|
|
699
|
+
output starting with the output corresponding with packet #123 (because for example the client
|
|
700
|
+
is an audio player whose user seeks to a starting playback position corresponding with packet #123),
|
|
701
|
+
the client would scan back, starting at packet #122, searching for an independently decodable
|
|
702
|
+
packet with a preroll not intersecting packet #123. If for packet #122 ``mIsIndependentlyDecodable``
|
|
703
|
+
is 0, or ``mIsIndependentlyDecodable`` is 1 but ``mPreRollCount`` is 2 or more, the client would still not
|
|
704
|
+
get optimal output for packet #123 if starting here, so the client continues to scan back.
|
|
705
|
+
If for packet #121 ``mIsIndependentlyDecodable`` is 1 and ``mPreRollCount`` is 2 or less, the client would
|
|
706
|
+
start decoding from this point, but discard the output equivalent of the two extra input packets
|
|
707
|
+
(desired first output packet - actual first decoded packet, or 122 - 120 == 2).
|
|
708
|
+
*/
|
|
709
|
+
struct AudioStreamPacketDependencyDescription
|
|
710
|
+
{
|
|
711
|
+
UInt32 mIsIndependentlyDecodable;
|
|
712
|
+
UInt32 mPreRollCount;
|
|
713
|
+
UInt32 mFlags;
|
|
714
|
+
UInt32 mReserved;
|
|
715
|
+
};
|
|
716
|
+
typedef struct AudioStreamPacketDependencyDescription AudioStreamPacketDependencyDescription;
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
//==================================================================================================
|
|
720
|
+
#pragma mark -
|
|
721
|
+
#pragma mark Audio Time Stamps
|
|
722
|
+
|
|
723
|
+
// SMPTETime is also defined in the CoreVideo headers.
|
|
724
|
+
#if !defined(__SMPTETime__)
|
|
725
|
+
#define __SMPTETime__
|
|
726
|
+
|
|
727
|
+
/*!
|
|
728
|
+
@enum SMPTE Time Types
|
|
729
|
+
@abstract Constants that describe the type of SMPTE time.
|
|
730
|
+
@constant kSMPTETimeType24
|
|
731
|
+
24 Frame
|
|
732
|
+
@constant kSMPTETimeType25
|
|
733
|
+
25 Frame
|
|
734
|
+
@constant kSMPTETimeType30Drop
|
|
735
|
+
30 Drop Frame
|
|
736
|
+
@constant kSMPTETimeType30
|
|
737
|
+
30 Frame
|
|
738
|
+
@constant kSMPTETimeType2997
|
|
739
|
+
29.97 Frame
|
|
740
|
+
@constant kSMPTETimeType2997Drop
|
|
741
|
+
29.97 Drop Frame
|
|
742
|
+
@constant kSMPTETimeType60
|
|
743
|
+
60 Frame
|
|
744
|
+
@constant kSMPTETimeType5994
|
|
745
|
+
59.94 Frame
|
|
746
|
+
@constant kSMPTETimeType60Drop
|
|
747
|
+
60 Drop Frame
|
|
748
|
+
@constant kSMPTETimeType5994Drop
|
|
749
|
+
59.94 Drop Frame
|
|
750
|
+
@constant kSMPTETimeType50
|
|
751
|
+
50 Frame
|
|
752
|
+
@constant kSMPTETimeType2398
|
|
753
|
+
23.98 Frame
|
|
754
|
+
*/
|
|
755
|
+
typedef CF_ENUM(UInt32, SMPTETimeType)
|
|
756
|
+
{
|
|
757
|
+
kSMPTETimeType24 = 0,
|
|
758
|
+
kSMPTETimeType25 = 1,
|
|
759
|
+
kSMPTETimeType30Drop = 2,
|
|
760
|
+
kSMPTETimeType30 = 3,
|
|
761
|
+
kSMPTETimeType2997 = 4,
|
|
762
|
+
kSMPTETimeType2997Drop = 5,
|
|
763
|
+
kSMPTETimeType60 = 6,
|
|
764
|
+
kSMPTETimeType5994 = 7,
|
|
765
|
+
kSMPTETimeType60Drop = 8,
|
|
766
|
+
kSMPTETimeType5994Drop = 9,
|
|
767
|
+
kSMPTETimeType50 = 10,
|
|
768
|
+
kSMPTETimeType2398 = 11
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
/*!
|
|
772
|
+
@enum SMPTETimeFlags
|
|
773
|
+
@abstract Flags that describe the SMPTE time state.
|
|
774
|
+
@constant kSMPTETimeValid
|
|
775
|
+
The full time is valid.
|
|
776
|
+
@constant kSMPTETimeRunning
|
|
777
|
+
Time is running.
|
|
778
|
+
*/
|
|
779
|
+
typedef CF_OPTIONS(UInt32, SMPTETimeFlags)
|
|
780
|
+
{
|
|
781
|
+
kSMPTETimeUnknown = 0,
|
|
782
|
+
kSMPTETimeValid = (1U << 0),
|
|
783
|
+
kSMPTETimeRunning = (1U << 1)
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
/*!
|
|
787
|
+
@struct SMPTETime
|
|
788
|
+
@abstract A structure for holding a SMPTE time.
|
|
789
|
+
@var mSubframes
|
|
790
|
+
The number of subframes in the full message.
|
|
791
|
+
@var mSubframeDivisor
|
|
792
|
+
The number of subframes per frame (typically 80).
|
|
793
|
+
@var mCounter
|
|
794
|
+
The total number of messages received.
|
|
795
|
+
@var mType
|
|
796
|
+
The kind of SMPTE time using the SMPTE time type constants.
|
|
797
|
+
@var mFlags
|
|
798
|
+
A set of flags that indicate the SMPTE state.
|
|
799
|
+
@var mHours
|
|
800
|
+
The number of hours in the full message.
|
|
801
|
+
@var mMinutes
|
|
802
|
+
The number of minutes in the full message.
|
|
803
|
+
@var mSeconds
|
|
804
|
+
The number of seconds in the full message.
|
|
805
|
+
@var mFrames
|
|
806
|
+
The number of frames in the full message.
|
|
807
|
+
*/
|
|
808
|
+
struct SMPTETime
|
|
809
|
+
{
|
|
810
|
+
SInt16 mSubframes;
|
|
811
|
+
SInt16 mSubframeDivisor;
|
|
812
|
+
UInt32 mCounter;
|
|
813
|
+
SMPTETimeType mType;
|
|
814
|
+
SMPTETimeFlags mFlags;
|
|
815
|
+
SInt16 mHours;
|
|
816
|
+
SInt16 mMinutes;
|
|
817
|
+
SInt16 mSeconds;
|
|
818
|
+
SInt16 mFrames;
|
|
819
|
+
};
|
|
820
|
+
typedef struct SMPTETime SMPTETime;
|
|
821
|
+
|
|
822
|
+
#endif
|
|
823
|
+
|
|
824
|
+
/*!
|
|
825
|
+
@enum AudioTimeStampFlags
|
|
826
|
+
@abstract The flags that indicate which fields in an AudioTimeStamp structure are valid.
|
|
827
|
+
@constant kAudioTimeStampSampleTimeValid
|
|
828
|
+
The sample frame time is valid.
|
|
829
|
+
@constant kAudioTimeStampHostTimeValid
|
|
830
|
+
The host time is valid.
|
|
831
|
+
@constant kAudioTimeStampRateScalarValid
|
|
832
|
+
The rate scalar is valid.
|
|
833
|
+
@constant kAudioTimeStampWordClockTimeValid
|
|
834
|
+
The word clock time is valid.
|
|
835
|
+
@constant kAudioTimeStampSMPTETimeValid
|
|
836
|
+
The SMPTE time is valid.
|
|
837
|
+
@constant kAudioTimeStampSampleHostTimeValid
|
|
838
|
+
The sample frame time and the host time are valid.
|
|
839
|
+
*/
|
|
840
|
+
typedef CF_OPTIONS(UInt32, AudioTimeStampFlags)
|
|
841
|
+
{
|
|
842
|
+
kAudioTimeStampNothingValid = 0,
|
|
843
|
+
kAudioTimeStampSampleTimeValid = (1U << 0),
|
|
844
|
+
kAudioTimeStampHostTimeValid = (1U << 1),
|
|
845
|
+
kAudioTimeStampRateScalarValid = (1U << 2),
|
|
846
|
+
kAudioTimeStampWordClockTimeValid = (1U << 3),
|
|
847
|
+
kAudioTimeStampSMPTETimeValid = (1U << 4),
|
|
848
|
+
kAudioTimeStampSampleHostTimeValid = (kAudioTimeStampSampleTimeValid | kAudioTimeStampHostTimeValid)
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
/*!
|
|
852
|
+
@struct AudioTimeStamp
|
|
853
|
+
@abstract A structure that holds different representations of the same point in time.
|
|
854
|
+
@var mSampleTime
|
|
855
|
+
The absolute sample frame time.
|
|
856
|
+
@var mHostTime
|
|
857
|
+
The host machine's time base, mach_absolute_time.
|
|
858
|
+
@var mRateScalar
|
|
859
|
+
The ratio of actual host ticks per sample frame to the nominal host ticks
|
|
860
|
+
per sample frame.
|
|
861
|
+
@var mWordClockTime
|
|
862
|
+
The word clock time.
|
|
863
|
+
@var mSMPTETime
|
|
864
|
+
The SMPTE time.
|
|
865
|
+
@var mFlags
|
|
866
|
+
A set of flags indicating which representations of the time are valid.
|
|
867
|
+
@var mReserved
|
|
868
|
+
Pads the structure out to force an even 8 byte alignment.
|
|
869
|
+
*/
|
|
870
|
+
struct AudioTimeStamp
|
|
871
|
+
{
|
|
872
|
+
Float64 mSampleTime;
|
|
873
|
+
UInt64 mHostTime;
|
|
874
|
+
Float64 mRateScalar;
|
|
875
|
+
UInt64 mWordClockTime;
|
|
876
|
+
SMPTETime mSMPTETime;
|
|
877
|
+
AudioTimeStampFlags mFlags;
|
|
878
|
+
UInt32 mReserved;
|
|
879
|
+
};
|
|
880
|
+
typedef struct AudioTimeStamp AudioTimeStamp;
|
|
881
|
+
|
|
882
|
+
/*!
|
|
883
|
+
@function FillOutAudioTimeStampWithSampleTime
|
|
884
|
+
@abstract A C++ inline function for filling out an AudioTimeStamp with a sample time
|
|
885
|
+
@param outATS
|
|
886
|
+
The AudioTimeStamp to fill out.
|
|
887
|
+
@param inSampleTime
|
|
888
|
+
The sample time to put in the AudioTimeStamp.
|
|
889
|
+
*/
|
|
890
|
+
#if defined(__cplusplus)
|
|
891
|
+
static inline void FillOutAudioTimeStampWithSampleTime(AudioTimeStamp& outATS, Float64 inSampleTime) { outATS.mSampleTime = inSampleTime; outATS.mHostTime = 0; outATS.mRateScalar = 0; outATS.mWordClockTime = 0; memset(&outATS.mSMPTETime, 0, sizeof(SMPTETime)); outATS.mFlags = kAudioTimeStampSampleTimeValid; }
|
|
892
|
+
#endif
|
|
893
|
+
|
|
894
|
+
/*!
|
|
895
|
+
@function FillOutAudioTimeStampWithHostTime
|
|
896
|
+
@abstract A C++ inline function for filling out an AudioTimeStamp with a host time
|
|
897
|
+
@param outATS
|
|
898
|
+
The AudioTimeStamp to fill out.
|
|
899
|
+
@param inHostTime
|
|
900
|
+
The host time to put in the AudioTimeStamp.
|
|
901
|
+
*/
|
|
902
|
+
#if defined(__cplusplus)
|
|
903
|
+
static inline void FillOutAudioTimeStampWithHostTime(AudioTimeStamp& outATS, UInt64 inHostTime) { outATS.mSampleTime = 0; outATS.mHostTime = inHostTime; outATS.mRateScalar = 0; outATS.mWordClockTime = 0; memset(&outATS.mSMPTETime, 0, sizeof(SMPTETime)); outATS.mFlags = kAudioTimeStampHostTimeValid; }
|
|
904
|
+
#endif
|
|
905
|
+
|
|
906
|
+
/*!
|
|
907
|
+
@function FillOutAudioTimeStampWithSampleAndHostTime
|
|
908
|
+
@abstract A C++ inline function for filling out an AudioTimeStamp with a sample time and a
|
|
909
|
+
host time
|
|
910
|
+
@param outATS
|
|
911
|
+
The AudioTimeStamp to fill out.
|
|
912
|
+
@param inSampleTime
|
|
913
|
+
The sample time to put in the AudioTimeStamp.
|
|
914
|
+
@param inHostTime
|
|
915
|
+
The host time to put in the AudioTimeStamp.
|
|
916
|
+
*/
|
|
917
|
+
#if defined(__cplusplus)
|
|
918
|
+
static inline void FillOutAudioTimeStampWithSampleAndHostTime(AudioTimeStamp& outATS, Float64 inSampleTime, UInt64 inHostTime) { outATS.mSampleTime = inSampleTime; outATS.mHostTime = inHostTime; outATS.mRateScalar = 0; outATS.mWordClockTime = 0; memset(&outATS.mSMPTETime, 0, sizeof(SMPTETime)); outATS.mFlags = kAudioTimeStampSampleTimeValid | kAudioTimeStampHostTimeValid; }
|
|
919
|
+
#endif
|
|
920
|
+
|
|
921
|
+
//==================================================================================================
|
|
922
|
+
#pragma mark -
|
|
923
|
+
#pragma mark AudioClassDescription
|
|
924
|
+
|
|
925
|
+
/*!
|
|
926
|
+
@struct AudioClassDescription
|
|
927
|
+
@abstract This structure is used to describe codecs installed on the system.
|
|
928
|
+
@var mType
|
|
929
|
+
The four char code codec type.
|
|
930
|
+
@var mSubType
|
|
931
|
+
The four char code codec subtype.
|
|
932
|
+
@var mManufacturer
|
|
933
|
+
The four char code codec manufacturer.
|
|
934
|
+
*/
|
|
935
|
+
struct AudioClassDescription {
|
|
936
|
+
OSType mType;
|
|
937
|
+
OSType mSubType;
|
|
938
|
+
OSType mManufacturer;
|
|
939
|
+
};
|
|
940
|
+
typedef struct AudioClassDescription AudioClassDescription;
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
//==================================================================================================
|
|
944
|
+
#pragma mark -
|
|
945
|
+
#pragma mark Audio Channel Layout
|
|
946
|
+
|
|
947
|
+
/*!
|
|
948
|
+
@typedef AudioChannelLabel
|
|
949
|
+
@abstract A tag identifying how the channel is to be used.
|
|
950
|
+
*/
|
|
951
|
+
typedef UInt32 AudioChannelLabel;
|
|
952
|
+
|
|
953
|
+
/*!
|
|
954
|
+
@typedef AudioChannelLayoutTag
|
|
955
|
+
@abstract A tag identifying a particular pre-defined channel layout.
|
|
956
|
+
*/
|
|
957
|
+
typedef UInt32 AudioChannelLayoutTag;
|
|
958
|
+
|
|
959
|
+
/*!
|
|
960
|
+
@enum AudioChannelLabel Constants
|
|
961
|
+
@abstract These constants are for use in the mChannelLabel field of an
|
|
962
|
+
AudioChannelDescription structure.
|
|
963
|
+
@discussion These channel labels attempt to list all labels in common use. Due to the
|
|
964
|
+
ambiguities in channel labeling by various groups, there may be some overlap or
|
|
965
|
+
duplication in the labels below. Use the label which most clearly describes what
|
|
966
|
+
you mean.
|
|
967
|
+
|
|
968
|
+
WAVE files seem to follow the USB spec for the channel flags. A channel map lets
|
|
969
|
+
you put these channels in any order, however a WAVE file only supports labels
|
|
970
|
+
1-18 and if present, they must be in the order given below. The integer values
|
|
971
|
+
for the labels below match the bit position of the label in the USB bitmap and
|
|
972
|
+
thus also the WAVE file bitmap.
|
|
973
|
+
*/
|
|
974
|
+
CF_ENUM(AudioChannelLabel)
|
|
975
|
+
{
|
|
976
|
+
kAudioChannelLabel_Unknown = 0xFFFFFFFF, ///< unknown or unspecified other use
|
|
977
|
+
kAudioChannelLabel_Unused = 0, ///< channel is present, but has no intended use or destination
|
|
978
|
+
kAudioChannelLabel_UseCoordinates = 100, ///< channel is described by the mCoordinates fields.
|
|
979
|
+
|
|
980
|
+
kAudioChannelLabel_Left = 1,
|
|
981
|
+
kAudioChannelLabel_Right = 2,
|
|
982
|
+
kAudioChannelLabel_Center = 3,
|
|
983
|
+
kAudioChannelLabel_LFEScreen = 4,
|
|
984
|
+
kAudioChannelLabel_LeftSurround = 5,
|
|
985
|
+
kAudioChannelLabel_RightSurround = 6,
|
|
986
|
+
kAudioChannelLabel_LeftCenter = 7,
|
|
987
|
+
kAudioChannelLabel_RightCenter = 8,
|
|
988
|
+
kAudioChannelLabel_CenterSurround = 9, ///< WAVE: "Back Center" or plain "Rear Surround"
|
|
989
|
+
kAudioChannelLabel_LeftSurroundDirect = 10,
|
|
990
|
+
kAudioChannelLabel_RightSurroundDirect = 11,
|
|
991
|
+
kAudioChannelLabel_TopCenterSurround = 12,
|
|
992
|
+
kAudioChannelLabel_VerticalHeightLeft = 13, ///< WAVE: "Top Front Left"
|
|
993
|
+
kAudioChannelLabel_VerticalHeightCenter = 14, ///< WAVE: "Top Front Center"
|
|
994
|
+
kAudioChannelLabel_VerticalHeightRight = 15, ///< WAVE: "Top Front Right"
|
|
995
|
+
|
|
996
|
+
kAudioChannelLabel_TopBackLeft = 16,
|
|
997
|
+
kAudioChannelLabel_TopBackCenter = 17,
|
|
998
|
+
kAudioChannelLabel_TopBackRight = 18,
|
|
999
|
+
|
|
1000
|
+
kAudioChannelLabel_RearSurroundLeft = 33,
|
|
1001
|
+
kAudioChannelLabel_RearSurroundRight = 34,
|
|
1002
|
+
kAudioChannelLabel_LeftWide = 35,
|
|
1003
|
+
kAudioChannelLabel_RightWide = 36,
|
|
1004
|
+
kAudioChannelLabel_LFE2 = 37,
|
|
1005
|
+
kAudioChannelLabel_LeftTotal = 38, ///< matrix encoded 4 channels
|
|
1006
|
+
kAudioChannelLabel_RightTotal = 39, ///< matrix encoded 4 channels
|
|
1007
|
+
kAudioChannelLabel_HearingImpaired = 40,
|
|
1008
|
+
kAudioChannelLabel_Narration = 41,
|
|
1009
|
+
kAudioChannelLabel_Mono = 42,
|
|
1010
|
+
kAudioChannelLabel_DialogCentricMix = 43,
|
|
1011
|
+
|
|
1012
|
+
kAudioChannelLabel_CenterSurroundDirect = 44, ///< back center, non diffuse
|
|
1013
|
+
|
|
1014
|
+
kAudioChannelLabel_Haptic = 45,
|
|
1015
|
+
|
|
1016
|
+
kAudioChannelLabel_LeftTopFront = kAudioChannelLabel_VerticalHeightLeft,
|
|
1017
|
+
kAudioChannelLabel_CenterTopFront = kAudioChannelLabel_VerticalHeightCenter,
|
|
1018
|
+
kAudioChannelLabel_RightTopFront = kAudioChannelLabel_VerticalHeightRight,
|
|
1019
|
+
kAudioChannelLabel_LeftTopMiddle = 49,
|
|
1020
|
+
kAudioChannelLabel_CenterTopMiddle = kAudioChannelLabel_TopCenterSurround,
|
|
1021
|
+
kAudioChannelLabel_RightTopMiddle = 51,
|
|
1022
|
+
kAudioChannelLabel_LeftTopRear = 52,
|
|
1023
|
+
kAudioChannelLabel_CenterTopRear = 53,
|
|
1024
|
+
kAudioChannelLabel_RightTopRear = 54,
|
|
1025
|
+
|
|
1026
|
+
kAudioChannelLabel_LeftSideSurround = 55,
|
|
1027
|
+
kAudioChannelLabel_RightSideSurround = 56,
|
|
1028
|
+
kAudioChannelLabel_LeftBottom = 57,
|
|
1029
|
+
kAudioChannelLabel_RightBottom = 58,
|
|
1030
|
+
kAudioChannelLabel_CenterBottom = 59,
|
|
1031
|
+
kAudioChannelLabel_LeftTopSurround = 60,
|
|
1032
|
+
kAudioChannelLabel_RightTopSurround = 61,
|
|
1033
|
+
kAudioChannelLabel_LFE3 = 62,
|
|
1034
|
+
kAudioChannelLabel_LeftBackSurround = 63,
|
|
1035
|
+
kAudioChannelLabel_RightBackSurround = 64,
|
|
1036
|
+
kAudioChannelLabel_LeftEdgeOfScreen = 65,
|
|
1037
|
+
kAudioChannelLabel_RightEdgeOfScreen = 66,
|
|
1038
|
+
|
|
1039
|
+
// first order ambisonic channels
|
|
1040
|
+
kAudioChannelLabel_Ambisonic_W = 200,
|
|
1041
|
+
kAudioChannelLabel_Ambisonic_X = 201,
|
|
1042
|
+
kAudioChannelLabel_Ambisonic_Y = 202,
|
|
1043
|
+
kAudioChannelLabel_Ambisonic_Z = 203,
|
|
1044
|
+
|
|
1045
|
+
// Mid/Side Recording
|
|
1046
|
+
kAudioChannelLabel_MS_Mid = 204,
|
|
1047
|
+
kAudioChannelLabel_MS_Side = 205,
|
|
1048
|
+
|
|
1049
|
+
// X-Y Recording
|
|
1050
|
+
kAudioChannelLabel_XY_X = 206,
|
|
1051
|
+
kAudioChannelLabel_XY_Y = 207,
|
|
1052
|
+
|
|
1053
|
+
// Binaural Recording
|
|
1054
|
+
kAudioChannelLabel_BinauralLeft = 208,
|
|
1055
|
+
kAudioChannelLabel_BinauralRight = 209,
|
|
1056
|
+
|
|
1057
|
+
// other
|
|
1058
|
+
kAudioChannelLabel_HeadphonesLeft = 301,
|
|
1059
|
+
kAudioChannelLabel_HeadphonesRight = 302,
|
|
1060
|
+
kAudioChannelLabel_ClickTrack = 304,
|
|
1061
|
+
kAudioChannelLabel_ForeignLanguage = 305,
|
|
1062
|
+
|
|
1063
|
+
// generic discrete channel
|
|
1064
|
+
kAudioChannelLabel_Discrete = 400,
|
|
1065
|
+
|
|
1066
|
+
// numbered discrete channel
|
|
1067
|
+
kAudioChannelLabel_Discrete_0 = (1U<<16) | 0,
|
|
1068
|
+
kAudioChannelLabel_Discrete_1 = (1U<<16) | 1,
|
|
1069
|
+
kAudioChannelLabel_Discrete_2 = (1U<<16) | 2,
|
|
1070
|
+
kAudioChannelLabel_Discrete_3 = (1U<<16) | 3,
|
|
1071
|
+
kAudioChannelLabel_Discrete_4 = (1U<<16) | 4,
|
|
1072
|
+
kAudioChannelLabel_Discrete_5 = (1U<<16) | 5,
|
|
1073
|
+
kAudioChannelLabel_Discrete_6 = (1U<<16) | 6,
|
|
1074
|
+
kAudioChannelLabel_Discrete_7 = (1U<<16) | 7,
|
|
1075
|
+
kAudioChannelLabel_Discrete_8 = (1U<<16) | 8,
|
|
1076
|
+
kAudioChannelLabel_Discrete_9 = (1U<<16) | 9,
|
|
1077
|
+
kAudioChannelLabel_Discrete_10 = (1U<<16) | 10,
|
|
1078
|
+
kAudioChannelLabel_Discrete_11 = (1U<<16) | 11,
|
|
1079
|
+
kAudioChannelLabel_Discrete_12 = (1U<<16) | 12,
|
|
1080
|
+
kAudioChannelLabel_Discrete_13 = (1U<<16) | 13,
|
|
1081
|
+
kAudioChannelLabel_Discrete_14 = (1U<<16) | 14,
|
|
1082
|
+
kAudioChannelLabel_Discrete_15 = (1U<<16) | 15,
|
|
1083
|
+
kAudioChannelLabel_Discrete_65535 = (1U<<16) | 65535,
|
|
1084
|
+
|
|
1085
|
+
// generic HOA ACN channel
|
|
1086
|
+
kAudioChannelLabel_HOA_ACN = 500,
|
|
1087
|
+
|
|
1088
|
+
// numbered HOA ACN channels, SN3D normalization
|
|
1089
|
+
kAudioChannelLabel_HOA_ACN_0 = (2U << 16) | 0,
|
|
1090
|
+
kAudioChannelLabel_HOA_ACN_1 = (2U << 16) | 1,
|
|
1091
|
+
kAudioChannelLabel_HOA_ACN_2 = (2U << 16) | 2,
|
|
1092
|
+
kAudioChannelLabel_HOA_ACN_3 = (2U << 16) | 3,
|
|
1093
|
+
kAudioChannelLabel_HOA_ACN_4 = (2U << 16) | 4,
|
|
1094
|
+
kAudioChannelLabel_HOA_ACN_5 = (2U << 16) | 5,
|
|
1095
|
+
kAudioChannelLabel_HOA_ACN_6 = (2U << 16) | 6,
|
|
1096
|
+
kAudioChannelLabel_HOA_ACN_7 = (2U << 16) | 7,
|
|
1097
|
+
kAudioChannelLabel_HOA_ACN_8 = (2U << 16) | 8,
|
|
1098
|
+
kAudioChannelLabel_HOA_ACN_9 = (2U << 16) | 9,
|
|
1099
|
+
kAudioChannelLabel_HOA_ACN_10 = (2U << 16) | 10,
|
|
1100
|
+
kAudioChannelLabel_HOA_ACN_11 = (2U << 16) | 11,
|
|
1101
|
+
kAudioChannelLabel_HOA_ACN_12 = (2U << 16) | 12,
|
|
1102
|
+
kAudioChannelLabel_HOA_ACN_13 = (2U << 16) | 13,
|
|
1103
|
+
kAudioChannelLabel_HOA_ACN_14 = (2U << 16) | 14,
|
|
1104
|
+
kAudioChannelLabel_HOA_ACN_15 = (2U << 16) | 15,
|
|
1105
|
+
kAudioChannelLabel_HOA_ACN_65024 = (2U << 16) | 65024, // 254th order uses 65025 channels
|
|
1106
|
+
|
|
1107
|
+
// Specific SN3D alias
|
|
1108
|
+
kAudioChannelLabel_HOA_SN3D = kAudioChannelLabel_HOA_ACN_0, // Needs to be ORed with the channel index, not HOA order
|
|
1109
|
+
|
|
1110
|
+
// HOA N3D
|
|
1111
|
+
kAudioChannelLabel_HOA_N3D = (3U << 16), // Needs to be ORed with the channel index, not HOA order
|
|
1112
|
+
|
|
1113
|
+
// channel represents an object, ORed with channel index
|
|
1114
|
+
kAudioChannelLabel_Object = (4U << 16),
|
|
1115
|
+
|
|
1116
|
+
kAudioChannelLabel_BeginReserved = 0xF0000000, // Channel label values in this range are reserved for internal use
|
|
1117
|
+
kAudioChannelLabel_EndReserved = 0xFFFFFFFE
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
/*!
|
|
1121
|
+
@enum AudioChannelBitmap
|
|
1122
|
+
@abstract These constants are for use in the mChannelBitmap field of an
|
|
1123
|
+
AudioChannelLayout structure.
|
|
1124
|
+
*/
|
|
1125
|
+
typedef CF_OPTIONS(UInt32, AudioChannelBitmap)
|
|
1126
|
+
{
|
|
1127
|
+
kAudioChannelBit_Left = (1U<<0),
|
|
1128
|
+
kAudioChannelBit_Right = (1U<<1),
|
|
1129
|
+
kAudioChannelBit_Center = (1U<<2),
|
|
1130
|
+
kAudioChannelBit_LFEScreen = (1U<<3),
|
|
1131
|
+
kAudioChannelBit_LeftSurround = (1U<<4),
|
|
1132
|
+
kAudioChannelBit_RightSurround = (1U<<5),
|
|
1133
|
+
kAudioChannelBit_LeftCenter = (1U<<6),
|
|
1134
|
+
kAudioChannelBit_RightCenter = (1U<<7),
|
|
1135
|
+
kAudioChannelBit_CenterSurround = (1U<<8), // WAVE: "Back Center"
|
|
1136
|
+
kAudioChannelBit_LeftSurroundDirect = (1U<<9),
|
|
1137
|
+
kAudioChannelBit_RightSurroundDirect = (1U<<10),
|
|
1138
|
+
kAudioChannelBit_TopCenterSurround = (1U<<11),
|
|
1139
|
+
kAudioChannelBit_VerticalHeightLeft = (1U<<12), // WAVE: "Top Front Left"
|
|
1140
|
+
kAudioChannelBit_VerticalHeightCenter = (1U<<13), // WAVE: "Top Front Center"
|
|
1141
|
+
kAudioChannelBit_VerticalHeightRight = (1U<<14), // WAVE: "Top Front Right"
|
|
1142
|
+
kAudioChannelBit_TopBackLeft = (1U<<15),
|
|
1143
|
+
kAudioChannelBit_TopBackCenter = (1U<<16),
|
|
1144
|
+
kAudioChannelBit_TopBackRight = (1U<<17),
|
|
1145
|
+
kAudioChannelBit_LeftTopFront = kAudioChannelBit_VerticalHeightLeft,
|
|
1146
|
+
kAudioChannelBit_CenterTopFront = kAudioChannelBit_VerticalHeightCenter,
|
|
1147
|
+
kAudioChannelBit_RightTopFront = kAudioChannelBit_VerticalHeightRight,
|
|
1148
|
+
kAudioChannelBit_LeftTopMiddle = (1U<<21),
|
|
1149
|
+
kAudioChannelBit_CenterTopMiddle = kAudioChannelBit_TopCenterSurround,
|
|
1150
|
+
kAudioChannelBit_RightTopMiddle = (1U<<23),
|
|
1151
|
+
kAudioChannelBit_LeftTopRear = (1U<<24),
|
|
1152
|
+
kAudioChannelBit_CenterTopRear = (1U<<25),
|
|
1153
|
+
kAudioChannelBit_RightTopRear = (1U<<26),
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
/*!
|
|
1157
|
+
@enum AudioChannelFlags
|
|
1158
|
+
@abstract These constants are used in the mChannelFlags field of an
|
|
1159
|
+
AudioChannelDescription structure.
|
|
1160
|
+
@constant kAudioChannelFlags_RectangularCoordinates
|
|
1161
|
+
The channel is specified by the cartesian coordinates of the speaker
|
|
1162
|
+
position. This flag is mutally exclusive with
|
|
1163
|
+
kAudioChannelFlags_SphericalCoordinates.
|
|
1164
|
+
@constant kAudioChannelFlags_SphericalCoordinates
|
|
1165
|
+
The channel is specified by the spherical coordinates of the speaker
|
|
1166
|
+
position. This flag is mutally exclusive with
|
|
1167
|
+
kAudioChannelFlags_RectangularCoordinates.
|
|
1168
|
+
@constant kAudioChannelFlags_Meters
|
|
1169
|
+
Set to indicate the units are in meters, clear to indicate the units are
|
|
1170
|
+
relative to the unit cube or unit sphere.
|
|
1171
|
+
*/
|
|
1172
|
+
typedef CF_OPTIONS(UInt32, AudioChannelFlags)
|
|
1173
|
+
{
|
|
1174
|
+
kAudioChannelFlags_AllOff = 0,
|
|
1175
|
+
kAudioChannelFlags_RectangularCoordinates = (1U<<0),
|
|
1176
|
+
kAudioChannelFlags_SphericalCoordinates = (1U<<1),
|
|
1177
|
+
kAudioChannelFlags_Meters = (1U<<2)
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
// these are indices for accessing the mCoordinates array in struct AudioChannelDescription
|
|
1181
|
+
/*!
|
|
1182
|
+
@enum AudioChannelCoordinateIndex
|
|
1183
|
+
@abstract Constants for indexing the mCoordinates array in an AudioChannelDescription
|
|
1184
|
+
structure.
|
|
1185
|
+
@constant kAudioChannelCoordinates_LeftRight
|
|
1186
|
+
For rectangular coordinates, negative is left and positive is right.
|
|
1187
|
+
@constant kAudioChannelCoordinates_BackFront
|
|
1188
|
+
For rectangular coordinates, negative is back and positive is front.
|
|
1189
|
+
@constant kAudioChannelCoordinates_DownUp
|
|
1190
|
+
For rectangular coordinates, negative is below ground level, 0 is ground
|
|
1191
|
+
level, and positive is above ground level.
|
|
1192
|
+
@constant kAudioChannelCoordinates_Azimuth
|
|
1193
|
+
For spherical coordinates, 0 is front center, positive is right, negative is
|
|
1194
|
+
left. This is measured in degrees.
|
|
1195
|
+
@constant kAudioChannelCoordinates_Elevation
|
|
1196
|
+
For spherical coordinates, +90 is zenith, 0 is horizontal, -90 is nadir.
|
|
1197
|
+
This is measured in degrees.
|
|
1198
|
+
@constant kAudioChannelCoordinates_Distance
|
|
1199
|
+
For spherical coordinates, the units are described by flags.
|
|
1200
|
+
*/
|
|
1201
|
+
typedef CF_ENUM(UInt32, AudioChannelCoordinateIndex)
|
|
1202
|
+
{
|
|
1203
|
+
kAudioChannelCoordinates_LeftRight = 0,
|
|
1204
|
+
kAudioChannelCoordinates_BackFront = 1,
|
|
1205
|
+
kAudioChannelCoordinates_DownUp = 2,
|
|
1206
|
+
kAudioChannelCoordinates_Azimuth = 0,
|
|
1207
|
+
kAudioChannelCoordinates_Elevation = 1,
|
|
1208
|
+
kAudioChannelCoordinates_Distance = 2
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
/*!
|
|
1212
|
+
@enum AudioChannelLayoutTag Constants
|
|
1213
|
+
@abstract These constants are used in the mChannelLayoutTag field of an AudioChannelLayout
|
|
1214
|
+
structure.
|
|
1215
|
+
*/
|
|
1216
|
+
CF_ENUM(AudioChannelLayoutTag)
|
|
1217
|
+
{
|
|
1218
|
+
// Some channel abbreviations used below:
|
|
1219
|
+
// L - left
|
|
1220
|
+
// R - right
|
|
1221
|
+
// C - center
|
|
1222
|
+
// Ls - left surround
|
|
1223
|
+
// Rs - right surround
|
|
1224
|
+
// Cs - center surround
|
|
1225
|
+
// Rls - rear left surround
|
|
1226
|
+
// Rrs - rear right surround
|
|
1227
|
+
// Lw - left wide
|
|
1228
|
+
// Rw - right wide
|
|
1229
|
+
// Lsd - left surround direct
|
|
1230
|
+
// Rsd - right surround direct
|
|
1231
|
+
// Lc - left center
|
|
1232
|
+
// Rc - right center
|
|
1233
|
+
// Ts - top surround
|
|
1234
|
+
// Vhl - vertical height left
|
|
1235
|
+
// Vhc - vertical height center
|
|
1236
|
+
// Vhr - vertical height right
|
|
1237
|
+
// Ltm - left top middle
|
|
1238
|
+
// Rtm - right top middle
|
|
1239
|
+
// Ltr - left top rear
|
|
1240
|
+
// Ctr - center top rear
|
|
1241
|
+
// Rtr - right top rear
|
|
1242
|
+
// Lss - left side surround
|
|
1243
|
+
// Rss - right side surround
|
|
1244
|
+
// Lb - left bottom
|
|
1245
|
+
// Rb - Right bottom
|
|
1246
|
+
// Cb - Center bottom
|
|
1247
|
+
// Lts - Left top surround
|
|
1248
|
+
// Rts - Right top surround
|
|
1249
|
+
// Leos - Left edge of screen
|
|
1250
|
+
// Reos - Right edge of screen
|
|
1251
|
+
// Lbs - Left back surround
|
|
1252
|
+
// Rbs - Right back surround
|
|
1253
|
+
// Lt - left matrix total. for matrix encoded stereo.
|
|
1254
|
+
// Rt - right matrix total. for matrix encoded stereo.
|
|
1255
|
+
|
|
1256
|
+
// General layouts
|
|
1257
|
+
kAudioChannelLayoutTag_UseChannelDescriptions = (0U<<16) | 0, ///< use the array of AudioChannelDescriptions to define the mapping.
|
|
1258
|
+
kAudioChannelLayoutTag_UseChannelBitmap = (1U<<16) | 0, ///< use the bitmap to define the mapping.
|
|
1259
|
+
|
|
1260
|
+
kAudioChannelLayoutTag_Mono = (100U<<16) | 1, ///< a standard mono stream
|
|
1261
|
+
kAudioChannelLayoutTag_Stereo = (101U<<16) | 2, ///< a standard stereo stream (L R) - implied playback
|
|
1262
|
+
kAudioChannelLayoutTag_StereoHeadphones = (102U<<16) | 2, ///< a standard stereo stream (L R) - implied headphone playback
|
|
1263
|
+
kAudioChannelLayoutTag_MatrixStereo = (103U<<16) | 2, ///< a matrix encoded stereo stream (Lt, Rt)
|
|
1264
|
+
kAudioChannelLayoutTag_MidSide = (104U<<16) | 2, ///< mid/side recording
|
|
1265
|
+
kAudioChannelLayoutTag_XY = (105U<<16) | 2, ///< coincident mic pair (often 2 figure 8's)
|
|
1266
|
+
kAudioChannelLayoutTag_Binaural = (106U<<16) | 2, ///< binaural stereo (left, right)
|
|
1267
|
+
kAudioChannelLayoutTag_Ambisonic_B_Format = (107U<<16) | 4, ///< W, X, Y, Z
|
|
1268
|
+
|
|
1269
|
+
kAudioChannelLayoutTag_Quadraphonic = (108U<<16) | 4, ///< L R Ls Rs -- 90 degree speaker separation
|
|
1270
|
+
kAudioChannelLayoutTag_Pentagonal = (109U<<16) | 5, ///< L R Ls Rs C -- 72 degree speaker separation
|
|
1271
|
+
kAudioChannelLayoutTag_Hexagonal = (110U<<16) | 6, ///< L R Ls Rs C Cs -- 60 degree speaker separation
|
|
1272
|
+
kAudioChannelLayoutTag_Octagonal = (111U<<16) | 8, ///< L R Ls Rs C Cs Lw Rw -- 45 degree speaker separation
|
|
1273
|
+
kAudioChannelLayoutTag_Cube = (112U<<16) | 8, ///< left, right, rear left, rear right
|
|
1274
|
+
///< top left, top right, top rear left, top rear right
|
|
1275
|
+
|
|
1276
|
+
// MPEG defined layouts
|
|
1277
|
+
kAudioChannelLayoutTag_MPEG_1_0 = kAudioChannelLayoutTag_Mono, ///< C
|
|
1278
|
+
kAudioChannelLayoutTag_MPEG_2_0 = kAudioChannelLayoutTag_Stereo, ///< L R
|
|
1279
|
+
kAudioChannelLayoutTag_MPEG_3_0_A = (113U<<16) | 3, ///< L R C
|
|
1280
|
+
kAudioChannelLayoutTag_MPEG_3_0_B = (114U<<16) | 3, ///< C L R
|
|
1281
|
+
kAudioChannelLayoutTag_MPEG_4_0_A = (115U<<16) | 4, ///< L R C Cs
|
|
1282
|
+
kAudioChannelLayoutTag_MPEG_4_0_B = (116U<<16) | 4, ///< C L R Cs
|
|
1283
|
+
kAudioChannelLayoutTag_MPEG_5_0_A = (117U<<16) | 5, ///< L R C Ls Rs
|
|
1284
|
+
kAudioChannelLayoutTag_MPEG_5_0_B = (118U<<16) | 5, ///< L R Ls Rs C
|
|
1285
|
+
kAudioChannelLayoutTag_MPEG_5_0_C = (119U<<16) | 5, ///< L C R Ls Rs
|
|
1286
|
+
kAudioChannelLayoutTag_MPEG_5_0_D = (120U<<16) | 5, ///< C L R Ls Rs
|
|
1287
|
+
kAudioChannelLayoutTag_MPEG_5_1_A = (121U<<16) | 6, ///< L R C LFE Ls Rs
|
|
1288
|
+
kAudioChannelLayoutTag_MPEG_5_1_B = (122U<<16) | 6, ///< L R Ls Rs C LFE
|
|
1289
|
+
kAudioChannelLayoutTag_MPEG_5_1_C = (123U<<16) | 6, ///< L C R Ls Rs LFE
|
|
1290
|
+
kAudioChannelLayoutTag_MPEG_5_1_D = (124U<<16) | 6, ///< C L R Ls Rs LFE
|
|
1291
|
+
kAudioChannelLayoutTag_MPEG_6_1_A = (125U<<16) | 7, ///< L R C LFE Ls Rs Cs
|
|
1292
|
+
kAudioChannelLayoutTag_MPEG_7_1_A = (126U<<16) | 8, ///< L R C LFE Ls Rs Lc Rc
|
|
1293
|
+
kAudioChannelLayoutTag_MPEG_7_1_B = (127U<<16) | 8, ///< C Lc Rc L R Ls Rs LFE (doc: IS-13818-7 MPEG2-AAC Table 3.1)
|
|
1294
|
+
kAudioChannelLayoutTag_MPEG_7_1_C = (128U<<16) | 8, ///< L R C LFE Ls Rs Rls Rrs
|
|
1295
|
+
kAudioChannelLayoutTag_Emagic_Default_7_1 = (129U<<16) | 8, ///< L R Ls Rs C LFE Lc Rc
|
|
1296
|
+
kAudioChannelLayoutTag_SMPTE_DTV = (130U<<16) | 8, ///< L R C LFE Ls Rs Lt Rt
|
|
1297
|
+
///< (kAudioChannelLayoutTag_ITU_5_1 plus a matrix encoded stereo mix)
|
|
1298
|
+
|
|
1299
|
+
// ITU defined layouts
|
|
1300
|
+
kAudioChannelLayoutTag_ITU_1_0 = kAudioChannelLayoutTag_Mono, ///< C
|
|
1301
|
+
kAudioChannelLayoutTag_ITU_2_0 = kAudioChannelLayoutTag_Stereo, ///< L R
|
|
1302
|
+
|
|
1303
|
+
kAudioChannelLayoutTag_ITU_2_1 = (131U<<16) | 3, ///< L R Cs
|
|
1304
|
+
kAudioChannelLayoutTag_ITU_2_2 = (132U<<16) | 4, ///< L R Ls Rs
|
|
1305
|
+
kAudioChannelLayoutTag_ITU_3_0 = kAudioChannelLayoutTag_MPEG_3_0_A, ///< L R C
|
|
1306
|
+
kAudioChannelLayoutTag_ITU_3_1 = kAudioChannelLayoutTag_MPEG_4_0_A, ///< L R C Cs
|
|
1307
|
+
|
|
1308
|
+
kAudioChannelLayoutTag_ITU_3_2 = kAudioChannelLayoutTag_MPEG_5_0_A, ///< L R C Ls Rs
|
|
1309
|
+
kAudioChannelLayoutTag_ITU_3_2_1 = kAudioChannelLayoutTag_MPEG_5_1_A, ///< L R C LFE Ls Rs
|
|
1310
|
+
kAudioChannelLayoutTag_ITU_3_4_1 = kAudioChannelLayoutTag_MPEG_7_1_C, ///< L R C LFE Ls Rs Rls Rrs
|
|
1311
|
+
|
|
1312
|
+
// DVD defined layouts
|
|
1313
|
+
kAudioChannelLayoutTag_DVD_0 = kAudioChannelLayoutTag_Mono, ///< C (mono)
|
|
1314
|
+
kAudioChannelLayoutTag_DVD_1 = kAudioChannelLayoutTag_Stereo, ///< L R
|
|
1315
|
+
kAudioChannelLayoutTag_DVD_2 = kAudioChannelLayoutTag_ITU_2_1, ///< L R Cs
|
|
1316
|
+
kAudioChannelLayoutTag_DVD_3 = kAudioChannelLayoutTag_ITU_2_2, ///< L R Ls Rs
|
|
1317
|
+
kAudioChannelLayoutTag_DVD_4 = (133U<<16) | 3, ///< L R LFE
|
|
1318
|
+
kAudioChannelLayoutTag_DVD_5 = (134U<<16) | 4, ///< L R LFE Cs
|
|
1319
|
+
kAudioChannelLayoutTag_DVD_6 = (135U<<16) | 5, ///< L R LFE Ls Rs
|
|
1320
|
+
kAudioChannelLayoutTag_DVD_7 = kAudioChannelLayoutTag_MPEG_3_0_A, ///< L R C
|
|
1321
|
+
kAudioChannelLayoutTag_DVD_8 = kAudioChannelLayoutTag_MPEG_4_0_A, ///< L R C Cs
|
|
1322
|
+
kAudioChannelLayoutTag_DVD_9 = kAudioChannelLayoutTag_MPEG_5_0_A, ///< L R C Ls Rs
|
|
1323
|
+
kAudioChannelLayoutTag_DVD_10 = (136U<<16) | 4, ///< L R C LFE
|
|
1324
|
+
kAudioChannelLayoutTag_DVD_11 = (137U<<16) | 5, ///< L R C LFE Cs
|
|
1325
|
+
kAudioChannelLayoutTag_DVD_12 = kAudioChannelLayoutTag_MPEG_5_1_A, ///< L R C LFE Ls Rs
|
|
1326
|
+
// 13 through 17 are duplicates of 8 through 12.
|
|
1327
|
+
kAudioChannelLayoutTag_DVD_13 = kAudioChannelLayoutTag_DVD_8, ///< L R C Cs
|
|
1328
|
+
kAudioChannelLayoutTag_DVD_14 = kAudioChannelLayoutTag_DVD_9, ///< L R C Ls Rs
|
|
1329
|
+
kAudioChannelLayoutTag_DVD_15 = kAudioChannelLayoutTag_DVD_10, ///< L R C LFE
|
|
1330
|
+
kAudioChannelLayoutTag_DVD_16 = kAudioChannelLayoutTag_DVD_11, ///< L R C LFE Cs
|
|
1331
|
+
kAudioChannelLayoutTag_DVD_17 = kAudioChannelLayoutTag_DVD_12, ///< L R C LFE Ls Rs
|
|
1332
|
+
kAudioChannelLayoutTag_DVD_18 = (138U<<16) | 5, ///< L R Ls Rs LFE
|
|
1333
|
+
kAudioChannelLayoutTag_DVD_19 = kAudioChannelLayoutTag_MPEG_5_0_B, ///< L R Ls Rs C
|
|
1334
|
+
kAudioChannelLayoutTag_DVD_20 = kAudioChannelLayoutTag_MPEG_5_1_B, ///< L R Ls Rs C LFE
|
|
1335
|
+
|
|
1336
|
+
// These layouts are recommended for AudioUnit usage
|
|
1337
|
+
// These are the symmetrical layouts
|
|
1338
|
+
kAudioChannelLayoutTag_AudioUnit_4 = kAudioChannelLayoutTag_Quadraphonic,
|
|
1339
|
+
kAudioChannelLayoutTag_AudioUnit_5 = kAudioChannelLayoutTag_Pentagonal,
|
|
1340
|
+
kAudioChannelLayoutTag_AudioUnit_6 = kAudioChannelLayoutTag_Hexagonal,
|
|
1341
|
+
kAudioChannelLayoutTag_AudioUnit_8 = kAudioChannelLayoutTag_Octagonal,
|
|
1342
|
+
// These are the surround-based layouts
|
|
1343
|
+
kAudioChannelLayoutTag_AudioUnit_5_0 = kAudioChannelLayoutTag_MPEG_5_0_B, ///< L R Ls Rs C
|
|
1344
|
+
kAudioChannelLayoutTag_AudioUnit_6_0 = (139U<<16) | 6, ///< L R Ls Rs C Cs
|
|
1345
|
+
kAudioChannelLayoutTag_AudioUnit_7_0 = (140U<<16) | 7, ///< L R Ls Rs C Rls Rrs
|
|
1346
|
+
kAudioChannelLayoutTag_AudioUnit_7_0_Front = (148U<<16) | 7, ///< L R Ls Rs C Lc Rc
|
|
1347
|
+
kAudioChannelLayoutTag_AudioUnit_5_1 = kAudioChannelLayoutTag_MPEG_5_1_A, ///< L R C LFE Ls Rs
|
|
1348
|
+
kAudioChannelLayoutTag_AudioUnit_6_1 = kAudioChannelLayoutTag_MPEG_6_1_A, ///< L R C LFE Ls Rs Cs
|
|
1349
|
+
kAudioChannelLayoutTag_AudioUnit_7_1 = kAudioChannelLayoutTag_MPEG_7_1_C, ///< L R C LFE Ls Rs Rls Rrs
|
|
1350
|
+
kAudioChannelLayoutTag_AudioUnit_7_1_Front = kAudioChannelLayoutTag_MPEG_7_1_A, ///< L R C LFE Ls Rs Lc Rc
|
|
1351
|
+
|
|
1352
|
+
kAudioChannelLayoutTag_AAC_3_0 = kAudioChannelLayoutTag_MPEG_3_0_B, ///< C L R
|
|
1353
|
+
kAudioChannelLayoutTag_AAC_Quadraphonic = kAudioChannelLayoutTag_Quadraphonic, ///< L R Ls Rs
|
|
1354
|
+
kAudioChannelLayoutTag_AAC_4_0 = kAudioChannelLayoutTag_MPEG_4_0_B, ///< C L R Cs
|
|
1355
|
+
kAudioChannelLayoutTag_AAC_5_0 = kAudioChannelLayoutTag_MPEG_5_0_D, ///< C L R Ls Rs
|
|
1356
|
+
kAudioChannelLayoutTag_AAC_5_1 = kAudioChannelLayoutTag_MPEG_5_1_D, ///< C L R Ls Rs Lfe
|
|
1357
|
+
kAudioChannelLayoutTag_AAC_6_0 = (141U<<16) | 6, ///< C L R Ls Rs Cs
|
|
1358
|
+
kAudioChannelLayoutTag_AAC_6_1 = (142U<<16) | 7, ///< C L R Ls Rs Cs Lfe
|
|
1359
|
+
kAudioChannelLayoutTag_AAC_7_0 = (143U<<16) | 7, ///< C L R Ls Rs Rls Rrs
|
|
1360
|
+
kAudioChannelLayoutTag_AAC_7_1 = kAudioChannelLayoutTag_MPEG_7_1_B, ///< C Lc Rc L R Ls Rs Lfe
|
|
1361
|
+
kAudioChannelLayoutTag_AAC_7_1_B = (183U<<16) | 8, ///< C L R Ls Rs Rls Rrs LFE
|
|
1362
|
+
kAudioChannelLayoutTag_AAC_7_1_C = (184U<<16) | 8, ///< C L R Ls Rs LFE Vhl Vhr
|
|
1363
|
+
kAudioChannelLayoutTag_AAC_Octagonal = (144U<<16) | 8, ///< C L R Ls Rs Rls Rrs Cs
|
|
1364
|
+
|
|
1365
|
+
kAudioChannelLayoutTag_TMH_10_2_std = (145U<<16) | 16, ///< L R C Vhc Lsd Rsd Ls Rs Vhl Vhr Lw Rw Csd Cs LFE1 LFE2
|
|
1366
|
+
kAudioChannelLayoutTag_TMH_10_2_full = (146U<<16) | 21, ///< TMH_10_2_std plus: Lc Rc HI VI Haptic
|
|
1367
|
+
|
|
1368
|
+
kAudioChannelLayoutTag_AC3_1_0_1 = (149U<<16) | 2, ///< C LFE
|
|
1369
|
+
kAudioChannelLayoutTag_AC3_3_0 = (150U<<16) | 3, ///< L C R
|
|
1370
|
+
kAudioChannelLayoutTag_AC3_3_1 = (151U<<16) | 4, ///< L C R Cs
|
|
1371
|
+
kAudioChannelLayoutTag_AC3_3_0_1 = (152U<<16) | 4, ///< L C R LFE
|
|
1372
|
+
kAudioChannelLayoutTag_AC3_2_1_1 = (153U<<16) | 4, ///< L R Cs LFE
|
|
1373
|
+
kAudioChannelLayoutTag_AC3_3_1_1 = (154U<<16) | 5, ///< L C R Cs LFE
|
|
1374
|
+
|
|
1375
|
+
kAudioChannelLayoutTag_EAC_6_0_A = (155U<<16) | 6, ///< L C R Ls Rs Cs
|
|
1376
|
+
kAudioChannelLayoutTag_EAC_7_0_A = (156U<<16) | 7, ///< L C R Ls Rs Rls Rrs
|
|
1377
|
+
|
|
1378
|
+
kAudioChannelLayoutTag_EAC3_6_1_A = (157U<<16) | 7, ///< L C R Ls Rs LFE Cs
|
|
1379
|
+
kAudioChannelLayoutTag_EAC3_6_1_B = (158U<<16) | 7, ///< L C R Ls Rs LFE Ts
|
|
1380
|
+
kAudioChannelLayoutTag_EAC3_6_1_C = (159U<<16) | 7, ///< L C R Ls Rs LFE Vhc
|
|
1381
|
+
kAudioChannelLayoutTag_EAC3_7_1_A = (160U<<16) | 8, ///< L C R Ls Rs LFE Rls Rrs
|
|
1382
|
+
kAudioChannelLayoutTag_EAC3_7_1_B = (161U<<16) | 8, ///< L C R Ls Rs LFE Lc Rc
|
|
1383
|
+
kAudioChannelLayoutTag_EAC3_7_1_C = (162U<<16) | 8, ///< L C R Ls Rs LFE Lsd Rsd
|
|
1384
|
+
kAudioChannelLayoutTag_EAC3_7_1_D = (163U<<16) | 8, ///< L C R Ls Rs LFE Lw Rw
|
|
1385
|
+
kAudioChannelLayoutTag_EAC3_7_1_E = (164U<<16) | 8, ///< L C R Ls Rs LFE Vhl Vhr
|
|
1386
|
+
|
|
1387
|
+
kAudioChannelLayoutTag_EAC3_7_1_F = (165U<<16) | 8, ///< L C R Ls Rs LFE Cs Ts
|
|
1388
|
+
kAudioChannelLayoutTag_EAC3_7_1_G = (166U<<16) | 8, ///< L C R Ls Rs LFE Cs Vhc
|
|
1389
|
+
kAudioChannelLayoutTag_EAC3_7_1_H = (167U<<16) | 8, ///< L C R Ls Rs LFE Ts Vhc
|
|
1390
|
+
|
|
1391
|
+
kAudioChannelLayoutTag_DTS_3_1 = (168U<<16) | 4, ///< C L R LFE
|
|
1392
|
+
kAudioChannelLayoutTag_DTS_4_1 = (169U<<16) | 5, ///< C L R Cs LFE
|
|
1393
|
+
kAudioChannelLayoutTag_DTS_6_0_A = (170U<<16) | 6, ///< Lc Rc L R Ls Rs
|
|
1394
|
+
kAudioChannelLayoutTag_DTS_6_0_B = (171U<<16) | 6, ///< C L R Rls Rrs Ts
|
|
1395
|
+
kAudioChannelLayoutTag_DTS_6_0_C = (172U<<16) | 6, ///< C Cs L R Rls Rrs
|
|
1396
|
+
kAudioChannelLayoutTag_DTS_6_1_A = (173U<<16) | 7, ///< Lc Rc L R Ls Rs LFE
|
|
1397
|
+
kAudioChannelLayoutTag_DTS_6_1_B = (174U<<16) | 7, ///< C L R Rls Rrs Ts LFE
|
|
1398
|
+
kAudioChannelLayoutTag_DTS_6_1_C = (175U<<16) | 7, ///< C Cs L R Rls Rrs LFE
|
|
1399
|
+
kAudioChannelLayoutTag_DTS_7_0 = (176U<<16) | 7, ///< Lc C Rc L R Ls Rs
|
|
1400
|
+
kAudioChannelLayoutTag_DTS_7_1 = (177U<<16) | 8, ///< Lc C Rc L R Ls Rs LFE
|
|
1401
|
+
kAudioChannelLayoutTag_DTS_8_0_A = (178U<<16) | 8, ///< Lc Rc L R Ls Rs Rls Rrs
|
|
1402
|
+
kAudioChannelLayoutTag_DTS_8_0_B = (179U<<16) | 8, ///< Lc C Rc L R Ls Cs Rs
|
|
1403
|
+
kAudioChannelLayoutTag_DTS_8_1_A = (180U<<16) | 9, ///< Lc Rc L R Ls Rs Rls Rrs LFE
|
|
1404
|
+
kAudioChannelLayoutTag_DTS_8_1_B = (181U<<16) | 9, ///< Lc C Rc L R Ls Cs Rs LFE
|
|
1405
|
+
kAudioChannelLayoutTag_DTS_6_1_D = (182U<<16) | 7, ///< C L R Ls Rs LFE Cs
|
|
1406
|
+
|
|
1407
|
+
kAudioChannelLayoutTag_WAVE_2_1 = kAudioChannelLayoutTag_DVD_4, ///< 3 channels, L R LFE
|
|
1408
|
+
kAudioChannelLayoutTag_WAVE_3_0 = kAudioChannelLayoutTag_MPEG_3_0_A, ///< 3 channels, L R C
|
|
1409
|
+
kAudioChannelLayoutTag_WAVE_4_0_A = kAudioChannelLayoutTag_ITU_2_2, ///< 4 channels, L R Ls Rs
|
|
1410
|
+
kAudioChannelLayoutTag_WAVE_4_0_B = (185U<<16) | 4, ///< 4 channels, L R Rls Rrs
|
|
1411
|
+
kAudioChannelLayoutTag_WAVE_5_0_A = kAudioChannelLayoutTag_MPEG_5_0_A, ///< 5 channels, L R C Ls Rs
|
|
1412
|
+
kAudioChannelLayoutTag_WAVE_5_0_B = (186U<<16) | 5, ///< 5 channels, L R C Rls Rrs
|
|
1413
|
+
kAudioChannelLayoutTag_WAVE_5_1_A = kAudioChannelLayoutTag_MPEG_5_1_A, ///< 6 channels, L R C LFE Ls Rs
|
|
1414
|
+
kAudioChannelLayoutTag_WAVE_5_1_B = (187U<<16) | 6, ///< 6 channels, L R C LFE Rls Rrs
|
|
1415
|
+
kAudioChannelLayoutTag_WAVE_6_1 = (188U<<16) | 7, ///< 7 channels, L R C LFE Cs Ls Rs
|
|
1416
|
+
kAudioChannelLayoutTag_WAVE_7_1 = (189U<<16) | 8, ///< 8 channels, L R C LFE Rls Rrs Ls Rs
|
|
1417
|
+
|
|
1418
|
+
kAudioChannelLayoutTag_HOA_ACN_SN3D = (190U<<16) | 0, ///< Higher Order Ambisonics, Ambisonics Channel Number, SN3D normalization
|
|
1419
|
+
///< needs to be ORed with the actual number of channels (not the HOA order)
|
|
1420
|
+
kAudioChannelLayoutTag_HOA_ACN_N3D = (191U<<16) | 0, ///< Higher Order Ambisonics, Ambisonics Channel Number, N3D normalization
|
|
1421
|
+
///< needs to be ORed with the actual number of channels (not the HOA order)
|
|
1422
|
+
|
|
1423
|
+
kAudioChannelLayoutTag_Atmos_5_1_2 = (194U<<16) | 8, ///< L R C LFE Ls Rs Ltm Rtm
|
|
1424
|
+
kAudioChannelLayoutTag_Atmos_5_1_4 = (195U<<16) | 10, ///< L R C LFE Ls Rs Vhl Vhr Ltr Rtr
|
|
1425
|
+
kAudioChannelLayoutTag_Atmos_7_1_2 = (196U<<16) | 10, ///< L R C LFE Ls Rs Rls Rrs Ltm Rtm
|
|
1426
|
+
kAudioChannelLayoutTag_Atmos_7_1_4 = (192U<<16) | 12, ///< L R C LFE Ls Rs Rls Rrs Vhl Vhr Ltr Rtr
|
|
1427
|
+
kAudioChannelLayoutTag_Atmos_9_1_6 = (193U<<16) | 16, ///< L R C LFE Ls Rs Rls Rrs Lw Rw Vhl Vhr Ltm Rtm Ltr Rtr
|
|
1428
|
+
|
|
1429
|
+
kAudioChannelLayoutTag_Logic_Mono = kAudioChannelLayoutTag_Mono, ///< C
|
|
1430
|
+
kAudioChannelLayoutTag_Logic_Stereo = kAudioChannelLayoutTag_Stereo, ///< L R
|
|
1431
|
+
kAudioChannelLayoutTag_Logic_Quadraphonic = kAudioChannelLayoutTag_Quadraphonic, ///< L R Ls Rs
|
|
1432
|
+
kAudioChannelLayoutTag_Logic_4_0_A = kAudioChannelLayoutTag_MPEG_4_0_A, ///< L R C Cs
|
|
1433
|
+
kAudioChannelLayoutTag_Logic_4_0_B = kAudioChannelLayoutTag_MPEG_4_0_B, ///< C L R Cs
|
|
1434
|
+
kAudioChannelLayoutTag_Logic_4_0_C = (197U<<16) | 4, ///< L R Cs C
|
|
1435
|
+
kAudioChannelLayoutTag_Logic_5_0_A = kAudioChannelLayoutTag_MPEG_5_0_A, ///< L R C Ls Rs
|
|
1436
|
+
kAudioChannelLayoutTag_Logic_5_0_B = kAudioChannelLayoutTag_MPEG_5_0_B, ///< L R Ls Rs C
|
|
1437
|
+
kAudioChannelLayoutTag_Logic_5_0_C = kAudioChannelLayoutTag_MPEG_5_0_C, ///< L C R Ls Rs
|
|
1438
|
+
kAudioChannelLayoutTag_Logic_5_0_D = kAudioChannelLayoutTag_MPEG_5_0_D, ///< C L R Ls Rs
|
|
1439
|
+
kAudioChannelLayoutTag_Logic_5_1_A = kAudioChannelLayoutTag_MPEG_5_1_A, ///< L R C LFE Ls Rs
|
|
1440
|
+
kAudioChannelLayoutTag_Logic_5_1_B = kAudioChannelLayoutTag_MPEG_5_1_B, ///< L R Ls Rs C LFE
|
|
1441
|
+
kAudioChannelLayoutTag_Logic_5_1_C = kAudioChannelLayoutTag_MPEG_5_1_C, ///< L C R Ls Rs LFE
|
|
1442
|
+
kAudioChannelLayoutTag_Logic_5_1_D = kAudioChannelLayoutTag_MPEG_5_1_D, ///< C L R Ls Rs LFE
|
|
1443
|
+
kAudioChannelLayoutTag_Logic_6_0_A = kAudioChannelLayoutTag_AAC_6_0, ///< C L R Ls Rs Cs
|
|
1444
|
+
kAudioChannelLayoutTag_Logic_6_0_B = (198U<<16) | 6, ///< L R Ls Rs Cs C
|
|
1445
|
+
kAudioChannelLayoutTag_Logic_6_0_C = kAudioChannelLayoutTag_AudioUnit_6_0, ///< L R Ls Rs C Cs
|
|
1446
|
+
kAudioChannelLayoutTag_Logic_6_1_A = kAudioChannelLayoutTag_AAC_6_1, ///< C L R Ls Rs Cs LFE
|
|
1447
|
+
kAudioChannelLayoutTag_Logic_6_1_B = (199U<<16) | 7, ///< L R Ls Rs Cs C LFE
|
|
1448
|
+
kAudioChannelLayoutTag_Logic_6_1_C = kAudioChannelLayoutTag_MPEG_6_1_A, ///< L R C LFE Ls Rs Cs
|
|
1449
|
+
kAudioChannelLayoutTag_Logic_6_1_D = (200U<<16) | 7, ///< L C R Ls Cs Rs LFE
|
|
1450
|
+
kAudioChannelLayoutTag_Logic_7_1_A = kAudioChannelLayoutTag_AudioUnit_7_1, ///< L R C LFE Ls Rs Rls Rrs
|
|
1451
|
+
kAudioChannelLayoutTag_Logic_7_1_B = (201U<<16) | 8, ///< L R Ls Rs Rls Rrs C LFE
|
|
1452
|
+
kAudioChannelLayoutTag_Logic_7_1_C = kAudioChannelLayoutTag_MPEG_7_1_C, ///< L R C LFE Ls Rs Rls Rrs
|
|
1453
|
+
kAudioChannelLayoutTag_Logic_7_1_SDDS_A = kAudioChannelLayoutTag_MPEG_7_1_A, ///< L R C LFE Ls Rs Lc Rc
|
|
1454
|
+
kAudioChannelLayoutTag_Logic_7_1_SDDS_B = kAudioChannelLayoutTag_MPEG_7_1_B, ///< C Lc Rc L R Ls Rs LFE
|
|
1455
|
+
kAudioChannelLayoutTag_Logic_7_1_SDDS_C = kAudioChannelLayoutTag_Emagic_Default_7_1, ///< L R Ls Rs C LFE Lc Rc
|
|
1456
|
+
kAudioChannelLayoutTag_Logic_Atmos_5_1_2 = kAudioChannelLayoutTag_Atmos_5_1_2, ///< L R C LFE Ls Rs Ltm Rtm
|
|
1457
|
+
kAudioChannelLayoutTag_Logic_Atmos_5_1_4 = kAudioChannelLayoutTag_Atmos_5_1_4, ///< L R C LFE Ls Rs Vhl Vhr Ltr Rtr
|
|
1458
|
+
kAudioChannelLayoutTag_Logic_Atmos_7_1_2 = kAudioChannelLayoutTag_Atmos_7_1_2, ///< L R C LFE Ls Rs Rls Rrs Ltm Rtm
|
|
1459
|
+
kAudioChannelLayoutTag_Logic_Atmos_7_1_4_A = kAudioChannelLayoutTag_Atmos_7_1_4, ///< L R C LFE Ls Rs Rls Rrs Vhl Vhr Ltr Rtr
|
|
1460
|
+
kAudioChannelLayoutTag_Logic_Atmos_7_1_4_B = (202U<<16) | 12, ///< L R Rls Rrs Ls Rs C LFE Vhl Vhr Ltr Rtr
|
|
1461
|
+
kAudioChannelLayoutTag_Logic_Atmos_7_1_6 = (203U<<16) | 14, ///< L R Rls Rrs Ls Rs C LFE Vhl Vhr Ltm Rtm Ltr Rtr
|
|
1462
|
+
|
|
1463
|
+
kAudioChannelLayoutTag_DiscreteInOrder = (147U<<16) | 0, ///< needs to be ORed with the actual number of channels
|
|
1464
|
+
|
|
1465
|
+
// ISO/IEC 23091-3, channels w/orderings
|
|
1466
|
+
kAudioChannelLayoutTag_CICP_1 = kAudioChannelLayoutTag_MPEG_1_0, ///< C
|
|
1467
|
+
kAudioChannelLayoutTag_CICP_2 = kAudioChannelLayoutTag_MPEG_2_0, ///< L R
|
|
1468
|
+
kAudioChannelLayoutTag_CICP_3 = kAudioChannelLayoutTag_MPEG_3_0_A, ///< L R C
|
|
1469
|
+
kAudioChannelLayoutTag_CICP_4 = kAudioChannelLayoutTag_MPEG_4_0_A, ///< L R C Cs
|
|
1470
|
+
kAudioChannelLayoutTag_CICP_5 = kAudioChannelLayoutTag_MPEG_5_0_A, ///< L R C Ls Rs
|
|
1471
|
+
kAudioChannelLayoutTag_CICP_6 = kAudioChannelLayoutTag_MPEG_5_1_A, ///< L R C LFE Ls Rs
|
|
1472
|
+
kAudioChannelLayoutTag_CICP_7 = kAudioChannelLayoutTag_MPEG_7_1_B, ///< L R C LFE Ls Rs Lc Rc
|
|
1473
|
+
|
|
1474
|
+
kAudioChannelLayoutTag_CICP_9 = kAudioChannelLayoutTag_ITU_2_1, ///< L R Cs
|
|
1475
|
+
kAudioChannelLayoutTag_CICP_10 = kAudioChannelLayoutTag_ITU_2_2, ///< L R Ls Rs
|
|
1476
|
+
kAudioChannelLayoutTag_CICP_11 = kAudioChannelLayoutTag_MPEG_6_1_A, ///< L R C LFE Ls Rs Cs
|
|
1477
|
+
kAudioChannelLayoutTag_CICP_12 = kAudioChannelLayoutTag_MPEG_7_1_C, ///< L R C LFE Ls Rs Rls Rrs
|
|
1478
|
+
kAudioChannelLayoutTag_CICP_13 = (204U<<16) | 24, ///< Lc Rc C LFE2 Rls Rrs L R Cs LFE3 Lss Rss Vhl Vhr Vhc Ts Ltr Rtr Ltm Rtm Ctr Cb Lb Rb
|
|
1479
|
+
|
|
1480
|
+
kAudioChannelLayoutTag_CICP_14 = (205U<<16) | 8, ///< L R C LFE Ls Rs Vhl Vhr
|
|
1481
|
+
kAudioChannelLayoutTag_CICP_15 = (206U<<16) | 12, ///< L R C LFE2 Rls Rrs LFE3 Lss Rss Vhl Vhr Ctr
|
|
1482
|
+
|
|
1483
|
+
kAudioChannelLayoutTag_CICP_16 = (207U<<16) | 10, ///< L R C LFE Ls Rs Vhl Vhr Lts Rts
|
|
1484
|
+
kAudioChannelLayoutTag_CICP_17 = (208U<<16) | 12, ///< L R C LFE Ls Rs Vhl Vhr Vhc Lts Rts Ts
|
|
1485
|
+
kAudioChannelLayoutTag_CICP_18 = (209U<<16) | 14, ///< L R C LFE Ls Rs Lbs Rbs Vhl Vhr Vhc Lts Rts Ts
|
|
1486
|
+
|
|
1487
|
+
kAudioChannelLayoutTag_CICP_19 = (210U<<16) | 12, ///< L R C LFE Rls Rrs Lss Rss Vhl Vhr Ltr Rtr
|
|
1488
|
+
kAudioChannelLayoutTag_CICP_20 = (211U<<16) | 14, ///< L R C LFE Rls Rrs Lss Rss Vhl Vhr Ltr Rtr Leos Reos
|
|
1489
|
+
|
|
1490
|
+
kAudioChannelLayoutTag_Ogg_3_0 = kAudioChannelLayoutTag_AC3_3_0, ///< 3 channels, L C R
|
|
1491
|
+
kAudioChannelLayoutTag_Ogg_4_0 = kAudioChannelLayoutTag_WAVE_4_0_B, ///< 4 channels, L R Rls Rrs
|
|
1492
|
+
kAudioChannelLayoutTag_Ogg_5_0 = (212U<<16) | 5, ///< 5 channels, L C R Rls Rrs
|
|
1493
|
+
kAudioChannelLayoutTag_Ogg_5_1 = (213U<<16) | 6, ///< 6 channels, L C R Rls Rrs LFE
|
|
1494
|
+
kAudioChannelLayoutTag_Ogg_6_1 = (214U<<16) | 7, ///< 7 channels, L C R Ls Rs Cs LFE
|
|
1495
|
+
kAudioChannelLayoutTag_Ogg_7_1 = (215U<<16) | 8, ///< 8 channels, L C R Ls Rs Rls Rrs LFE
|
|
1496
|
+
|
|
1497
|
+
kAudioChannelLayoutTag_MPEG_5_0_E = (216U<<16) | 5, ///< 5 channels, L R Rls Rrs C
|
|
1498
|
+
kAudioChannelLayoutTag_MPEG_5_1_E = (217U<<16) | 6, ///< 6 channels, L R Rls Rrs C LFE
|
|
1499
|
+
kAudioChannelLayoutTag_MPEG_6_1_B = (218U<<16) | 7, ///< 7 channels, L R Ls Rs C Cs LFE
|
|
1500
|
+
kAudioChannelLayoutTag_MPEG_7_1_D = (219U<<16) | 8, ///< 8 channels, L R Rls Rrs Ls Rs C LFE
|
|
1501
|
+
|
|
1502
|
+
kAudioChannelLayoutTag_BeginReserved = 0xF0000000, ///< Channel layout tag values in this range are reserved for internal use
|
|
1503
|
+
kAudioChannelLayoutTag_EndReserved = 0xFFFEFFFF,
|
|
1504
|
+
|
|
1505
|
+
kAudioChannelLayoutTag_Unknown = 0xFFFF0000 ///< needs to be ORed with the actual number of channels
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
/*!
|
|
1509
|
+
@struct AudioChannelDescription
|
|
1510
|
+
@abstract This structure describes a single channel.
|
|
1511
|
+
@var mChannelLabel
|
|
1512
|
+
The AudioChannelLabel that describes the channel.
|
|
1513
|
+
@var mChannelFlags
|
|
1514
|
+
Flags that control the interpretation of mCoordinates.
|
|
1515
|
+
@var mCoordinates
|
|
1516
|
+
An ordered triple that specifies a precise speaker location.
|
|
1517
|
+
*/
|
|
1518
|
+
struct AudioChannelDescription
|
|
1519
|
+
{
|
|
1520
|
+
AudioChannelLabel mChannelLabel;
|
|
1521
|
+
AudioChannelFlags mChannelFlags;
|
|
1522
|
+
Float32 mCoordinates[3];
|
|
1523
|
+
};
|
|
1524
|
+
typedef struct AudioChannelDescription AudioChannelDescription;
|
|
1525
|
+
|
|
1526
|
+
/*!
|
|
1527
|
+
@struct AudioChannelLayout
|
|
1528
|
+
@abstract This structure is used to specify channel layouts in files and hardware.
|
|
1529
|
+
@var mChannelLayoutTag
|
|
1530
|
+
The AudioChannelLayoutTag that indicates the layout.
|
|
1531
|
+
@var mChannelBitmap
|
|
1532
|
+
If mChannelLayoutTag is set to kAudioChannelLayoutTag_UseChannelBitmap, this
|
|
1533
|
+
field is the channel usage bitmap.
|
|
1534
|
+
@var mNumberChannelDescriptions
|
|
1535
|
+
The number of items in the mChannelDescriptions array.
|
|
1536
|
+
@var mChannelDescriptions
|
|
1537
|
+
A variable length array of AudioChannelDescriptions that describe the
|
|
1538
|
+
layout.
|
|
1539
|
+
*/
|
|
1540
|
+
struct AudioChannelLayout
|
|
1541
|
+
{
|
|
1542
|
+
AudioChannelLayoutTag mChannelLayoutTag;
|
|
1543
|
+
AudioChannelBitmap mChannelBitmap;
|
|
1544
|
+
UInt32 mNumberChannelDescriptions;
|
|
1545
|
+
AudioChannelDescription mChannelDescriptions[1]; // this is a variable length array of mNumberChannelDescriptions elements
|
|
1546
|
+
|
|
1547
|
+
#if defined(__cplusplus) && defined(CA_STRICT) && CA_STRICT
|
|
1548
|
+
public:
|
|
1549
|
+
AudioChannelLayout() {}
|
|
1550
|
+
private:
|
|
1551
|
+
// Copying and assigning a variable length struct is problematic so turn their use into a
|
|
1552
|
+
// compile time error for easy spotting.
|
|
1553
|
+
AudioChannelLayout(const AudioChannelLayout&);
|
|
1554
|
+
AudioChannelLayout& operator=(const AudioChannelLayout&);
|
|
1555
|
+
#endif
|
|
1556
|
+
|
|
1557
|
+
};
|
|
1558
|
+
typedef struct AudioChannelLayout AudioChannelLayout;
|
|
1559
|
+
|
|
1560
|
+
/*!
|
|
1561
|
+
@function AudioChannelLayoutTag_GetNumberOfChannels
|
|
1562
|
+
@abstract A macro to get the number of channels out of an AudioChannelLayoutTag
|
|
1563
|
+
@discussion The low 16 bits of an AudioChannelLayoutTag gives the number of channels except
|
|
1564
|
+
for kAudioChannelLayoutTag_UseChannelDescriptions and
|
|
1565
|
+
kAudioChannelLayoutTag_UseChannelBitmap.
|
|
1566
|
+
@param inLayoutTag
|
|
1567
|
+
The AudioChannelLayoutTag to examine.
|
|
1568
|
+
@result The number of channels the tag indicates.
|
|
1569
|
+
*/
|
|
1570
|
+
#ifdef CF_INLINE
|
|
1571
|
+
CF_INLINE UInt32 AudioChannelLayoutTag_GetNumberOfChannels(AudioChannelLayoutTag inLayoutTag) { return (UInt32)(inLayoutTag & 0x0000FFFF); }
|
|
1572
|
+
#else
|
|
1573
|
+
#define AudioChannelLayoutTag_GetNumberOfChannels(inLayoutTag) ((UInt32)((inLayoutTag) & 0x0000FFFF))
|
|
1574
|
+
#endif
|
|
1575
|
+
|
|
1576
|
+
/*!
|
|
1577
|
+
@struct AudioFormatListItem
|
|
1578
|
+
@abstract this struct is used as output from the kAudioFormatProperty_FormatList property
|
|
1579
|
+
@var mASBD
|
|
1580
|
+
an AudioStreamBasicDescription
|
|
1581
|
+
@var mChannelLayoutTag
|
|
1582
|
+
an AudioChannelLayoutTag
|
|
1583
|
+
*/
|
|
1584
|
+
struct AudioFormatListItem
|
|
1585
|
+
{
|
|
1586
|
+
AudioStreamBasicDescription mASBD;
|
|
1587
|
+
AudioChannelLayoutTag mChannelLayoutTag;
|
|
1588
|
+
};
|
|
1589
|
+
typedef struct AudioFormatListItem AudioFormatListItem;
|
|
1590
|
+
|
|
1591
|
+
// Deprecated constants
|
|
1592
|
+
|
|
1593
|
+
/*! @enum MPEG4ObjectID
|
|
1594
|
+
@ deprecated in version 10.5
|
|
1595
|
+
|
|
1596
|
+
@abstract Constants that describe the various kinds of MPEG-4 audio data.
|
|
1597
|
+
@discussion These constants are used in the flags field of an AudioStreamBasicDescription
|
|
1598
|
+
that describes an MPEG-4 audio stream.
|
|
1599
|
+
*/
|
|
1600
|
+
typedef CF_ENUM(long, MPEG4ObjectID)
|
|
1601
|
+
{
|
|
1602
|
+
kMPEG4Object_AAC_Main = 1,
|
|
1603
|
+
kMPEG4Object_AAC_LC = 2,
|
|
1604
|
+
kMPEG4Object_AAC_SSR = 3,
|
|
1605
|
+
kMPEG4Object_AAC_LTP = 4,
|
|
1606
|
+
kMPEG4Object_AAC_SBR = 5,
|
|
1607
|
+
kMPEG4Object_AAC_Scalable = 6,
|
|
1608
|
+
kMPEG4Object_TwinVQ = 7,
|
|
1609
|
+
kMPEG4Object_CELP = 8,
|
|
1610
|
+
kMPEG4Object_HVXC = 9
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
//==================================================================================================
|
|
1614
|
+
|
|
1615
|
+
#if defined(__cplusplus)
|
|
1616
|
+
}
|
|
1617
|
+
#endif
|
|
1618
|
+
|
|
1619
|
+
#pragma clang diagnostic pop
|
|
1620
|
+
|
|
1621
|
+
#endif // CoreAudioTypes_CoreAudioBaseTypes_h
|