diff options
author | XANTRONIX Development | 2022-03-12 17:34:07 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-03-12 17:34:07 -0500 |
commit | 98de824b0eb038d37f62f5317a367b2bfbd38b9d (patch) | |
tree | 558f74c200bab18bb042de8003b86410e650c929 | |
parent | b27c582f11f29680b5ac6033d69e50c9263e1320 (diff) | |
download | xas-98de824b0eb038d37f62f5317a367b2bfbd38b9d.tar.gz xas-98de824b0eb038d37f62f5317a367b2bfbd38b9d.tar.bz2 xas-98de824b0eb038d37f62f5317a367b2bfbd38b9d.zip |
Allow setting chamber bass gain separately
-rw-r--r-- | include/xas/drone.h | 2 | ||||
-rw-r--r-- | src/drone.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/xas/drone.h b/include/xas/drone.h index d15b13b..b790cc5 100644 --- a/include/xas/drone.h +++ b/include/xas/drone.h @@ -70,6 +70,8 @@ void xas_drone_chamber_set_drone_gain(xas_drone_chamber *chamber, float gain); void xas_drone_chamber_set_synth_gain(xas_drone_chamber *chamber, float gain); +void xas_drone_chamber_set_bass_gain(xas_drone_chamber *chamber, float gain); + void xas_drone_chamber_bass_start(xas_drone_chamber *chamber); void xas_drone_chamber_bass_stop(xas_drone_chamber *chamber); diff --git a/src/drone.c b/src/drone.c index d374e3b..dc8c084 100644 --- a/src/drone.c +++ b/src/drone.c @@ -192,11 +192,14 @@ void xas_drone_chamber_set_drone_gain(xas_drone_chamber *chamber, float gain) { } void xas_drone_chamber_set_synth_gain(xas_drone_chamber *chamber, float gain) { - xas_object_set_gain(chamber->synth_bass->ctx, gain); xas_object_set_gain(chamber->synth_l->ctx, gain); xas_object_set_gain(chamber->synth_r->ctx, gain); } +void xas_drone_chamber_set_bass_gain(xas_drone_chamber *chamber, float gain) { + xas_object_set_gain(chamber->synth_bass->ctx, gain); +} + void xas_drone_chamber_bass_start(xas_drone_chamber *chamber) { xas_synth_start(chamber->synth_bass->ctx); } |