mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Silence a warning with GCC.
This commit is contained in:
+15
-10
@@ -49002,26 +49002,31 @@ static ma_result ma_channel_map_apply_mono_in_f32(float* pFramesOut, const ma_ch
|
|||||||
|
|
||||||
break; /* Get out of the switch. */
|
break; /* Get out of the switch. */
|
||||||
} else {
|
} else {
|
||||||
/* Does not have left and right channels. */
|
/* Fallthrough. Does not have left and right channels. */
|
||||||
|
goto default_handler;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Does not have stereo channels. */
|
/* Fallthrough. Does not have stereo channels. */
|
||||||
|
goto default_handler;
|
||||||
}
|
}
|
||||||
}; /* Fallthrough. See comments above. */
|
}; /* Fallthrough. See comments above. */
|
||||||
|
|
||||||
case ma_mono_expansion_mode_duplicate:
|
case ma_mono_expansion_mode_duplicate:
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
for (iFrame = 0; iFrame < frameCount; iFrame += 1) {
|
default_handler:
|
||||||
for (iChannelOut = 0; iChannelOut < channelsOut; iChannelOut += 1) {
|
{
|
||||||
ma_channel channelOut = ma_channel_map_get_channel(pChannelMapOut, channelsOut, iChannelOut);
|
for (iFrame = 0; iFrame < frameCount; iFrame += 1) {
|
||||||
if (channelOut != MA_CHANNEL_NONE) {
|
for (iChannelOut = 0; iChannelOut < channelsOut; iChannelOut += 1) {
|
||||||
pFramesOut[iChannelOut] = pFramesIn[0];
|
ma_channel channelOut = ma_channel_map_get_channel(pChannelMapOut, channelsOut, iChannelOut);
|
||||||
|
if (channelOut != MA_CHANNEL_NONE) {
|
||||||
|
pFramesOut[iChannelOut] = pFramesIn[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
pFramesOut += channelsOut;
|
pFramesOut += channelsOut;
|
||||||
pFramesIn += 1;
|
pFramesIn += 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user