35
35
using System ;
36
36
using System . Text ;
37
37
using System . Collections . Generic ;
38
+ using System . ComponentModel ;
38
39
using System . Runtime . CompilerServices ;
39
40
using System . Runtime . InteropServices ;
40
41
using System . Diagnostics ;
@@ -81,7 +82,13 @@ public enum AudioFormatType : uint { // UInt32 in AudioStreamBasicDescription --
81
82
DVIIntelIMA = 0x6d730011 ,
82
83
MicrosoftGSM = 0x6d730031 ,
83
84
AES3 = 0x61657333 , // 'aes3'
85
+ #if ! XAMCORE_5_0
86
+ [ Obsolete ( "Use 'EnhancedAC3' instead." ) ]
87
+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
84
88
EnhancedAES3 = 0x65632d33 , // 'ec-3'
89
+ #endif
90
+ /// <summary>Enhanced AC-3.</summary>
91
+ EnhancedAC3 = 0x65632d33 , // 'ec-3'
85
92
Flac = 0x666c6163 , // 'flac'
86
93
#if NET
87
94
[ SupportedOSPlatform ( "ios13.0" ) ]
@@ -95,6 +102,16 @@ public enum AudioFormatType : uint { // UInt32 in AudioStreamBasicDescription --
95
102
#endif
96
103
LatmInLoas = 0x6c6f6173 , // 'loas'
97
104
Opus = 0x6f707573 , // 'opus'
105
+ /// <summary>Apple Positional Audio Codec.</summary>
106
+ #if NET
107
+ [ SupportedOSPlatform ( "ios18.0" ) ]
108
+ [ SupportedOSPlatform ( "macos15.0" ) ]
109
+ [ SupportedOSPlatform ( "tvos18.0" ) ]
110
+ [ SupportedOSPlatform ( "maccatalyst18.0" ) ]
111
+ #else
112
+ [ NoWatch , iOS ( 18 , 0 ) , TV ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) , Mac ( 15 , 0 ) ]
113
+ #endif
114
+ Apac = 0x61706163 , // 'apac'
98
115
}
99
116
100
117
[ Flags ]
@@ -921,6 +938,46 @@ public enum AudioChannelLayoutTag : uint { // UInt32 AudioChannelLayoutTag
921
938
#endif
922
939
Ogg_7_1 = ( 215U << 16 ) | 8 ,
923
940
941
+ #if NET
942
+ [ SupportedOSPlatform ( "ios18.0" ) ]
943
+ [ SupportedOSPlatform ( "maccatalyst18.0" ) ]
944
+ [ SupportedOSPlatform ( "macos15.0" ) ]
945
+ [ SupportedOSPlatform ( "tvos18.0" ) ]
946
+ #else
947
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
948
+ #endif
949
+ MPEG_5_0_E = ( 216U << 16 ) | 5 ,
950
+
951
+ #if NET
952
+ [ SupportedOSPlatform ( "ios18.0" ) ]
953
+ [ SupportedOSPlatform ( "maccatalyst18.0" ) ]
954
+ [ SupportedOSPlatform ( "macos15.0" ) ]
955
+ [ SupportedOSPlatform ( "tvos18.0" ) ]
956
+ #else
957
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
958
+ #endif
959
+ MPEG_5_1_E = ( 217U << 16 ) | 6 ,
960
+
961
+ #if NET
962
+ [ SupportedOSPlatform ( "ios18.0" ) ]
963
+ [ SupportedOSPlatform ( "maccatalyst18.0" ) ]
964
+ [ SupportedOSPlatform ( "macos15.0" ) ]
965
+ [ SupportedOSPlatform ( "tvos18.0" ) ]
966
+ #else
967
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
968
+ #endif
969
+ MPEG_6_1_B = ( 218U << 16 ) | 7 ,
970
+
971
+ #if NET
972
+ [ SupportedOSPlatform ( "ios18.0" ) ]
973
+ [ SupportedOSPlatform ( "maccatalyst18.0" ) ]
974
+ [ SupportedOSPlatform ( "macos15.0" ) ]
975
+ [ SupportedOSPlatform ( "tvos18.0" ) ]
976
+ #else
977
+ [ Watch ( 11 , 0 ) , TV ( 18 , 0 ) , Mac ( 15 , 0 ) , iOS ( 18 , 0 ) , MacCatalyst ( 18 , 0 ) ]
978
+ #endif
979
+ MPEG_7_1_D = ( 219U << 16 ) | 8 ,
980
+
924
981
Unknown = 0xFFFF0000 // needs to be ORed with the actual number of channels
925
982
}
926
983
0 commit comments