Skip to content

Commit 015ca7d

Browse files
authored
[AVFoundation] Update bindings to Xcode 26 beta 1-6. (#23437)
1 parent fd31b9c commit 015ca7d

File tree

12 files changed

+1119
-901
lines changed

12 files changed

+1119
-901
lines changed

src/AVFoundation/AVAudioSettings.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,48 @@ public AudioChannelLayout ChannelLayout {
324324
}
325325
}
326326

327+
/// <summary>Represents the dynamic range control configuration.</summary>
328+
[SupportedOSPlatform ("ios26.0")]
329+
[SupportedOSPlatform ("maccatalyst26.0")]
330+
[SupportedOSPlatform ("macos26.0")]
331+
[SupportedOSPlatform ("tvos26.0")]
332+
public AVAudioDynamicRangeControlConfiguration? DynamicRangeControlConfiguration {
333+
get {
334+
return (AVAudioDynamicRangeControlConfiguration?) (long?) GetNIntValue (AVAudioSettings.AVEncoderDynamicRangeControlConfigurationKey);
335+
}
336+
set {
337+
SetNumberValue (AVAudioSettings.AVEncoderDynamicRangeControlConfigurationKey, (nint?) (long?) value);
338+
}
339+
}
340+
341+
/// <summary>Represents the content source.</summary>
342+
[SupportedOSPlatform ("ios26.0")]
343+
[SupportedOSPlatform ("maccatalyst26.0")]
344+
[SupportedOSPlatform ("macos26.0")]
345+
[SupportedOSPlatform ("tvos26.0")]
346+
public AVAudioContentSource? ContentSource {
347+
get {
348+
return (AVAudioContentSource?) (long?) GetNIntValue (AVAudioSettings.AVEncoderContentSourceKey);
349+
}
350+
set {
351+
SetNumberValue (AVAudioSettings.AVEncoderContentSourceKey, (nint?) (long?) value);
352+
}
353+
}
354+
355+
/// <summary>The frequency of audio synchronization packets.</summary>
356+
/// <remarks>This value must be greater than 2. The recommended value is 75.</remarks>
357+
[SupportedOSPlatform ("ios26.0")]
358+
[SupportedOSPlatform ("maccatalyst26.0")]
359+
[SupportedOSPlatform ("macos26.0")]
360+
[SupportedOSPlatform ("tvos26.0")]
361+
public nint? AspFrequencyKey {
362+
get {
363+
return GetNIntValue (AVAudioSettings.AVEncoderAspFrequencyKey);
364+
}
365+
set {
366+
SetNumberValue (AVAudioSettings.AVEncoderAspFrequencyKey, value);
367+
}
368+
}
327369
#endif
328370
}
329371
}

src/AVFoundation/AVMetadataObject.cs

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

src/AVFoundation/Enums.cs

Lines changed: 104 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ public enum AVError : long {
378378
ToneMappingFailed = -11885,
379379
MediaExtensionDisabled = -11886,
380380
MediaExtensionConflict = -11887,
381+
ContentKeyRequestPlaybackDestinationDoesNotSupportDeviceIdentifierRandomization = -11888,
382+
ContentKeyInvalid = -11889,
381383
}
382384

383385
/// <summary>An enumeration whose values specify the behavior of the player when it finishes playing.</summary>
@@ -606,6 +608,8 @@ public enum AVAudioSessionCategoryOptions : ulong {
606608
[iOS (14, 5)]
607609
[MacCatalyst (14, 5)]
608610
OverrideMutedMicrophoneInterruption = 128,
611+
[iOS (26, 0), NoTV, NoMacCatalyst, NoMac]
612+
BluetoothHighQualityRecording = 1uL << 19,
609613
}
610614

611615
/// <summary>An enumeration whose values specify the beginning and ending of an audio interruption.</summary>
@@ -997,6 +1001,8 @@ public enum AVCaptureSessionInterruptionReason : long {
9971001
/// <summary>To be added.</summary>
9981002
[MacCatalyst (14, 0)]
9991003
VideoDeviceNotAvailableDueToSystemPressure = 5,
1004+
[MacCatalyst (26, 0), TV (26, 0), NoMac, iOS (26, 0)]
1005+
SensitiveContentMitigationActivated = 6,
10001006
}
10011007

10021008
/// <summary>Enumerates the quality of speech synthesis.</summary>
@@ -1346,8 +1352,8 @@ public enum AVAssetExportSessionPreset {
13461352
[Field ("AVAssetExportPresetHEVC3840x2160WithAlpha")]
13471353
Hevc3840x2160WithAlpha,
13481354

1349-
[NoTV, NoiOS, Mac (12, 1)]
1350-
[NoMacCatalyst]
1355+
[NoTV, iOS (26, 0), Mac (12, 1)]
1356+
[MacCatalyst (26, 0)]
13511357
[Field ("AVAssetExportPresetHEVC7680x4320")]
13521358
Hevc7680x4320,
13531359

@@ -1363,6 +1369,19 @@ public enum AVAssetExportSessionPreset {
13631369
[NoTV, Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
13641370
[Field ("AVAssetExportPresetMVHEVC1440x1440")]
13651371
MvHevc1440x1440,
1372+
1373+
[MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)]
1374+
[Field ("AVAssetExportPresetHEVC4320x2160")]
1375+
Hevc4320x2160,
1376+
1377+
[MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)]
1378+
[Field ("AVAssetExportPresetMVHEVC4320x4320")]
1379+
MvHevc4320x4320,
1380+
1381+
[MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)]
1382+
[Field ("AVAssetExportPresetMVHEVC7680x7680")]
1383+
MvHevc7680x7680,
1384+
13661385
}
13671386

13681387
[MacCatalyst (13, 1)]
@@ -1405,8 +1424,8 @@ public enum AVOutputSettingsPreset {
14051424

14061425
[NoTV]
14071426
[Mac (12, 1)]
1408-
[NoiOS]
1409-
[NoMacCatalyst]
1427+
[iOS (26, 0)]
1428+
[MacCatalyst (26, 0)]
14101429
[Field ("AVOutputSettingsPresetHEVC7680x4320")]
14111430
PresetHevc7680x4320 = 15,
14121431

@@ -1417,6 +1436,18 @@ public enum AVOutputSettingsPreset {
14171436
[TV (17, 0), MacCatalyst (17, 0), Mac (14, 0), iOS (17, 0)]
14181437
[Field ("AVOutputSettingsPresetMVHEVC1440x1440")]
14191438
PresetMvHevc1440x1440 = 17,
1439+
1440+
[MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)]
1441+
[Field ("AVOutputSettingsPresetHEVC4320x2160")]
1442+
Hevc4320x2160 = 18,
1443+
1444+
[MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)]
1445+
[Field ("AVOutputSettingsPresetMVHEVC4320x4320")]
1446+
MvHevc4320x4320 = 19,
1447+
1448+
[MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)]
1449+
[Field ("AVOutputSettingsPresetMVHEVC7680x7680")]
1450+
MvHevc7680x7680 = 20,
14201451
}
14211452

14221453
/// <summary>Enumerates depth data accuracy types.</summary>
@@ -1571,6 +1602,10 @@ public enum AVAssetWriterInputMediaDataLocation {
15711602
/// <summary>To be added.</summary>
15721603
[Field ("AVAssetWriterInputMediaDataLocationBeforeMainMediaDataNotInterleaved")]
15731604
BeforeMainMediaDataNotInterleaved = 1,
1605+
1606+
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
1607+
[Field ("AVAssetWriterInputMediaDataLocationSparselyInterleavedWithMainMediaData")]
1608+
SparselyInterleavedWithMainMediaData = 2,
15741609
}
15751610

15761611
/// <summary>Constants for known video codecs.</summary>
@@ -1661,6 +1696,9 @@ public enum AVCaptureSystemPressureFactors : ulong {
16611696
[MacCatalyst (13, 1)]
16621697
[Native]
16631698
[Flags]
1699+
[Deprecated (PlatformName.MacCatalyst, 26, 0, "Use 'AVPlayer.EligibleForHdrpPlayback' instead.")]
1700+
[Deprecated (PlatformName.iOS, 26, 0, "Use 'AVPlayer.EligibleForHdrpPlayback' instead.")]
1701+
[Deprecated (PlatformName.TvOS, 26, 0, "Use 'AVPlayer.EligibleForHdrpPlayback' instead.")]
16641702
public enum AVPlayerHdrMode : long {
16651703
/// <summary>To be added.</summary>
16661704
Hlg = 0x1,
@@ -2180,6 +2218,14 @@ enum AVAssetPlaybackConfigurationOption {
21802218
[MacCatalyst (18, 0), TV (18, 0), Mac (15, 0), iOS (18, 0)]
21812219
[Field ("AVAssetPlaybackConfigurationOptionSpatialVideo")]
21822220
SpatialVideo,
2221+
2222+
[MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)]
2223+
[Field ("AVAssetPlaybackConfigurationOptionNonRectilinearProjection")]
2224+
NonRectilinearProjection,
2225+
2226+
[NoMacCatalyst, NoTV, Mac (26, 0), NoiOS]
2227+
[Field ("AVAssetPlaybackConfigurationOptionAppleImmersiveVideo")]
2228+
AppleImmersiveVideo,
21832229
}
21842230

21852231
[TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)]
@@ -2207,4 +2253,58 @@ public enum CMTagCollectionVideoOutputPreset : uint {
22072253
Monoscopic,
22082254
Stereoscopic,
22092255
}
2256+
2257+
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
2258+
[Native]
2259+
public enum AVPlayerNetworkResourcePriority : long {
2260+
Default = 0,
2261+
Low = 1,
2262+
High = 2,
2263+
}
2264+
2265+
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
2266+
[Native]
2267+
public enum AVPlayerInterstitialEventSkippableEventState : long {
2268+
NotSkippable = 0,
2269+
NotYetEligible = 1,
2270+
Eligible = 2,
2271+
NoLongerEligible = 3,
2272+
}
2273+
2274+
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
2275+
[Native]
2276+
public enum AVAudioContentSource : long {
2277+
Unspecified = -1,
2278+
Reserved = 0,
2279+
AppleCaptureTraditional = 1,
2280+
AppleCaptureSpatial = 2,
2281+
AppleCaptureSpatialEnhanced = 3,
2282+
AppleMusicTraditional = 4,
2283+
AppleMusicSpatial = 5,
2284+
AppleAVTraditionalOffline = 6,
2285+
AppleAVSpatialOffline = 7,
2286+
AppleAVTraditionalLive = 8,
2287+
AppleAVSpatialLive = 9,
2288+
ApplePassthrough = 10,
2289+
CaptureTraditional = 33,
2290+
CaptureSpatial = 34,
2291+
CaptureSpatial_Enhanced = 35,
2292+
MusicTraditional = 36,
2293+
MusicSpatial = 37,
2294+
AVTraditionalOffline = 38,
2295+
AVSpatialOffline = 39,
2296+
AVTraditionalLive = 40,
2297+
AVSpatialLive = 41,
2298+
Passthrough = 42,
2299+
}
2300+
2301+
[MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)]
2302+
[Native]
2303+
public enum AVAudioDynamicRangeControlConfiguration : long {
2304+
None = 0,
2305+
Music = 1,
2306+
Speech = 2,
2307+
Movie = 3,
2308+
Capture = 4,
2309+
}
22102310
}

0 commit comments

Comments
 (0)