Skip to content

AudioToolbox tvOS xcode15.0 b5

Alex Soto edited this page Jul 26, 2023 · 1 revision

#AudioToolbox.framework

diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h	2023-06-24 03:48:05
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h	2023-07-14 22:38:00
@@ -2967,12 +2967,31 @@
                         apply a second rotation on top of head yaw, pitch, and roll parameters.
  
     @constant       kAudioUnitProperty_SpatialMixerPersonalizedHRTFMode
-                        Scope:          Global
+ 
+    @discussion         Scope:          Global
                         Value Type:     UInt32
                         Access:         Read / Write
-    @discussion     Sets personalized head-related transfer function (HRTF) mode for spatial audio rendering
-                    with kSpatializationAlgorithm_UseOutputType and kSpatialMixerOutputType_Headphones.
-    @seealso        AUSpatialMixerPersonalizedHRTFMode
+ 
+                        Sets personalized head-related transfer function (HRTF) mode for spatial audio rendering
+                        with kSpatializationAlgorithm_UseOutputType and kSpatialMixerOutputType_Headphones.
+ 
+    @seealso            AUSpatialMixerPersonalizedHRTFMode
+ 
+    @constant       kAudioUnitProperty_SpatialMixerAnyInputIsUsingPersonalizedHRTF
+ 
+    @discussion         Scope:          Global
+                        Value Type:     UInt32
+                        Access:         Read
+ 
+                        Returns a Boolean value that indicates whether AUSpatialMixer is currently using personalized
+                        HRTF or not. The property should be queried after AU is initialized for a reliable outcome.
+                
+                        Personalization of spatial audio rendering is subject to various factors such as data availability or
+                        whether AUSpatialMixer is rendering for headphones with kSpatializationAlgorithm_UseOutputType.
+                        Hence, the value of kAudioUnitProperty_SpatialMixerPersonalizedHRTFMode alone does not
+                        guarantee that personalized HRTF is being used for spatial audio rendering.
+                
+    @seealso            kAudioUnitProperty_SpatialMixerPersonalizedHRTFMode
 
 */
 CF_ENUM(AudioUnitPropertyID) {
@@ -2986,7 +3005,8 @@
 	kAudioUnitProperty_SpatialMixerOutputType				= 3100,
 	kAudioUnitProperty_SpatialMixerPointSourceInHeadMode	= 3103,
     kAudioUnitProperty_SpatialMixerEnableHeadTracking API_AVAILABLE(macos(12.3)) API_UNAVAILABLE(ios, tvos) API_UNAVAILABLE(watchos) = 3111,
-    kAudioUnitProperty_SpatialMixerPersonalizedHRTFMode API_AVAILABLE(macos(13.0)) API_UNAVAILABLE(ios, tvos) API_UNAVAILABLE(watchos) = 3113
+    kAudioUnitProperty_SpatialMixerPersonalizedHRTFMode API_AVAILABLE(macos(13.0)) API_UNAVAILABLE(ios, tvos) API_UNAVAILABLE(watchos) = 3113,
+    kAudioUnitProperty_SpatialMixerAnyInputIsUsingPersonalizedHRTF API_AVAILABLE(macos(14.0)) API_UNAVAILABLE(ios, tvos) API_UNAVAILABLE(watchos) = 3116
 };
 
 /*!
Clone this wiki locally