Commit 12a8d4e4 authored by Brian Whitman's avatar Brian Whitman Committed by David Reid

fixing issue: error: implicit conversion turns floating-point number into...

fixing issue: error: implicit conversion turns floating-point number into integer: 'const Float64' (aka 'const double') to 'ma_uint32' (aka 'unsigned int') [-Werror,-Wfloat-conversion]
parent d1abdd10
......@@ -32933,7 +32933,7 @@ static ma_result ma_find_best_format__coreaudio(ma_context* pContext, AudioObjec
desiredSampleRate = sampleRate;
if (desiredSampleRate == 0) {
desiredSampleRate = pOrigFormat->mSampleRate;
desiredSampleRate = (ma_uint32)pOrigFormat->mSampleRate;
}
desiredChannelCount = channels;
......@@ -34454,7 +34454,7 @@ static ma_result ma_device_init_internal__coreaudio(ma_context* pContext, ma_dev
}
pData->channelsOut = bestFormat.mChannelsPerFrame;
pData->sampleRateOut = bestFormat.mSampleRate;
pData->sampleRateOut = (ma_uint32)bestFormat.mSampleRate;
}
/* Clamp the channel count for safety. */
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