Skip to content

[AudioToolbox] Bind new Xcode 27 AudioToolbox APIs. - #25811

Merged
dalexsoto merged 2 commits into
xcode27.0from
dev/alex/xc27audiotoolbox
Jun 25, 2026
Merged

[AudioToolbox] Bind new Xcode 27 AudioToolbox APIs.#25811
dalexsoto merged 2 commits into
xcode27.0from
dev/alex/xc27audiotoolbox

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

Bind the missing AudioToolbox APIs reported by xtro-sharpie:

  • AUReverbRoomType.OutdoorGeneral (kReverbRoomType_OutdoorGeneral = 24) on iOS, tvOS, macOS and Mac Catalyst.
  • AUHeadTrackingBinauralRenderer (an AUAudioUnit subclass) and its three readonly properties (HeadTracking, Disabled, DeviceUID) on iOS.

AUHeadTrackingBinauralRenderer re-exposes the base AUAudioUnit designated initializer as an [Internal] init plus a manual Create factory (guarded for iOS-only), mirroring AVCaptureEventSound, so it satisfies both the introspection DesignatedInitializer test and the cecil NoConstructorsWithOutErrorArguments test.

Bind the missing AudioToolbox APIs reported by xtro-sharpie:

* AUReverbRoomType.OutdoorGeneral (kReverbRoomType_OutdoorGeneral = 24)
  on iOS, tvOS, macOS and Mac Catalyst.
* AUHeadTrackingBinauralRenderer (an AUAudioUnit subclass) and its
  three readonly properties (HeadTracking, Disabled, DeviceUID) on iOS.

AUHeadTrackingBinauralRenderer re-exposes the base AUAudioUnit
designated initializer as an [Internal] init plus a manual Create
factory (guarded for iOS-only), mirroring AVCaptureEventSound, so it
satisfies both the introspection DesignatedInitializer test and the
cecil NoConstructorsWithOutErrorArguments test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

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.

Pull request overview

This PR updates the AudioToolbox/AudioUnit bindings to cover newly introduced Xcode 27 APIs and clears the corresponding xtro-sharpie .todo reports.

Changes:

  • Added AUReverbRoomType.OutdoorGeneral (native value 24) with Xcode 27 availability across iOS/tvOS/macOS/Mac Catalyst.
  • Added the iOS-only AUHeadTrackingBinauralRenderer binding (including HeadTracking, Disabled, and DeviceUID) plus an iOS-only Create factory that re-exposes the designated initializer via an [Internal] init.
  • Removed the now-resolved xtro-sharpie AudioToolbox.todo entries and updated introspection matching for the factory-based constructor exposure.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/xtro-sharpie/api-annotations-dotnet/tvOS-AudioToolbox.todo Removed resolved xtro-sharpie todo entry for the new enum value.
tests/xtro-sharpie/api-annotations-dotnet/macOS-AudioToolbox.todo Removed resolved xtro-sharpie todo entry for the new enum value.
tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-AudioToolbox.todo Removed resolved xtro-sharpie todo entry for the new enum value.
tests/xtro-sharpie/api-annotations-dotnet/iOS-AudioToolbox.todo Removed resolved xtro-sharpie todo entries for the new type/selectors/enum value.
tests/introspection/ApiCtorInitTest.cs Added a constructor match exception for AUHeadTrackingBinauralRenderer to align with the factory-based exposure pattern.
src/frameworks.sources Included the new manual partial factory source in AUDIOUNIT_SOURCES.
src/AudioUnit/AUHeadTrackingBinauralRenderer.cs Added the iOS-only Create factory wrapper around the internal designated initializer.
src/AudioUnit/AUEnums.cs Added AUReverbRoomType.OutdoorGeneral = 24 with Xcode 27 availability attributes.
src/audiounit.cs Added the AUHeadTrackingBinauralRenderer binding definition and its exported properties.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Comment thread src/audiounit.cs Outdated
Co-authored-by: Rolf Bjarne Kvinge <rokvin@microsoft.com>
@dalexsoto
dalexsoto requested a review from rolfbjarne June 25, 2026 11:59
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #6c4a1a6] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 6c4a1a606523f2b75123c75dc9eadbc5373da5f9 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #6c4a1a6] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 6c4a1a606523f2b75123c75dc9eadbc5373da5f9 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 6c4a1a606523f2b75123c75dc9eadbc5373da5f9 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #6c4a1a6] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 6c4a1a606523f2b75123c75dc9eadbc5373da5f9 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #6c4a1a6] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 200 tests passed 🎉

Tests counts

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (iOS): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 20 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 18 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ Tests on macOS Golden Gate (27): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 6c4a1a606523f2b75123c75dc9eadbc5373da5f9 [PR build]

@dalexsoto
dalexsoto merged commit 2a22784 into xcode27.0 Jun 25, 2026
55 checks passed
@dalexsoto
dalexsoto deleted the dev/alex/xc27audiotoolbox branch June 25, 2026 17:33
dalexsoto added a commit that referenced this pull request Jul 2, 2026
Merge the stashed macios-binding-creator skill work (Xcode 27
xtro/cecil/introspection accuracy from three real binding sessions)
onto the rebased branch, which had already committed two other
2026-07-01 sessions (xkit.cs consolidation + runtime-only protocol
conformance). 3-way merge against the clean common base preserves all
three sessions with no content lost either way.

Also fixes two claims in the session-3 content that went stale after
the branch's main-merge pulled in their source PRs (#25811, #25828):
- AUHeadTrackingBinauralRenderer is now a real factory-variant type;
  the illustrative plain-Constructor example is renamed to
  MySpatialAudioUnit and the real type is cited as a factory precedent.
- iOSApiSelectorTest.cs already has a Skip(Type,string) override, so
  the selector-skip guidance now says to extend it (adding a second
  override would be CS0111), citing the AVAssetWriter precedent.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants