Commit da0572e6 authored by David Reid's avatar David Reid

Fix a compilation error with iOS.

Public issue https://github.com/mackron/miniaudio/issues/770
parent eb0ce6f1
v0.11.20 - TBD v0.11.20 - TBD
===================== =====================
* Fix an error when dynamically linking libraries when forcing the UWP build on desktop. * Fix an error when dynamically linking libraries when forcing the UWP build on desktop.
* Fix a compilation error with iOS.
v0.11.19 - 2023-11-04 v0.11.19 - 2023-11-04
......
...@@ -18668,19 +18668,6 @@ static void ma_device__on_notification_rerouted(ma_device* pDevice) ...@@ -18668,19 +18668,6 @@ static void ma_device__on_notification_rerouted(ma_device* pDevice)
} }
#endif #endif
/* 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));
}
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) static void ma_device__on_data_inner(ma_device* pDevice, void* pFramesOut, const void* pFramesIn, ma_uint32 frameCount)
{ {
...@@ -31882,6 +31869,18 @@ size, allocate a block of memory of that size and then call AudioObjectGetProper ...@@ -31882,6 +31869,18 @@ size, allocate a block of memory of that size and then call AudioObjectGetProper
AudioDeviceID's so just do "dataSize/sizeof(AudioDeviceID)" to know the device count. AudioDeviceID's so just do "dataSize/sizeof(AudioDeviceID)" to know the device count.
*/ */
#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));
}
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 ma_result ma_result_from_OSStatus(OSStatus status) static ma_result ma_result_from_OSStatus(OSStatus status)
{ {
switch (status) switch (status)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment