mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Core Audio: Fix a -Wshadow warning.
This commit is contained in:
+3
-3
@@ -32797,9 +32797,9 @@ static ma_result ma_find_best_format__coreaudio(ma_context* pContext, AudioObjec
|
|||||||
|
|
||||||
hasSupportedFormat = MA_FALSE;
|
hasSupportedFormat = MA_FALSE;
|
||||||
for (iFormat = 0; iFormat < deviceFormatDescriptionCount; ++iFormat) {
|
for (iFormat = 0; iFormat < deviceFormatDescriptionCount; ++iFormat) {
|
||||||
ma_format format;
|
ma_format formatFromDescription;
|
||||||
ma_result formatResult = ma_format_from_AudioStreamBasicDescription(&pDeviceFormatDescriptions[iFormat].mFormat, &format);
|
ma_result formatResult = ma_format_from_AudioStreamBasicDescription(&pDeviceFormatDescriptions[iFormat].mFormat, &formatFromDescription);
|
||||||
if (formatResult == MA_SUCCESS && format != ma_format_unknown) {
|
if (formatResult == MA_SUCCESS && formatFromDescription != ma_format_unknown) {
|
||||||
hasSupportedFormat = MA_TRUE;
|
hasSupportedFormat = MA_TRUE;
|
||||||
bestDeviceFormatSoFar = pDeviceFormatDescriptions[iFormat].mFormat;
|
bestDeviceFormatSoFar = pDeviceFormatDescriptions[iFormat].mFormat;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user