mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-18 18:11:05 +00:00
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:
parent
7e081d700b
commit
ab0b79c114
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue