From 23fe7246302ed01905747899a66a72ae75e1b323 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Mon, 27 Apr 2026 18:36:32 +0200 Subject: [PATCH] [AudioUnit] Adjust framework for a few constants. --- src/ObjCRuntime/Dlfcn.cs | 3 --- src/audiounit.cs | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ObjCRuntime/Dlfcn.cs b/src/ObjCRuntime/Dlfcn.cs index 48cc2ba31a39..354fcaa2b16e 100644 --- a/src/ObjCRuntime/Dlfcn.cs +++ b/src/ObjCRuntime/Dlfcn.cs @@ -55,9 +55,6 @@ static public class OpenGLES { static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.OpenGLESLibrary, 0); } #endif - static public class AudioToolbox { - static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.AudioToolboxLibrary, 0); - } #endif } diff --git a/src/audiounit.cs b/src/audiounit.cs index 1054187fdd6f..95350184b93c 100644 --- a/src/audiounit.cs +++ b/src/audiounit.cs @@ -527,10 +527,10 @@ AUParameterTree ParameterTree { [Export ("shouldChangeToFormat:forBus:")] bool ShouldChangeToFormat (AVAudioFormat format, AUAudioUnitBus bus); - [Notification, Field ("kAudioComponentRegistrationsChangedNotification")] + [Notification, Field ("kAudioComponentRegistrationsChangedNotification", "AudioToolbox")] NSString AudioComponentRegistrationsChangedNotification { get; } - [Notification, Field ("kAudioComponentInstanceInvalidationNotification")] + [Notification, Field ("kAudioComponentInstanceInvalidationNotification", "AudioToolbox")] NSString AudioComponentInstanceInvalidationNotification { get; } /// To be added.