Fix a strict C89 error.

This commit is contained in:
David Reid
2021-08-08 08:38:03 +10:00
parent 510519fe1d
commit e04db53ef5
+2 -1
View File
@@ -66985,6 +66985,7 @@ MA_API ma_result ma_spatializer_process_pcm_frames(ma_spatializer* pSpatializer,
for (iChannel = 0; iChannel < channelsOut; iChannel += 1) { for (iChannel = 0; iChannel < channelsOut; iChannel += 1) {
ma_channel channelOut; ma_channel channelOut;
float d; float d;
float dMin;
channelOut = ma_channel_map_get_channel(pChannelMapOut, channelsOut, iChannel); channelOut = ma_channel_map_get_channel(pChannelMapOut, channelsOut, iChannel);
if (ma_is_spatial_channel_position(channelOut)) { if (ma_is_spatial_channel_position(channelOut)) {
@@ -67005,7 +67006,7 @@ MA_API ma_result ma_spatializer_process_pcm_frames(ma_spatializer* pSpatializer,
Summary: 0 = more extreme panning; 1 = no panning. Summary: 0 = more extreme panning; 1 = no panning.
*/ */
float dMin = 0.2f; /* TODO: Consider making this configurable. */ dMin = 0.2f; /* TODO: Consider making this configurable. */
/* /*
At this point, "d" will be positive if the sound is on the same side as the channel and negative if At this point, "d" will be positive if the sound is on the same side as the channel and negative if