Skip to content

[.NET/AudioToolbox] Make AudioServicesAddSystemSoundCompletion take an unmanaged function pointer instead of delegate. Very partial fix for #10470. - #12920

Merged
rolfbjarne merged 1 commit into
dotnet:mainfrom
rolfbjarne:dotnet-unmanagedcallersonly-c-function-example
Oct 5, 2021
Merged

rolfbjarne merged 1 commit into
dotnet:mainfrom
rolfbjarne:dotnet-unmanagedcallersonly-c-function-example

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

In .NET 6 we can use the [UnmanagedCallersOnly] attribute to mark functions
that are called from native code (instead of the [MonoPInvokeCallback]
attribute). It turns out this is a rather major refactoring (in particular for
blocks), so start by doing it for just a single function, to make sure using
[UnmanagedCallersOnly] at least works somewhere.

Ref: #10470

…n unmanaged function pointer instead of delegate. Very partial fix for dotnet#10470.

In .NET 6 we can use the [UnmanagedCallersOnly] attribute to mark functions
that are called from native code (instead of the [MonoPInvokeCallback]
attribute). It turns out this is a rather major refactoring (in particular for
blocks), so start by doing it for just a single function, to make sure using
[UnmanagedCallersOnly] at least works somewhere.

Ref: dotnet#10470
@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) (no change)
✅ Generator Diff (only version changes)

GitHub pages

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

🎉 All 218 tests passed 🎉

Pipeline on Agent XAMBOT-1098.BigSur'
Merge d335df0 into ee14ab7

@rolfbjarne
rolfbjarne merged commit 7d1cd52 into dotnet:main Oct 5, 2021
@rolfbjarne
rolfbjarne deleted the dotnet-unmanagedcallersonly-c-function-example branch October 5, 2021 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-notes-worthy Ignore for release notes run-all-tests Run all our tests. run-dotnet-tests Run all the .NET tests skip-device-tests Skip device tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants