Commit 10049067 authored by David Reid's avatar David Reid

Core Audio: Fix some compilation errors on iOS.

parent 5a8c88d1
...@@ -25870,12 +25870,12 @@ static ma_result ma_device_init_internal__coreaudio(ma_context* pContext, ma_dev ...@@ -25870,12 +25870,12 @@ static ma_result ma_device_init_internal__coreaudio(ma_context* pContext, ma_dev
OSStatus status; OSStatus status;
UInt32 enableIOFlag; UInt32 enableIOFlag;
AudioStreamBasicDescription bestFormat; AudioStreamBasicDescription bestFormat;
ma_uint32 actualPeriodSizeInFrames; UInt32 actualPeriodSizeInFrames;
AURenderCallbackStruct callbackInfo; AURenderCallbackStruct callbackInfo;
#if defined(MA_APPLE_DESKTOP) #if defined(MA_APPLE_DESKTOP)
AudioObjectID deviceObjectID; AudioObjectID deviceObjectID;
#else #else
ma_uint32 actualPeriodSizeInFramesSize = sizeof(actualPeriodSizeInFrames); UInt32 actualPeriodSizeInFramesSize = sizeof(actualPeriodSizeInFrames);
#endif #endif
/* This API should only be used for a single device type: playback or capture. No full-duplex mode. */ /* This API should only be used for a single device type: playback or capture. No full-duplex mode. */
...@@ -26177,7 +26177,7 @@ static ma_result ma_device_init_internal__coreaudio(ma_context* pContext, ma_dev ...@@ -26177,7 +26177,7 @@ static ma_result ma_device_init_internal__coreaudio(ma_context* pContext, ma_dev
return ma_result_from_OSStatus(status); return ma_result_from_OSStatus(status);
} }
pData->periodSizeInFramesOut = actualPeriodSizeInFrames; pData->periodSizeInFramesOut = (ma_uint32)actualPeriodSizeInFrames;
/* We need a buffer list if this is an input device. We render into this in the input callback. */ /* We need a buffer list if this is an input device. We render into this in the input callback. */
if (deviceType == ma_device_type_capture) { if (deviceType == ma_device_type_capture) {
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