Skip to content

Commit d40333d

Browse files
authored
[AVFoundation] Implement up to Xcode 16.4 beta 1. (#22753)
1 parent 646195e commit d40333d

File tree

5 files changed

+37
-45
lines changed

5 files changed

+37
-45
lines changed

src/avfoundation.cs

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23606,9 +23606,16 @@ interface AVAssetVariantQualifier : NSCopying {
2360623606
[Export ("assetVariantQualifierWithVariant:")]
2360723607
AVAssetVariantQualifier Create (AVAssetVariant variant);
2360823608

23609+
#if !XAMCORE_5_0
23610+
[Obsolete ("Use 'GetPredicateForChannelCount' instead.")]
23611+
[Static]
23612+
[Export ("predicateForChannelCount:mediaSelectionOption:operatorType:")]
23613+
NSPredicate GetPredicate (nint channelCount, [NullAllowed] AVMediaSelectionOption mediaSelectionOption, NSPredicateOperatorType operatorType);
23614+
#endif // XAMCORE_5_0
23615+
2360923616
[Static]
2361023617
[Export ("predicateForChannelCount:mediaSelectionOption:operatorType:")]
23611-
NSPredicate GetPredicate (nint channelCount, AVMediaSelectionOption mediaSelectionOption, NSPredicateOperatorType operatorType);
23618+
NSPredicate GetPredicateForChannelCount (nint channelCount, [NullAllowed] AVMediaSelectionOption mediaSelectionOption, NSPredicateOperatorType operatorType);
2361223619

2361323620
[Internal]
2361423621
[Static]
@@ -23623,22 +23630,47 @@ interface AVAssetVariantQualifier : NSCopying {
2362323630
[TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
2362423631
[Static]
2362523632
[Export ("predicateForBinauralAudio:mediaSelectionOption:")]
23626-
NSPredicate GetPredicateForBinauralAudio (bool isBinauralAudio, AVMediaSelectionOption mediaSelectionOption);
23633+
NSPredicate GetPredicateForBinauralAudio (bool isBinauralAudio, [NullAllowed] AVMediaSelectionOption mediaSelectionOption);
2362723634

2362823635
[TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
2362923636
[Static]
2363023637
[Export ("predicateForImmersiveAudio:mediaSelectionOption:")]
23631-
NSPredicate GetPredicateForImmersiveAudio (bool isImmersiveAudio, AVMediaSelectionOption mediaSelectionOption);
23638+
NSPredicate GetPredicateForImmersiveAudio (bool isImmersiveAudio, [NullAllowed] AVMediaSelectionOption mediaSelectionOption);
2363223639

2363323640
[TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
2363423641
[Static]
2363523642
[Export ("predicateForDownmixAudio:mediaSelectionOption:")]
23636-
NSPredicate GetPredicateForDownmixAudio (bool isDownmixAudio, AVMediaSelectionOption mediaSelectionOption);
23643+
NSPredicate GetPredicateForDownmixAudio (bool isDownmixAudio, [NullAllowed] AVMediaSelectionOption mediaSelectionOption);
2363723644

2363823645
[MacCatalyst (18, 0), TV (18, 0), Mac (15, 0), iOS (18, 0)]
2363923646
[Static]
2364023647
[Export ("predicateForAudioSampleRate:mediaSelectionOption:operatorType:")]
23641-
NSPredicate GetPredicateForAudioSampleRate (double sampleRate, AVMediaSelectionOption mediaSelectionOption, NSPredicateOperatorType operatorType);
23648+
NSPredicate GetPredicateForAudioSampleRate (double sampleRate, [NullAllowed] AVMediaSelectionOption mediaSelectionOption, NSPredicateOperatorType operatorType);
23649+
23650+
[Static]
23651+
[MacCatalyst (18, 5), TV (18, 5), Mac (15, 5), iOS (18, 5)]
23652+
[Export ("predicateForChannelCount:operatorType:")]
23653+
NSPredicate GetPredicateForChannelCount (nint channelCount, NSPredicateOperatorType operatorType);
23654+
23655+
[Static]
23656+
[MacCatalyst (18, 5), TV (18, 5), Mac (15, 5), iOS (18, 5)]
23657+
[Export ("predicateForBinauralAudio:")]
23658+
NSPredicate GetPredicateForBinauralAudio (bool isBinauralAudio);
23659+
23660+
[Static]
23661+
[MacCatalyst (18, 5), TV (18, 5), Mac (15, 5), iOS (18, 5)]
23662+
[Export ("predicateForImmersiveAudio:")]
23663+
NSPredicate GetPredicateForImmersiveAudio (bool isImmersiveAudio);
23664+
23665+
[Static]
23666+
[MacCatalyst (18, 5), TV (18, 5), Mac (15, 5), iOS (18, 5)]
23667+
[Export ("predicateForDownmixAudio:")]
23668+
NSPredicate GetPredicateForDownmixAudio (bool isDownmixAudio);
23669+
23670+
[Static]
23671+
[MacCatalyst (18, 5), TV (18, 5), Mac (15, 5), iOS (18, 5)]
23672+
[Export ("predicateForAudioSampleRate:operatorType:")]
23673+
NSPredicate GetPredicateForAudioSampleRate (double sampleRate, NSPredicateOperatorType operatorType);
2364223674
}
2364323675

2364423676
[TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)]

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AVFoundation.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-AVFoundation.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/macOS-AVFoundation.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/tvOS-AVFoundation.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)