Skip to content

AudioToolbox tvOS xcode13.3 beta2

Alex Soto edited this page Feb 11, 2022 · 2 revisions

#AudioToolbox.framework

diff -ruN /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h
--- /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h	2022-01-25 13:15:15.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h	2022-02-04 13:40:59.000000000 -0500
@@ -251,6 +251,8 @@
         output in one render call, set this property to increase the buffer.
 
         This only provides a recommendation to the framework.
+ 
+        Bridged to kAudioUnitProperty_MIDIOutputBufferSizeHint.
 */
 @property (NS_NONATOMIC_IOSONLY) NSInteger MIDIOutputBufferSizeHint API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0));
 
diff -ruN /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h
--- /Applications/Xcode_13.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h	2022-01-25 12:55:47.000000000 -0500
+++ /Applications/Xcode_13.3.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h	2022-02-04 13:44:37.000000000 -0500
@@ -851,6 +851,27 @@
 						this property to detect the hosts MIDI protocol.
 
 						Note: This property should not be changed after the audio unit has been initialized.
+
+	@constant        kAudioUnitProperty_MIDIOutputBufferSizeHint
+						Scope:                  Global
+						Value Type:          UInt32
+						Access:                 read/write
+
+						This property allows the plug-in to provide a hint to the framework regarding the size of
+						its outgoing MIDI data buffer.
+
+						If the plug-in produces more MIDI output data than the default size of the allocated buffer,
+						then the plug-in can provide this property to increase the size of this buffer.
+
+						The value represents the number of 3-byte Legacy MIDI messages that fit into the buffer or
+						a single MIDIEventList containing 1 MIDIEventPacket of 2 words when using MIDI 2.0 (MIDIEventList based API's).
+
+						This property is set to the default value by the framework.
+
+						In case of kAudioUnitErr_MIDIOutputBufferFull errors caused by producing too much MIDI
+						output in one render call, set this property to increase the buffer.
+
+						This only provides a recommendation to the framework.
 */
 CF_ENUM(AudioUnitPropertyID)
 {
@@ -910,13 +931,16 @@
 	kAudioUnitProperty_AUHostIdentifier				= 46,
 #endif
 
-	kAudioUnitProperty_MIDIOutputCallbackInfo       = 47,
-	kAudioUnitProperty_MIDIOutputCallback           = 48,
+	kAudioUnitProperty_MIDIOutputCallbackInfo		= 47,
+	kAudioUnitProperty_MIDIOutputCallback			= 48,
 
-    kAudioUnitProperty_MIDIOutputEventListCallback      = 63,
+    kAudioUnitProperty_MIDIOutputEventListCallback	= 63,
+
+    kAudioUnitProperty_AudioUnitMIDIProtocol		= 64,
+    kAudioUnitProperty_HostMIDIProtocol				= 65,
+	
+	kAudioUnitProperty_MIDIOutputBufferSizeHint		= 66
 
-    kAudioUnitProperty_AudioUnitMIDIProtocol            = 64,
-    kAudioUnitProperty_HostMIDIProtocol                 = 65
 };
 
 #if AU_SUPPORT_INTERAPP_AUDIO
Clone this wiki locally