Skip to content
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

[CoreAudio] Updates for Xcode13 Beta 5 #12465

Merged
merged 8 commits into from Aug 30, 2021

Conversation

tj-devel709
Copy link
Contributor

There were a few changes in the headers that I believe are not bound by us:

  • kAudioAggregateDevicePropertyMasterSubDevice -> kAudioAggregateDevicePropertyMainSubDevice
  • mMasterHostTicksPerFrame -> mMainHostTicksPerFrame | inside AudioServerPlugInIOCycleInfo (confirmed in office hours)
  • kAudioHardwareNotReadyError
  • kAudioHardwarePropertyProcessIsMaster -> kAudioHardwarePropertyProcessIsMain
    • although it seems as though the AudioObjectPropertySelector holds the values for kAudioHardwareProperty as well?

@tj-devel709 tj-devel709 added the note-highlight Worth calling out specifically in release notes label Aug 17, 2021
@tj-devel709 tj-devel709 added this to the xcode13.0 milestone Aug 17, 2021
@@ -187,7 +187,9 @@ public enum AudioObjectPropertySelector : uint
TranslateUIDToBox = 1969841250, // 'uidb'
ClockDeviceList = 1668049699, //'clk#'
TranslateUidToClockDevice = 1969841251, // 'uidc',
[Obsolete ("Use the 'ProcessIsMain' element instead.")]
Copy link
Member

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:

[Deprecated (PlatformName.TvOS, 15,0)]

you will have to add them for each of the supported platforms.

Copy link
Contributor

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

ProcessIsMaster = 1835103092, // 'mast'
ProcessIsMain = 1835100526, // 'main'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK we should say when it was added.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a comment?

src/AudioUnit/AudioUnit.cs Show resolved Hide resolved
src/AudioUnit/AUEnums.cs Show resolved Hide resolved
src/AudioUnit/AudioUnit.cs Outdated Show resolved Hide resolved
src/AudioUnit/AudioUnit.cs Show resolved Hide resolved
@@ -200,6 +202,7 @@ public enum AudioObjectPropertySelector : uint
ActualSampleRate = 1634955892,// 'asrt',
ClockDevice = 1634755428, // 'apcd',
IOThreadOSWorkgroup = 1869838183, // 'oswg'
ProcessMute = 1634758765, // 'appm'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ needs availability attributes - for both NET and legacy

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's not available in tvOS then it needs [NoTV] and [SupportedOSPlatform ("tvos")]
unless the enum type itself is not available ?

otherwise it implies availability for tvOS 9 (for legacy) or tvOS 10 (for net6)

@@ -187,7 +187,9 @@ public enum AudioObjectPropertySelector : uint
TranslateUIDToBox = 1969841250, // 'uidb'
ClockDeviceList = 1668049699, //'clk#'
TranslateUidToClockDevice = 1969841251, // 'uidc',
[Obsolete ("Use the 'ProcessIsMain' element instead.")]
Copy link
Contributor

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

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

2 tests failed, 103 tests passed.

Failed tests

  • dont link/Mac Catalyst/Debug [dotnet]: Failed (Test run crashed (exit code: 134).
    Tests run: 11 Passed: 6 Inconclusive: 0 Failed: 0 Ignored: 5)
  • xcframework-test/Mac Catalyst/Debug: Failed (Test run crashed (exit code: 134).
    Tests run: 2 Passed: 2 Inconclusive: 0 Failed: 0 Ignored: 0)

Pipeline on Agent XAMBOT-1104.BigSur'
Merge 76e5722 into 264eaba

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge 6baedc2 into 243cc40

@tj-devel709
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge 6baedc2 into 509b099

@tj-devel709
Copy link
Contributor Author

@spouliot and others
When I checked the apidiff, ProcessIsMaster changed to ProcessIsMain and ProcessMute was added only in the iOS diff and mac diff. These were added in MacCatalyst, and nothing happened in tv and watch.
Therefore I am concluding these are only available in ios, mac, and mac catalyst

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge 7583f57 into 2d4b68b

src/AudioUnit/AudioUnit.cs Outdated Show resolved Hide resolved
@@ -200,6 +202,7 @@ public enum AudioObjectPropertySelector : uint
ActualSampleRate = 1634955892,// 'asrt',
ClockDevice = 1634755428, // 'apcd',
IOThreadOSWorkgroup = 1869838183, // 'oswg'
ProcessMute = 1634758765, // 'appm'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's not available in tvOS then it needs [NoTV] and [SupportedOSPlatform ("tvos")]
unless the enum type itself is not available ?

otherwise it implies availability for tvOS 9 (for legacy) or tvOS 10 (for net6)

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge 1a79ecd into bbb2118

@mandel-macaque
Copy link
Member

@tj-devel709 this PR needs updating because it does not compile.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build] Tests passed on Build. ✅

Tests passed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

🎉 All 108 tests passed 🎉

Pipeline on Agent XAMBOT-1098.BigSur'
Merge b378ba6 into 58ae71b

@mandel-macaque mandel-macaque merged commit e3f1363 into xamarin:main Aug 30, 2021
@dalexsoto dalexsoto added this to August 2021 in Xcode 13 Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
note-highlight Worth calling out specifically in release notes
Projects
No open projects
Xcode 13
August 2021
Development

Successfully merging this pull request may close these issues.

None yet

5 participants