From 381a035fdded0fe42d66ac44b0ef689a1e4e923a Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 11 Sep 2023 08:30:30 +1000 Subject: [PATCH] Fix some unused function warnings. Public issue https://github.com/mackron/miniaudio/issues/732 --- miniaudio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index ffd49a1a..19fa11b6 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -18658,6 +18658,8 @@ static void ma_device__on_notification_rerouted(ma_device* pDevice) ma_device__on_notification(ma_device_notification_init(pDevice, ma_device_notification_type_rerouted)); } +/* Interruptions are only used on some platforms. */ +#if defined(MA_APPLE_MOBILE) static void ma_device__on_notification_interruption_began(ma_device* pDevice) { ma_device__on_notification(ma_device_notification_init(pDevice, ma_device_notification_type_interruption_began)); @@ -18667,6 +18669,7 @@ static void ma_device__on_notification_interruption_ended(ma_device* pDevice) { ma_device__on_notification(ma_device_notification_init(pDevice, ma_device_notification_type_interruption_ended)); } +#endif static void ma_device__on_data_inner(ma_device* pDevice, void* pFramesOut, const void* pFramesIn, ma_uint32 frameCount)