From 552bfce3ed0998ea404447924547a80bfd7daff1 Mon Sep 17 00:00:00 2001 From: Matt Taylor Date: Tue, 19 Apr 2022 14:33:13 -0600 Subject: [PATCH] Initialize newly allocated channel map with a value of -1 (off) for all channels. https://github.com/FluidSynth/fluidsynth/pull/1081#discussion_r853430986 --- src/drivers/fluid_coreaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/fluid_coreaudio.c b/src/drivers/fluid_coreaudio.c index 9519bca9..219c1eb1 100644 --- a/src/drivers/fluid_coreaudio.c +++ b/src/drivers/fluid_coreaudio.c @@ -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,