Print debug log message when channel map value is out of range.

https://github.com/FluidSynth/fluidsynth/pull/1081#discussion_r853437544
This commit is contained in:
Matt Taylor 2022-04-19 14:31:52 -06:00
parent 7e081d700b
commit ab0b79c114

View file

@ -167,6 +167,7 @@ set_channel_map(AudioUnit outputUnit, int audio_channels, const char *map_string
{
if(channel_map[i] < -1 || channel_map[i] >= audio_channels)
{
FLUID_LOG(FLUID_DBG, "Channel map of output channel %d is out-of-range. Silencing.", i);
channel_map[i] = -1;
}
}