[AVFoundation] Implement Xcode 16.0 beta 1, beta 2 and beta 3 changes (from AVFAudio only). (#20851)

Note: there were no changes in beta 2 and beta 3 in AVFAudio.
This commit is contained in:
Rolf Bjarne Kvinge 2024-07-12 18:42:11 +02:00 коммит произвёл GitHub
Родитель 17acc8eb64
Коммит 317c07b59c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
14 изменённых файлов: 31 добавлений и 38 удалений

Просмотреть файл

@ -1157,6 +1157,14 @@ namespace AVFoundation {
[MacCatalyst (13, 1)]
[Export ("outputType", ArgumentSemantic.Assign)]
AVAudioEnvironmentOutputType OutputType { get; set; }
[TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0), NoWatch]
[Export ("listenerHeadTrackingEnabled")]
bool ListenerHeadTrackingEnabled {
[Bind ("isListenerHeadTrackingEnabled")]
get;
set;
}
}
[MacCatalyst (13, 1)]
@ -1237,6 +1245,14 @@ namespace AVFoundation {
[Export ("writeFromBuffer:error:")]
bool WriteFromBuffer (AVAudioPcmBuffer buffer, out NSError outError);
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
[Export ("close")]
void Close ();
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
[Export ("isOpen")]
bool IsOpen { get; }
}
[MacCatalyst (13, 1)]
@ -1957,13 +1973,22 @@ namespace AVFoundation {
/// <summary>The delegate for <see cref="M:AVFoundation.AVAudioSession.RequestRecordPermission(AVFoundation.AVPermissionGranted)" />.</summary>
delegate void AVPermissionGranted (bool granted);
[iOS (14, 5), Watch (7, 4), NoTV, NoMac]
[iOS (14, 5), Watch (7, 4), TV (14, 5), Mac (11, 3)]
[MacCatalyst (14, 5)]
[Native]
public enum AVAudioSessionInterruptionReason : ulong {
Default = 0,
[Deprecated (PlatformName.MacCatalyst, 16, 0, message: "Not reported anymore.")]
[Deprecated (PlatformName.iOS, 16, 0, message: "Not reported anymore.")]
[Deprecated (PlatformName.TvOS, 16, 0, message: "Not reported anymore.")]
[Deprecated (PlatformName.MacOSX, 11, 3, message: "Not reported anymore.")]
[Deprecated (PlatformName.WatchOS, 9, 0, message: "Not reported anymore.")]
AppWasSuspended = 1,
BuiltInMicMuted = 2,
// visionOS only // WasBackgrounded = 3,
[iOS (17, 0), Watch (10, 0), TV (17, 0), MacCatalyst (17, 0), NoMac]
RouteDisconnected = 4,
// visionOS only // DeviceUnauthenticated = 5,
}
[Watch (8, 0), TV (15, 0), NoMac, iOS (15, 0), MacCatalyst (15, 0)]

Просмотреть файл

@ -457,6 +457,7 @@ namespace Cecil.Tests {
case "Intents.IINSendMessageIntentHandling.ResolveGroupName(Intents.INSendMessageIntent, System.Action`1<Intents.INStringResolutionResult>)":
case "Security.SecSharedCredential.RequestSharedWebCredential(System.String, System.String, System.Action`2<Security.SecSharedCredentialInfo[],Foundation.NSError>)":
case "System.String Intents.INSendMessageIntent::GroupName()":
case "AVFoundation.AVAudioSessionInterruptionReason AVFoundation.AVAudioSessionInterruptionReason::AppWasSuspended":
return true;
}
break;

Просмотреть файл

@ -4954,6 +4954,7 @@ F:AVFoundation.AVAudioSessionInterruptionOptions.ShouldResume
F:AVFoundation.AVAudioSessionInterruptionReason.AppWasSuspended
F:AVFoundation.AVAudioSessionInterruptionReason.BuiltInMicMuted
F:AVFoundation.AVAudioSessionInterruptionReason.Default
F:AVFoundation.AVAudioSessionInterruptionReason.RouteDisconnected
F:AVFoundation.AVAudioSessionInterruptionType.Began
F:AVFoundation.AVAudioSessionInterruptionType.Ended
F:AVFoundation.AVAudioSessionIOType.Aggregated
@ -26371,6 +26372,7 @@ M:AVFoundation.AVAudioFile.#ctor(Foundation.NSUrl,AVFoundation.AudioSettings,AVF
M:AVFoundation.AVAudioFile.#ctor(Foundation.NSUrl,AVFoundation.AudioSettings,Foundation.NSError@)
M:AVFoundation.AVAudioFile.#ctor(Foundation.NSUrl,AVFoundation.AVAudioCommonFormat,System.Boolean,Foundation.NSError@)
M:AVFoundation.AVAudioFile.#ctor(Foundation.NSUrl,Foundation.NSError@)
M:AVFoundation.AVAudioFile.Close
M:AVFoundation.AVAudioFile.ReadIntoBuffer(AVFoundation.AVAudioPcmBuffer,Foundation.NSError@)
M:AVFoundation.AVAudioFile.ReadIntoBuffer(AVFoundation.AVAudioPcmBuffer,System.UInt32,Foundation.NSError@)
M:AVFoundation.AVAudioFile.WriteFromBuffer(AVFoundation.AVAudioPcmBuffer,Foundation.NSError@)
@ -56279,6 +56281,7 @@ P:AVFoundation.AVAudioEnvironmentDistanceAttenuationParameters.RolloffFactor
P:AVFoundation.AVAudioEnvironmentNode.ApplicableRenderingAlgorithms
P:AVFoundation.AVAudioEnvironmentNode.DistanceAttenuationParameters
P:AVFoundation.AVAudioEnvironmentNode.ListenerAngularOrientation
P:AVFoundation.AVAudioEnvironmentNode.ListenerHeadTrackingEnabled
P:AVFoundation.AVAudioEnvironmentNode.ListenerPosition
P:AVFoundation.AVAudioEnvironmentNode.ListenerVectorOrientation
P:AVFoundation.AVAudioEnvironmentNode.NextAvailableInputBus
@ -56300,6 +56303,7 @@ P:AVFoundation.AVAudioEnvironmentReverbParameters.FilterParameters
P:AVFoundation.AVAudioEnvironmentReverbParameters.Level
P:AVFoundation.AVAudioFile.FileFormat
P:AVFoundation.AVAudioFile.FramePosition
P:AVFoundation.AVAudioFile.IsOpen
P:AVFoundation.AVAudioFile.Length
P:AVFoundation.AVAudioFile.ProcessingFormat
P:AVFoundation.AVAudioFile.Url

Просмотреть файл

@ -313,7 +313,6 @@
!missing-enum! AVPlayerLooperItemOrdering not bound
!missing-enum! AVSpeechSynthesisPersonalVoiceAuthorizationStatus not bound
!missing-enum! AVSpeechSynthesisVoiceTraits not bound
!missing-enum-value! AVAudioSessionInterruptionReason native value AVAudioSessionInterruptionReasonRouteDisconnected = 4 not bound
!missing-field! AVAssetExportPresetMVHEVC1440x1440 not bound
!missing-field! AVAssetExportPresetMVHEVC960x960 not bound
!missing-field! AVAudioApplicationInputMuteStateChangeNotification not bound
@ -580,10 +579,6 @@
!missing-selector! AVAssetWriterInputCaptionAdaptor::appendCaptionGroup: not bound
!missing-selector! AVAssetWriterInputCaptionAdaptor::assetWriterInput not bound
!missing-selector! AVAssetWriterInputCaptionAdaptor::initWithAssetWriterInput: not bound
!missing-selector! AVAudioEnvironmentNode::isListenerHeadTrackingEnabled not bound
!missing-selector! AVAudioEnvironmentNode::setListenerHeadTrackingEnabled: not bound
!missing-selector! AVAudioFile::close not bound
!missing-selector! AVAudioFile::isOpen not bound
!missing-selector! AVCaption::animation not bound
!missing-selector! AVCaption::backgroundColorAtIndex:range: not bound
!missing-selector! AVCaption::decorationAtIndex:range: not bound

Просмотреть файл

@ -36,9 +36,6 @@
!extra-enum-value! Managed value -11837 for AVError.DeviceIsNotAvailableInBackground not found in native headers
!extra-enum-value! Managed value -11847 for AVError.OperationInterrupted not found in native headers
# not used on macOS
!missing-enum! AVAudioSessionInterruptionReason not bound
## https://github.com/xamarin/xamarin-macios/issues/16229 prevents crashing instead of return null
## so these selectors have been bound manually
!missing-selector! AVAudioPlayer::initWithContentsOfURL:error: not bound

Просмотреть файл

@ -534,10 +534,6 @@
!missing-selector! AVAssetImageGenerator::setDynamicRangePolicy: not bound
!missing-selector! AVAssetResourceLoader::sendsCommonMediaClientDataAsHTTPHeaders not bound
!missing-selector! AVAssetResourceLoader::setSendsCommonMediaClientDataAsHTTPHeaders: not bound
!missing-selector! AVAudioEnvironmentNode::isListenerHeadTrackingEnabled not bound
!missing-selector! AVAudioEnvironmentNode::setListenerHeadTrackingEnabled: not bound
!missing-selector! AVAudioFile::close not bound
!missing-selector! AVAudioFile::isOpen not bound
!missing-selector! AVCaptureDevice::isAutoVideoFrameRateEnabled not bound
!missing-selector! AVCaptureDevice::isBackgroundReplacementActive not bound
!missing-selector! AVCaptureDevice::setAutoVideoFrameRateEnabled: not bound

Просмотреть файл

@ -4,9 +4,6 @@
# as per the header comments, the following enum has to be ignored on tvOS
!missing-enum! AVAudioSessionIOType not bound
# not used on tvOS
!missing-enum! AVAudioSessionInterruptionReason not bound
### deprecated in iOS8
!missing-protocol-member! AVAudioPlayerDelegate::audioPlayerEndInterruption:withFlags: not found

Просмотреть файл

@ -1164,10 +1164,6 @@
!missing-selector! AVAssetImageGenerator::setDynamicRangePolicy: not bound
!missing-selector! AVAssetResourceLoader::sendsCommonMediaClientDataAsHTTPHeaders not bound
!missing-selector! AVAssetResourceLoader::setSendsCommonMediaClientDataAsHTTPHeaders: not bound
!missing-selector! AVAudioEnvironmentNode::isListenerHeadTrackingEnabled not bound
!missing-selector! AVAudioEnvironmentNode::setListenerHeadTrackingEnabled: not bound
!missing-selector! AVAudioFile::close not bound
!missing-selector! AVAudioFile::isOpen not bound
!missing-selector! AVCaptureDevice::isAutoVideoFrameRateEnabled not bound
!missing-selector! AVCaptureDevice::isBackgroundReplacementActive not bound
!missing-selector! AVCaptureDevice::setAutoVideoFrameRateEnabled: not bound

Просмотреть файл

@ -313,7 +313,6 @@
!missing-enum! AVPlayerLooperItemOrdering not bound
!missing-enum! AVSpeechSynthesisPersonalVoiceAuthorizationStatus not bound
!missing-enum! AVSpeechSynthesisVoiceTraits not bound
!missing-enum-value! AVAudioSessionInterruptionReason native value AVAudioSessionInterruptionReasonRouteDisconnected = 4 not bound
!missing-field! AVAssetExportPresetMVHEVC1440x1440 not bound
!missing-field! AVAssetExportPresetMVHEVC960x960 not bound
!missing-field! AVAudioApplicationInputMuteStateChangeNotification not bound
@ -580,10 +579,6 @@
!missing-selector! AVAssetWriterInputCaptionAdaptor::appendCaptionGroup: not bound
!missing-selector! AVAssetWriterInputCaptionAdaptor::assetWriterInput not bound
!missing-selector! AVAssetWriterInputCaptionAdaptor::initWithAssetWriterInput: not bound
!missing-selector! AVAudioEnvironmentNode::isListenerHeadTrackingEnabled not bound
!missing-selector! AVAudioEnvironmentNode::setListenerHeadTrackingEnabled: not bound
!missing-selector! AVAudioFile::close not bound
!missing-selector! AVAudioFile::isOpen not bound
!missing-selector! AVCaption::animation not bound
!missing-selector! AVCaption::backgroundColorAtIndex:range: not bound
!missing-selector! AVCaption::decorationAtIndex:range: not bound

Просмотреть файл

@ -41,7 +41,6 @@
!extra-enum-value! Managed value -11847 for AVError.OperationInterrupted not found in native headers
# not used on macOS
!missing-enum! AVAudioSessionInterruptionReason not bound
!missing-protocol! AVVideoCompositionInstruction not bound
!incorrect-protocol-member! AVAssetResourceLoaderDelegate::resourceLoader:shouldWaitForLoadingOfRequestedResource: is OPTIONAL and should NOT be abstract
!unknown-native-enum! AVAudioSessionFlags bound

Просмотреть файл

@ -534,10 +534,6 @@
!missing-selector! AVAssetImageGenerator::setDynamicRangePolicy: not bound
!missing-selector! AVAssetResourceLoader::sendsCommonMediaClientDataAsHTTPHeaders not bound
!missing-selector! AVAssetResourceLoader::setSendsCommonMediaClientDataAsHTTPHeaders: not bound
!missing-selector! AVAudioEnvironmentNode::isListenerHeadTrackingEnabled not bound
!missing-selector! AVAudioEnvironmentNode::setListenerHeadTrackingEnabled: not bound
!missing-selector! AVAudioFile::close not bound
!missing-selector! AVAudioFile::isOpen not bound
!missing-selector! AVCaptureDevice::isAutoVideoFrameRateEnabled not bound
!missing-selector! AVCaptureDevice::isBackgroundReplacementActive not bound
!missing-selector! AVCaptureDevice::setAutoVideoFrameRateEnabled: not bound

Просмотреть файл

@ -9,7 +9,6 @@
!unknown-field! AVAssetDownloadTaskMinimumRequiredMediaBitrateKey bound
# not used on tvOS
!missing-enum! AVAudioSessionInterruptionReason not bound
!missing-protocol! AVVideoCompositionInstruction not bound
!incorrect-protocol-member! AVAssetResourceLoaderDelegate::resourceLoader:shouldWaitForLoadingOfRequestedResource: is OPTIONAL and should NOT be abstract
!missing-protocol-conformance! AVVideoCompositionInstruction should conform to AVVideoCompositionInstruction

Просмотреть файл

@ -1164,10 +1164,6 @@
!missing-selector! AVAssetImageGenerator::setDynamicRangePolicy: not bound
!missing-selector! AVAssetResourceLoader::sendsCommonMediaClientDataAsHTTPHeaders not bound
!missing-selector! AVAssetResourceLoader::setSendsCommonMediaClientDataAsHTTPHeaders: not bound
!missing-selector! AVAudioEnvironmentNode::isListenerHeadTrackingEnabled not bound
!missing-selector! AVAudioEnvironmentNode::setListenerHeadTrackingEnabled: not bound
!missing-selector! AVAudioFile::close not bound
!missing-selector! AVAudioFile::isOpen not bound
!missing-selector! AVCaptureDevice::isAutoVideoFrameRateEnabled not bound
!missing-selector! AVCaptureDevice::isBackgroundReplacementActive not bound
!missing-selector! AVCaptureDevice::setAutoVideoFrameRateEnabled: not bound

Просмотреть файл

@ -30,7 +30,6 @@
!missing-enum! AVSpeechSynthesisMarkerMark not bound
!missing-enum! AVSpeechSynthesisPersonalVoiceAuthorizationStatus not bound
!missing-enum! AVSpeechSynthesisVoiceTraits not bound
!missing-enum-value! AVAudioSessionInterruptionReason native value AVAudioSessionInterruptionReasonRouteDisconnected = 4 not bound
!missing-enum-value! AVError native value AVErrorAirPlayReceiverTemporarilyUnavailable = -11882 not bound
!missing-enum-value! AVError native value AVErrorEncodeFailed = -11883 not bound
!missing-enum-value! AVError native value AVErrorFailedToLoadSampleData = -11881 not bound
@ -284,8 +283,6 @@
!missing-protocol-member! AVContentKeySessionDelegate::contentKeySession:didProvideContentKeyRequests:forInitializationData: not found
!missing-selector! +AVAssetVariantQualifier::predicateForAudioSampleRate:mediaSelectionOption:operatorType: not bound
!missing-selector! +AVMetricEventStream::eventStream not bound
!missing-selector! AVAudioFile::close not bound
!missing-selector! AVAudioFile::isOpen not bound
!missing-selector! AVContentKey::revoke not bound
!missing-selector! AVMetricContentKeyRequestEvent::contentKeySpecifier not bound
!missing-selector! AVMetricContentKeyRequestEvent::isClientInitiated not bound