From 9cbf11f34b58dbf61492507fb4001d3992a5e26a Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 28 Feb 2022 14:42:08 -0500 Subject: Don't forget to initialise synth gain --- src/synth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/synth.c b/src/synth.c index 76d718b..83787b7 100644 --- a/src/synth.c +++ b/src/synth.c @@ -133,6 +133,7 @@ xas_synth *xas_synth_new(xas_audio_format format, synth->type = type; synth->state = XAS_SYNTH_IDLE; synth->phase = 0.0f; + synth->gain = XAS_SYNTH_DEFAULT_GAIN; synth->frequency = XAS_SYNTH_DEFAULT_FREQUENCY; synth->format.channels = XAS_AUDIO_MONO; -- cgit v1.2.3