forked from dotnet/macios
-
Notifications
You must be signed in to change notification settings - Fork 0
AudioToolbox iOS10 Beta2
Vincent Dondain edited this page Jul 6, 2016
·
1 revision
#AudioToolbox.framework
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h 2016-05-25 07:13:54.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h 2016-06-26 07:56:00.000000000 +0200
@@ -753,7 +753,23 @@
@discussion
Bridged to the v2 property kAudioUnitProperty_SupportsMPE.
*/
-@property (NS_NONATOMIC_IOSONLY, readonly) BOOL supportsMPE;
+@property (NS_NONATOMIC_IOSONLY, readonly) BOOL supportsMPE NS_AVAILABLE(10_12, 10_0);
+
+/*! @property channelMap
+ @brief Specify a mapping of input channels to output channels.
+ @discussion
+ Converter and input/output audio units may support re-ordering or splitting of input
+ channels to output channels. The number of channels in the channel map is the number of
+ channels of the destination (output format). The channel map entries contain a channel
+ number of the source channel that should be mapped to that destination channel. If -1 is
+ specified, then that destination channel will not contain any channel from the source (so it
+ will be silent).
+
+ If the property value is nil, then the audio unit does not support this property.
+
+ Bridged to the v2 property kAudioOutputUnitProperty_ChannelMap.
+*/
+@property (NS_NONATOMIC_IOSONLY, copy, nullable) NSArray<NSNumber *> *channelMap NS_AVAILABLE(10_12, 10_0);
@end
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h 2016-05-25 07:13:54.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h 2016-06-26 09:02:40.000000000 +0200
@@ -85,6 +85,12 @@
if the AU is implemented using AUAudioUnitV2Bridge.
See AudioComponent.h.
+Note that as of OS X version 10.12, the system has special support for installing both version 2
+(bundle-based) and version 3 (extension) implementations of the same audio unit. When two components
+are registered with the same type/subtype/manufacturer and version, normally the first one found
+is used. But if one is an audio unit extension and the other is not, then the audio unit extension's
+registration "wins", though if an app attempts to open it synchronously, with
+AudioComponentInstanceNew, then the system will fall back to the version 2 implementation.
*/
#if __OBJC2__
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUComponent.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUComponent.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUComponent.h 2016-05-25 06:33:41.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUComponent.h 2016-06-26 07:56:38.000000000 +0200
@@ -1604,6 +1604,34 @@
__OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_7_0);
#endif // TARGET_OS_IPHONE
+/*!
+ @function AudioUnitExtensionSetComponentList
+ @abstract Allows the implementor of an audio unit extension to dynamically modify the
+ list of component registrations for the extension.
+ @param extensionIdentifier
+ The bundle ID of the audio unit extension.
+ @param audioComponentInfo
+ An array of dictionaries, one for each component, in the same format as
+ described in AudioComponent.h for the Info.plist key "AudioComponents".
+ @result An OSStatus result code.
+*/
+extern void
+AudioUnitExtensionSetComponentList(CFStringRef extensionIdentifier, CFArrayRef audioComponentInfo)
+ __OSX_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);
+
+/*!
+ @function AudioUnitExtensionCopyComponentList
+ @abstract Allows the implementor of an audio unit extension to dynamically modify the
+ list of component registrations for the extension.
+ @param extensionIdentifier
+ The bundle ID of the audio unit extension.
+ @result An array of dictionaries, one for each component, in the same format as
+ described in AudioComponent.h for the Info.plist key "AudioComponents".
+ The caller should release this value when done with it.
+*/
+extern CFArrayRef
+AudioUnitExtensionCopyComponentList(CFStringRef extensionIdentifier)
+ __OSX_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_10_0);
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUParameters.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUParameters.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUParameters.h 2016-05-25 06:33:41.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUParameters.h 2016-06-26 07:56:38.000000000 +0200
@@ -256,7 +256,9 @@
"LFO.rate.value" refers to that parameter's value.
An audio unit may choose to dynamically rearrange the tree. When doing so, it must
- issue a KVO notification on the audio unit's parameterTree property.
+ issue a KVO notification on the audio unit's parameterTree property. The tree's elements are
+ mostly immutable (except for values and implementor hooks); the only way to modify them
+ is to publish a new tree.
*/
NS_CLASS_AVAILABLE(10_11, 9_0)
@interface AUParameterTree : AUParameterGroup <NSSecureCoding>
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioSession.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioSession.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioSession.h 2016-05-25 01:11:59.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioSession.h 2016-06-25 00:40:00.000000000 +0200
@@ -474,7 +474,7 @@
not allowed)
An application must be prepared for setting this property to fail as behaviour may change in future releases.
If an application changes their category, they should reassert the override (it is not sticky across category changes)
- @constant kAudioSessionProperty_InterruptionType
+ @constant kAudioSessionProperty_InterruptionType
Available with iOS 4.0 or greater
This is a read-only property that gives the type of the end interruption event. Media playback apps (i.e.,
those apps that have a "play" button), may use this property as a guideline for when to resume playing after an
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h 2016-05-25 07:09:31.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h 2016-06-26 09:02:40.000000000 +0200
@@ -38,13 +38,10 @@
#include <AudioToolbox/AudioUnitUtilities.h>
#include <AudioToolbox/AUMIDIController.h>
#include <AudioToolbox/CoreAudioClock.h>
- #ifdef __OBJC__
- #import <AudioToolbox/AUCocoaUIView.h>
- #endif
#endif
#ifdef __OBJC2__
- // iOS, OS X 64-bit only
+ // iOS (all architectures), OS X 64-bit only
#import <AudioToolbox/AUAudioUnit.h>
#import <AudioToolbox/AUAudioUnitImplementation.h>
#import <AudioToolbox/AUParameters.h>
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h 2016-05-25 06:33:41.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h 2016-06-26 09:05:36.000000000 +0200
@@ -28,9 +28,6 @@
#if !TARGET_OS_IPHONE
#include <AudioToolbox/AudioCodec.h>
- #ifdef __OBJC__
- #import <AudioToolbox/AUCocoaUIView.h>
- #endif
#endif
#else
diff -ruN /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h
--- /Applications/Xcode8-beta1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h 2016-05-25 06:33:41.000000000 +0200
+++ /Applications/Xcode8-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h 2016-06-26 09:05:36.000000000 +0200
@@ -151,6 +151,7 @@
@constant kAudioUnitProperty_ParameterInfo
Scope: Any
+ Element: AudioUnitParameterID of the parameter being queried
Value Type: AudioUnitParameterInfo
Access: Read
@@ -231,6 +232,7 @@
@constant kAudioUnitProperty_ParameterValueStrings
Scope: Any
+ Element: AudioUnitParameterID of the parameter being queried
Value Type: CFArrayRef
Access: Read
@@ -400,6 +402,7 @@
@constant kAudioUnitProperty_ParameterIDName
Scope: any
+ Element: AudioUnitParameterID of the parameter being queried
Value Type: AudioUnitParameterIDName
Access: read
@@ -2171,12 +2174,12 @@
@constant kAudioOutputUnitProperty_ChannelMap
@discussion Scope: Input/Output
- Value Type: Array of UInt32
+ Value Type: Array of SInt32
Access: Read / Write
This will also work with AUConverter. This property is used to map input channels from an input (source) to a destination.
The number of channels represented in the channel map is the number of channels of the destination. The channel map entries
- contain a channel number of the source that should be mapped to that destination channel. If -1 is specified, than that
+ contain a channel number of the source that should be mapped to that destination channel. If -1 is specified, then that
destination channel will not contain any channel from the source (so it will be silent)
@constant kAudioOutputUnitProperty_EnableIO