Skip to content

[CoreAudio] Updates for Xcode13 Beta 5 - #12465

Merged
mandel-macaque merged 8 commits into
dotnet:mainfrom
tj-devel709:Xcode13-CoreAudio-Beta5
Aug 30, 2021
Merged

[CoreAudio] Updates for Xcode13 Beta 5#12465
mandel-macaque merged 8 commits into
dotnet:mainfrom
tj-devel709:Xcode13-CoreAudio-Beta5

Conversation

@tj-devel709

Copy link
Copy Markdown
Member

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
Comment thread src/AudioUnit/AUEnums.cs
TranslateUIDToBox = 1969841250, // 'uidb'
ClockDeviceList = 1668049699, //'clk#'
TranslateUidToClockDevice = 1969841251, // 'uidc',
[Obsolete ("Use the 'ProcessIsMain' element instead.")]

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Comment thread src/AudioUnit/AUEnums.cs
TranslateUidToClockDevice = 1969841251, // 'uidc',
[Obsolete ("Use the 'ProcessIsMain' element instead.")]
ProcessIsMaster = 1835103092, // 'mast'
ProcessIsMain = 1835100526, // 'main'

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

With a comment?

Comment thread src/AudioUnit/AudioUnit.cs
Comment thread src/AudioUnit/AUEnums.cs
Comment thread src/AudioUnit/AudioUnit.cs Outdated
Comment thread src/AudioUnit/AudioUnit.cs
Comment thread src/AudioUnit/AUEnums.cs
ActualSampleRate = 1634955892,// 'asrt',
ClockDevice = 1634755428, // 'apcd',
IOThreadOSWorkgroup = 1869838183, // 'oswg'
ProcessMute = 1634758765, // 'appm'

Copy link
Copy Markdown
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
Copy Markdown
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)

Comment thread src/AudioUnit/AUEnums.cs
TranslateUIDToBox = 1969841250, // 'uidb'
ClockDeviceList = 1668049699, //'clk#'
TranslateUidToClockDevice = 1969841251, // 'uidc',
[Obsolete ("Use the 'ProcessIsMain' element instead.")]

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
Collaborator

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

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge 7583f57 into 2d4b68b

Comment thread src/AudioUnit/AudioUnit.cs Outdated
Comment thread src/AudioUnit/AUEnums.cs
ActualSampleRate = 1634955892,// 'asrt',
ClockDevice = 1634755428, // 'apcd',
IOThreadOSWorkgroup = 1869838183, // 'oswg'
ProcessMute = 1634758765, // 'appm'

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
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 dotnet:main Aug 30, 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

None yet

Development

Successfully merging this pull request may close these issues.

6 participants