Skip to content

Commit

Permalink
Manual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ Lambert committed Aug 19, 2021
1 parent 76e5722 commit 6baedc2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions src/AudioUnit/AUEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,14 @@ public enum AudioObjectPropertySelector : uint
TranslateUIDToBox = 1969841250, // 'uidb'
ClockDeviceList = 1668049699, //'clk#'
TranslateUidToClockDevice = 1969841251, // 'uidc',
[Deprecated (PlatformName.iOS, 15,0, message : "Use the 'ProcessIsMain' element instead.")]
[Deprecated (PlatformName.TvOS, 15,0, message : "Use the 'ProcessIsMain' element instead.")]
[Deprecated (PlatformName.WatchOS, 8,0, message : "Use the 'ProcessIsMain' element instead.")]
[Deprecated (PlatformName.MacCatalyst, 15,0, message : "Use the 'ProcessIsMain' element instead.")]
[Deprecated (PlatformName.MacOSX, 12,0, message : "Use the 'ProcessIsMain' element instead.")]
[Obsolete ("Use the 'ProcessIsMain' element instead.")]
ProcessIsMaster = 1835103092, // 'mast'
// ProcessIsMain - added Xcode13 Beta 1
ProcessIsMain = 1835100526, // 'main'
IsInitingOrExiting = 1768845172, // 'inot'
UserIDChanged = 1702193508, // 'euid'
Expand All @@ -202,6 +208,14 @@ public enum AudioObjectPropertySelector : uint
ActualSampleRate = 1634955892,// 'asrt',
ClockDevice = 1634755428, // 'apcd',
IOThreadOSWorkgroup = 1869838183, // 'oswg'
#if !NET
[iOS (15,0), TV (15,0), MacCatalyst (15,0), Mac (12,0), Watch (8,0)]
#else
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("macos12.0")]
#endif
ProcessMute = 1634758765, // 'appm'
}

Expand All @@ -215,8 +229,10 @@ public enum AudioObjectPropertyScope : uint

public enum AudioObjectPropertyElement : uint
{
#if !XAMCORE_4_0
[Obsolete ("Use the 'Main' element instead.")]
Master = 0, // 0
#endif
Main = 0, // 0
}
#endif // !XAMCORE_3_0 || MONOMAC
Expand Down
4 changes: 2 additions & 2 deletions src/AudioUnit/AudioUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ public uint GetCurrentDevice (AudioUnitScopeType scope, uint audioUnitElement =
[Obsolete ("This API is not available on iOS.")]
#endif
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
[MacCatalyst (15,0)]
#endif
public static uint GetCurrentInputDevice ()
{
Expand Down

0 comments on commit 6baedc2

Please sign in to comment.