Skip to content
8 changes: 8 additions & 0 deletions src/AudioToolbox/AudioType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ public enum AudioFormatType : uint { // UInt32 in AudioStreamBasicDescription --
LinearPCM = 0x6c70636d,
/// <summary>AC-3 codec.</summary>
AC3 = 0x61632d33,
#if !XAMCORE_5_0
/// <summary>CAC-3 codec.</summary>
[Obsolete ("Use 'AC3_60958' instead.")]
[EditorBrowsable (EditorBrowsableState.Never)]
CAC3 = 0x63616333,
#endif
/// <summary>The AC-3 codec, packaged to be compliant with an IEC 60958-compliant digital audio interface.</summary>
AC3_60958 = 0x63616333, // 'cac3'
/// <summary>Apple's IMA 4:1 ADPCM codec.</summary>
AppleIMA4 = 0x696d6134,
/// <summary>MPEG-4 AAC codec.</summary>
Expand Down Expand Up @@ -140,6 +146,8 @@ public enum AudioFormatType : uint { // UInt32 in AudioStreamBasicDescription --
[SupportedOSPlatform ("tvos18.0")]
[SupportedOSPlatform ("maccatalyst18.0")]
Apac = 0x61706163, // 'apac'

// any new entries here might need new entries in the CMMediaSubType enum as well
}

/// <summary>Flags describing the stream in the <see cref="AudioToolbox.AudioStreamBasicDescription" />.</summary>
Expand Down
Loading
Loading