mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
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]
This commit is contained in:
committed by
David Reid
parent
d1abdd100b
commit
12a8d4e491
+2
-2
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user