-
Notifications
You must be signed in to change notification settings - Fork 576
[CoreAudio] Updates for Xcode13 Beta 5 #12465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1447fba
76e5722
6baedc2
7583f57
1a79ecd
f6aaa35
6b3b8fb
b378ba6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,7 @@ | |
| using System.Collections.Generic; | ||
| using System.Text; | ||
| using System.Runtime.InteropServices; | ||
| using System.Runtime.Versioning; | ||
| using System.Threading; | ||
| using AudioToolbox; | ||
| using ObjCRuntime; | ||
|
|
@@ -189,7 +190,20 @@ 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.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' | ||
| #if !NET | ||
| [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoTV, NoWatch] | ||
| #else | ||
| [SupportedOSPlatform ("ios15.0")] | ||
| [SupportedOSPlatform ("maccatalyst15.0")] | ||
| [SupportedOSPlatform ("macos12.0")] | ||
| [UnsupportedOSPlatform ("tvos")] | ||
| #endif | ||
| ProcessIsMain = 1835100526, // 'main' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAIK we should say when it was added.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With a comment? |
||
| IsInitingOrExiting = 1768845172, // 'inot' | ||
| UserIDChanged = 1702193508, // 'euid' | ||
| ProcessIsAudible = 1886221684, // 'pmut' | ||
|
|
@@ -202,6 +216,15 @@ public enum AudioObjectPropertySelector : uint | |
| ActualSampleRate = 1634955892,// 'asrt', | ||
| ClockDevice = 1634755428, // 'apcd', | ||
| IOThreadOSWorkgroup = 1869838183, // 'oswg' | ||
| #if !NET | ||
| [iOS (15,0), MacCatalyst (15,0), Mac (12,0), NoTV, NoWatch] | ||
| #else | ||
| [SupportedOSPlatform ("ios15.0")] | ||
| [SupportedOSPlatform ("maccatalyst15.0")] | ||
| [SupportedOSPlatform ("macos12.0")] | ||
| [UnsupportedOSPlatform ("tvos")] | ||
| #endif | ||
| ProcessMute = 1634758765, // 'appm' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ needs availability attributes - for both
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if it's not available in tvOS then it needs otherwise it implies availability for tvOS 9 (for legacy) or tvOS 10 (for net6) |
||
| } | ||
|
|
||
| public enum AudioObjectPropertyScope : uint | ||
|
|
@@ -214,7 +237,11 @@ public enum AudioObjectPropertyScope : uint | |
|
|
||
| public enum AudioObjectPropertyElement : uint | ||
| { | ||
| #if !XAMCORE_4_0 | ||
| [Obsolete ("Use the 'Main' element instead.")] | ||
|
spouliot marked this conversation as resolved.
|
||
| Master = 0, // 0 | ||
| #endif | ||
| Main = 0, // 0 | ||
| } | ||
| #endif // !XAMCORE_3_0 || MONOMAC | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are missing the deprecated attrs:
you will have to add them for each of the supported platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unlike the other enum this one has a different value so it's useful to know when it should be avoided