From 1f717d6ba743a454b0aec81bffc9ae07406d6308 Mon Sep 17 00:00:00 2001 From: Guillaume Prieur Date: Thu, 2 Oct 2025 00:05:35 -0400 Subject: [PATCH] Remove object references in coreaudio context state that are for apple desktop only in other builds --- miniaudio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index bcd981bc..edcdb300 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -33885,12 +33885,14 @@ typedef struct ma_context_state_coreaudio ma_CFStringGetCString_proc CFStringGetCString; ma_CFRelease_proc CFRelease; +#if defined(MA_APPLE_DESKTOP) ma_handle hCoreAudio; ma_AudioObjectGetPropertyData_proc AudioObjectGetPropertyData; ma_AudioObjectGetPropertyDataSize_proc AudioObjectGetPropertyDataSize; ma_AudioObjectSetPropertyData_proc AudioObjectSetPropertyData; ma_AudioObjectAddPropertyListener_proc AudioObjectAddPropertyListener; ma_AudioObjectRemovePropertyListener_proc AudioObjectRemovePropertyListener; +#endif ma_handle hAudioUnit; /* Could possibly be set to AudioToolbox on later versions of macOS. */ ma_AudioComponentFindNext_proc AudioComponentFindNext;