From 3d470011ef84a2b0e85234f66e61ff01fb1939c8 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 13 Mar 2022 22:39:37 -0400 Subject: Generalise drone speech methods to generic samples --- include/xas/drone.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'include/xas') diff --git a/include/xas/drone.h b/include/xas/drone.h index e909dc8..70eacfb 100644 --- a/include/xas/drone.h +++ b/include/xas/drone.h @@ -60,10 +60,15 @@ xas_spatial_object *xas_drone_get_spatial_object(xas_drone *drone); int xas_drone_speech_import(xas_drone *drone, const char *voice, float speed, - size_t speech_sample_first, - size_t speech_sample_count, + size_t sample_index, + size_t sample_count, const char **speech_lines); +int xas_drone_seq_sample(xas_drone *drone, + xas_seq *seq, + size_t sample_index, + struct timeval *now); + /* * Methods for drone vocalisations */ @@ -120,12 +125,6 @@ int xas_drone_chamber_seq_intervals(xas_drone_chamber *chamber, size_t count, struct timeval *now); -int xas_drone_chamber_seq_speech(xas_drone_chamber *chamber, - xas_drone *drone, - xas_seq *seq, - size_t speech_part, - struct timeval *now); - int xas_drone_chamber_seq_chorus(xas_drone_chamber *chamber, xas_seq *seq, size_t speech_part, -- cgit v1.2.3