summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-28 14:42:08 -0500
committerXANTRONIX Development2022-02-28 14:42:08 -0500
commit9cbf11f34b58dbf61492507fb4001d3992a5e26a (patch)
treef78154e03ed15a453a663a39e893d7df8ba5fb7a
parentc2230c96769c42685bbb5ee2de7ee4244bbdec40 (diff)
downloadxas-9cbf11f34b58dbf61492507fb4001d3992a5e26a.tar.gz
xas-9cbf11f34b58dbf61492507fb4001d3992a5e26a.tar.bz2
xas-9cbf11f34b58dbf61492507fb4001d3992a5e26a.zip
Don't forget to initialise synth gain
-rw-r--r--src/synth.c1
1 files changed, 1 insertions, 0 deletions
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;