summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-13 22:39:37 -0400
committerXANTRONIX Development2022-03-13 22:39:37 -0400
commit3d470011ef84a2b0e85234f66e61ff01fb1939c8 (patch)
treeba4f81b423a0acef5994970b1909a3b1c4d6b19b /examples
parenta70eecc75fc6f24e4d49b5cd7c524ee28251d810 (diff)
downloadxas-3d470011ef84a2b0e85234f66e61ff01fb1939c8.tar.gz
xas-3d470011ef84a2b0e85234f66e61ff01fb1939c8.tar.bz2
xas-3d470011ef84a2b0e85234f66e61ff01fb1939c8.zip
Generalise drone speech methods to generic samples
Diffstat (limited to 'examples')
-rw-r--r--examples/pod.c18
-rw-r--r--examples/seq.c18
2 files changed, 16 insertions, 20 deletions
diff --git a/examples/pod.c b/examples/pod.c
index b9f2218..156968c 100644
--- a/examples/pod.c
+++ b/examples/pod.c
@@ -231,19 +231,17 @@ int main(int argc, char **argv) {
timerclear(&cur);
for (i=0; i<2; i++) {
- if (xas_drone_chamber_seq_speech(chamber,
- drone,
- seq,
- 0,
- &cur) < 0) {
+ if (xas_drone_seq_sample(drone,
+ seq,
+ 0,
+ &cur) < 0) {
goto error_seq;
}
- if (xas_drone_chamber_seq_speech(chamber,
- nurse,
- seq,
- 0,
- &cur) < 0) {
+ if (xas_drone_seq_sample(nurse,
+ seq,
+ 0,
+ &cur) < 0) {
goto error_seq;
}
}
diff --git a/examples/seq.c b/examples/seq.c
index ab8da55..0f65f37 100644
--- a/examples/seq.c
+++ b/examples/seq.c
@@ -246,19 +246,17 @@ int main(int argc, char **argv) {
cur = tmp;
for (i=0; i<sequence.single_iterations; i++) {
- if (xas_drone_chamber_seq_speech(chamber,
- drone,
- seq,
- s,
- &cur) < 0) {
+ if (xas_drone_seq_sample(drone,
+ seq,
+ s,
+ &cur) < 0) {
goto error_seq;
}
- if (xas_drone_chamber_seq_speech(chamber,
- nurse,
- seq,
- s,
- &cur) < 0) {
+ if (xas_drone_seq_sample(nurse,
+ seq,
+ s,
+ &cur) < 0) {
goto error_seq;
}
}