Initialize newly allocated channel map with a value of -1 (off) for all channels.

https://github.com/FluidSynth/fluidsynth/pull/1081#discussion_r853430986
This commit is contained in:
Matt Taylor 2022-04-19 14:33:13 -06:00
parent ab0b79c114
commit 552bfce3ed

View file

@ -148,7 +148,7 @@ set_channel_map(AudioUnit outputUnit, int audio_channels, const char *map_string
return;
}
FLUID_MEMSET(channel_map, 0, property_size);
FLUID_MEMSET(channel_map, 0xff, property_size);
status = AudioUnitGetProperty(outputUnit,
kAudioOutputUnitProperty_ChannelMap,