diff options
author | XANTRONIX Development | 2022-03-12 17:22:37 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-03-12 17:22:37 -0500 |
commit | b27c582f11f29680b5ac6033d69e50c9263e1320 (patch) | |
tree | f94a9a270a3d0e1afe47fe3075f586283f264fa6 /src | |
parent | 533ccaa23ca82bce45c6fd54580f2d2fdc0c34fa (diff) | |
download | xas-b27c582f11f29680b5ac6033d69e50c9263e1320.tar.gz xas-b27c582f11f29680b5ac6033d69e50c9263e1320.tar.bz2 xas-b27c582f11f29680b5ac6033d69e50c9263e1320.zip |
Add methods to set drone, chamber synth gain
Diffstat (limited to 'src')
-rw-r--r-- | src/drone.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/drone.c b/src/drone.c index 2655758..d374e3b 100644 --- a/src/drone.c +++ b/src/drone.c @@ -181,6 +181,22 @@ void xas_drone_chamber_insert_drone(xas_drone_chamber *chamber, chamber->drones[index] = drone; } +void xas_drone_chamber_set_drone_gain(xas_drone_chamber *chamber, float gain) { + size_t i; + + for (i=0; i<chamber->drone_count; i++) { + xas_drone *drone = chamber->drones[i]; + + xas_object_set_gain(drone->obj->ctx, 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_bass_start(xas_drone_chamber *chamber) { xas_synth_start(chamber->synth_bass->ctx); } |