Skip to content

AVFAudio macOS xcode13.0 rc

Alex Soto edited this page Sep 14, 2021 · 1 revision

#AVFAudio.framework

diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h	2021-08-07 05:22:28.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h	2021-08-03 21:51:59.000000000 -0400
@@ -82,34 +82,6 @@
 */
 - (nullable instancetype)initWithPCMFormat:(AVAudioFormat *)format frameCapacity:(AVAudioFrameCount)frameCapacity NS_DESIGNATED_INITIALIZER;
 
-/*!	@method initWithPCMFormat:bufferListNoCopy:deallocator:
-	@abstract Initialize a buffer that is to contain PCM audio samples with a given AudioBufferList
-			  without copying samples and a custom deallocator block.
-	@param format
-		The format of the PCM audio to be contained in the buffer.
-	@param bufferList
-		The buffer list with allocated memory to contain the PCM audio data.
-	@param deallocator
-		A block to invoke when the resulting AVAudioPCMBuffer object is deallocated.
-	@discussion
-		An exception is raised if the format is not PCM.
-
-		Returns nil in the following cases:
-		- if the format has zero bytes per frame (format.streamDescription->mBytesPerFrame == 0)
-		- if supplied buffer has zero number of buffers
-		- if each buffer's data byte size are not equal or if any of the buffers' data byte size is zero
-		- if there is a mismatch between the format's number of buffers and the AudioBufferList's size
-			(1 if interleaved, mChannelsPerFrame if deinterleaved)
-		- if the AudioBufferList's pointer to the buffer of audio data is null.
-
-		Use the deallocator block to define your own deallocation behavior for the provided AudioBufferList's
-		underlying memory.
-
-		The AudioBufferList passed to the deallocator is identical to the one which was passed to the initializer,
-		in terms of the buffer count, and each buffer's mData and mDataByteSize members.
-*/
-- (nullable instancetype)initWithPCMFormat:(AVAudioFormat *)format bufferListNoCopy:(const AudioBufferList*)bufferList deallocator:(nullable void (^)(const AudioBufferList*))deallocator NS_DESIGNATED_INITIALIZER API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
-
 /*! @property frameCapacity
 	@abstract
 		The buffer's capacity, in audio sample frames.
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h	2021-08-09 03:22:53.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h	2021-08-03 21:52:02.000000000 -0400
@@ -185,13 +185,7 @@
  
 	Note that activating an audio session is a synchronous (blocking) operation.
 	Therefore, we recommend that applications not activate their session from a thread where a long
-	blocking operation will be problematic.
-	Apps may activate a AVAudioSessionCategoryPlayback session when another app is hosting a
-	call (to start a SharePlay activity for example). However, they are not permitted to capture the
-    microphone of the active call, so attempts to activate a session with category
-	AVAudioSessionCategoryRecord or AVAudioSessionCategoryPlayAndRecord will fail with error
-	AVAudioSessionErrorCodeInsufficientPriority.
-	When deactivating a session, the caller is required to
+	blocking operation will be problematic. When deactivating a session, the caller is required to
 	first stop or pause all running I/Os (e.g. audio queues, players, recorders, converters,
 	remote I/Os, etc.). Starting in iOS 8, if the session has running I/Os at the time that
 	deactivation is requested, the session will be deactivated, but the method will return NO and
@@ -411,15 +405,6 @@
 - (BOOL)setAggregatedIOPreference:(AVAudioSessionIOType)inIOType
 							error:(NSError **)outError API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(tvos, watchos, macos);
 
-/// Set YES to inform the system if the app can supply multichannel audio content.
-/// Default value is NO. This property is intended to be used by 'Now Playing' applications.
-/// See https://developer.apple.com/documentation/mediaplayer/becoming_a_now_playable_app for more information
-/// about what it means to be a 'Now Playing' application. Typically 'Now Playing' applications will also use
-/// AVAudioSessionRouteSharingPolicyLongFormAudio or AVAudioSessionRouteSharingPolicyLongFormVideo.
-- (BOOL)setSupportsMultichannelContent:(BOOL)inValue error:(NSError **)outError API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0)) API_UNAVAILABLE(macos);
-
-@property(readonly) BOOL supportsMultichannelContent API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0)) API_UNAVAILABLE(macos);
-
 @end // interface for AVAudioSession (RoutingConfiguration)
 
 #pragma mark-- Names for NSNotifications --
@@ -471,26 +456,9 @@
 */
 OS_EXPORT NSNotificationName const  AVAudioSessionSilenceSecondaryAudioHintNotification API_AVAILABLE(ios(8.0), watchos(2.0), tvos(9.0));
 
-/*!
-    @brief  Notification sent to registered listeners when spatial playback capabilities are changed due to a
-    change in user preference.
-
-    Check the notification's userInfo dictionary for AVAudioSessionSpatialAudioEnabledKey to check if spatial
-    audio is enabled.
-    
-    Observers of this notification should also observe AVAudioSessionRouteChangeNotification since a route change
-    may also result in a change in the ability for the system to play spatial audio. Use
-    AVAudioSessionPortDescription's isSpatialAudioEnabled property to check if the current route supports
-    spatialized playback.
-*/
-OS_EXPORT NSNotificationName const  AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0)) API_UNAVAILABLE(macos) NS_SWIFT_NAME(AVAudioSession.spatialPlaybackCapabilitiesChangedNotification);
 
 #pragma mark-- Keys for NSNotification userInfo dictionaries --
 
-/// keys for AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification
-/// value is an NSNumber whose boolean value indicates if spatial audio enabled.
-OS_EXPORT NSString *const AVAudioSessionSpatialAudioEnabledKey API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0)) API_UNAVAILABLE(macos);
-
 /// keys for AVAudioSessionInterruptionNotification
 /// Value is an NSNumber representing an AVAudioSessionInterruptionType
 OS_EXPORT NSString *const AVAudioSessionInterruptionTypeKey API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0));
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h	2021-08-09 03:25:55.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h	2021-08-03 21:52:00.000000000 -0400
@@ -150,25 +150,6 @@
 */
 @property (readonly) BOOL hasHardwareVoiceCallProcessing API_AVAILABLE(ios(10.0), watchos(3.0), tvos(10.0)) API_UNAVAILABLE(macos);
 
-/*!
-    @brief This property's value will be true if the port supports spatial audio playback and the feature is
-    enabled.
-     
-    'Now Playing' apps should also inform the system if they support multichannel audio content using
-    -setSupportsMultichannelContent:error: method. Apps may also register to receive the
-    AVAudioSessionSpatialPlaybackCapabilitiesChanged notification to detect changes in user preferences that
-    affect spatial audio playback.
-   
-    This property is only relevant in the context of ports that have a small number of hardware channels
-    (typically 2), but have enhanced capabilities for rendering multi-channel content. Note that some port
-    types such as USB and HDMI may support multi-channel playback because they have hardware formats supporting
-    more than 2 channels. For example, many HDMI receivers are connected to multiple speakers and are capable of
-    rendering 5.1, 7.1, or other popular surround sound formats. Applications interested in utilizing multi-channel
-    formats should also query AVAudioSession's maximumOutputNumberOfChannels property and make use of
-    -setPreferredOutputNumberOfChannels:error: to set the preferred number of hardware channels.
-*/
-@property (readonly, getter=isSpatialAudioEnabled) BOOL spatialAudioEnabled API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0)) API_UNAVAILABLE(macos);
-
 @property (readonly, nonatomic, nullable) NSArray<AVAudioSessionChannelDescription *> *channels API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macos);
 
 /// Will be nil if there are no selectable data sources.
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitSampler.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitSampler.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitSampler.h	2021-08-07 05:22:30.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitSampler.h	2021-08-03 21:52:02.000000000 -0400
@@ -81,22 +81,13 @@
  */
 @property (nonatomic) float     stereoPan;
 
-
-/*! @property overallGain
-	@abstract
-		adjusts the gain of all the notes played
-		Range:     -90.0 -> +12 db
-		Default: 0 db
- */
-@property (nonatomic) float     overallGain API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos) ;
-
 /*! @property masterGain
 	@abstract
-		adjusts the gain of all the notes played
+    	adjusts the gain of all the notes played
 		Range:     -90.0 -> +12 db
 		Default: 0 db
  */
-@property (nonatomic) float     masterGain API_DEPRECATED_WITH_REPLACEMENT("overallGain", ios(8.0, 15.0), macos(10.10, 12.0), tvos(9.0, 15.0)) ;
+@property (nonatomic) float     masterGain;
 
 /*! @property globalTuning
 	@abstract
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h	2021-07-31 07:15:41.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h	2021-03-16 04:44:08.000000000 -0400
@@ -19,9 +19,7 @@
 #import <AVFAudio/AVAudioPlayerNode.h>
 #if !0
 #import <AVFAudio/AVAudioRecorder.h>
-#import <AVFAudio/AVAudioRoutingArbiter.h>
 #endif
-
 #import <AVFAudio/AVAudioSequencer.h>
 #import <AVFAudio/AVAudioSettings.h>
 #import <AVFAudio/AVAudioSinkNode.h>
@@ -54,5 +52,7 @@
 #import <AVFAudio/AVAudioSessionDeprecated.h>
 #endif
 
-
+#if TARGET_OS_OSX
+#import <AVFAudio/AVAudioRoutingArbiter.h>
+#endif
 
Clone this wiki locally