diff options
-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); |