From c1d4b998ae16a8dd4738e6da2b9f98b61b7e707c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 10 Mar 2022 10:24:42 -0500 Subject: Ensure chamber bass line is initialised --- include/xas/drone.h | 3 +++ src/drone.c | 5 +++++ 2 files changed, 8 insertions(+) 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 #include +#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); -- cgit v1.2.3