mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a compilation error with iOS.
Public issue https://github.com/mackron/miniaudio/issues/770
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
v0.11.20 - TBD
|
||||
=====================
|
||||
* 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
|
||||
|
||||
+12
-13
@@ -18668,19 +18668,6 @@ static void ma_device__on_notification_rerouted(ma_device* pDevice)
|
||||
}
|
||||
#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)
|
||||
{
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#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)
|
||||
{
|
||||
switch (status)
|
||||
|
||||
Reference in New Issue
Block a user