diff options
author | XANTRONIX Development | 2022-03-10 10:24:42 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-03-10 10:24:42 -0500 |
commit | c1d4b998ae16a8dd4738e6da2b9f98b61b7e707c (patch) | |
tree | d63715f4d817f6f7536bdda3c068b2e5570ecbca | |
parent | 8a14c833c42c9eb90d9f05bedac99863b9b17b4e (diff) | |
download | xas-c1d4b998ae16a8dd4738e6da2b9f98b61b7e707c.tar.gz xas-c1d4b998ae16a8dd4738e6da2b9f98b61b7e707c.tar.bz2 xas-c1d4b998ae16a8dd4738e6da2b9f98b61b7e707c.zip |
Ensure chamber bass line is initialised
-rw-r--r-- | include/xas/drone.h | 3 | ||||
-rw-r--r-- | src/drone.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/xas/drone.h b/include/xas/drone.h index f0da28d..395e8ec 100644 --- a/include/xas/drone.h +++ b/include/xas/drone.h @@ -6,6 +6,9 @@ #include <xas/spatial.h> #include <xas/seq.h> +#define XAS_DRONE_CHAMBER_BASS_FREQUENCY 20 /* Hz */ +#define XAS_DRONE_CHAMBER_BASS_TYPE XAS_SYNTH_SQUARE + enum xas_drone_chamber_event_type { XAS_DRONE_CHAMBER_EVENT_NONE, XAS_DRONE_CHAMBER_EVENT_SYNTH, diff --git a/src/drone.c b/src/drone.c index a4ea1cb..e3748f1 100644 --- a/src/drone.c +++ b/src/drone.c @@ -150,6 +150,11 @@ xas_drone_chamber *xas_drone_chamber_new(xas_spatial_scene *scene, goto error_spatial_scene_add_synth; } + xas_synth_set_frequency(chamber->synth_bass->ctx, + XAS_DRONE_CHAMBER_BASS_FREQUENCY); + + xas_synth_start(chamber->synth_bass->ctx); + chamber->drone_count = drone_count; memset(chamber->drones, '\0', total); |