diff options
author | XANTRONIX Development | 2022-02-28 14:42:08 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-28 14:42:08 -0500 |
commit | 9cbf11f34b58dbf61492507fb4001d3992a5e26a (patch) | |
tree | f78154e03ed15a453a663a39e893d7df8ba5fb7a | |
parent | c2230c96769c42685bbb5ee2de7ee4244bbdec40 (diff) | |
download | xas-9cbf11f34b58dbf61492507fb4001d3992a5e26a.tar.gz xas-9cbf11f34b58dbf61492507fb4001d3992a5e26a.tar.bz2 xas-9cbf11f34b58dbf61492507fb4001d3992a5e26a.zip |
Don't forget to initialise synth gain
-rw-r--r-- | src/synth.c | 1 |
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; |