diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/seq.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/seq.c b/examples/seq.c index 601e46a..ab8da55 100644 --- a/examples/seq.c +++ b/examples/seq.c @@ -195,19 +195,15 @@ int main(int argc, char **argv) { if ((drone = xas_drone_new(scene, (xas_spatial_coord){ 0.0, 0.0, -1.0 }, - 1.3f, 2646000, - 4, - drone_lines)) == NULL) { + 4)) == NULL) { goto error_drone_new; } if ((nurse = xas_drone_new(scene, (xas_spatial_coord){ 1.0, 0.0, 0.0 }, - 1.0f, 2646000, - 4, - nurse_lines)) == NULL) { + 4)) == NULL) { goto error_drone_new_nurse; } @@ -217,6 +213,14 @@ int main(int argc, char **argv) { goto error_drone_chamber_new; } + if (xas_drone_speech_import(drone, NULL, 0.75f, 0, 4, drone_lines) < 0) { + goto error_drone_speech_import; + } + + if (xas_drone_speech_import(nurse, NULL, 1.0f, 0, 4, nurse_lines) < 0) { + goto error_drone_speech_import_nurse; + } + xas_drone_chamber_insert_drone(chamber, drone, 0); xas_drone_chamber_insert_drone(chamber, nurse, 1); xas_drone_chamber_bass_start(chamber); @@ -291,6 +295,8 @@ int main(int argc, char **argv) { return EX_OK; error_seq: +error_drone_speech_import_nurse: +error_drone_speech_import: xas_drone_chamber_destroy(chamber); error_drone_chamber_new: |