Skip to content

Commit

Permalink
Core Audio: Fix a -Wshadow warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mackron committed Nov 15, 2023
1 parent 8fcf688 commit c77d40b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miniaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -32797,9 +32797,9 @@ static ma_result ma_find_best_format__coreaudio(ma_context* pContext, AudioObjec

hasSupportedFormat = MA_FALSE;
for (iFormat = 0; iFormat < deviceFormatDescriptionCount; ++iFormat) {
ma_format format;
ma_result formatResult = ma_format_from_AudioStreamBasicDescription(&pDeviceFormatDescriptions[iFormat].mFormat, &format);
if (formatResult == MA_SUCCESS && format != ma_format_unknown) {
ma_format formatFromDescription;
ma_result formatResult = ma_format_from_AudioStreamBasicDescription(&pDeviceFormatDescriptions[iFormat].mFormat, &formatFromDescription);
if (formatResult == MA_SUCCESS && formatFromDescription != ma_format_unknown) {
hasSupportedFormat = MA_TRUE;
bestDeviceFormatSoFar = pDeviceFormatDescriptions[iFormat].mFormat;
break;
Expand Down

0 comments on commit c77d40b

Please sign in to comment.