summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drone.c16
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);
}