summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-27 17:28:02 -0500
committerXANTRONIX Development2022-02-27 17:28:02 -0500
commit1cc112d8ef190185c6c08989b97e534a1c3b63f4 (patch)
treea3656e13ed84f863ee7236fb5de7a0cc5db980ce /examples
parentb7c5722e33c5fe993fac31738d78ce2ac05f4747 (diff)
downloadxas-1cc112d8ef190185c6c08989b97e534a1c3b63f4.tar.gz
xas-1cc112d8ef190185c6c08989b97e534a1c3b63f4.tar.bz2
xas-1cc112d8ef190185c6c08989b97e534a1c3b63f4.zip
Save context data when adding scene objects
Diffstat (limited to 'examples')
-rw-r--r--examples/spatial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/spatial.c b/examples/spatial.c
index ac467ee..ec606d6 100644
--- a/examples/spatial.c
+++ b/examples/spatial.c
@@ -135,13 +135,15 @@ int main(int argc, char **argv) {
if (xas_spatial_scene_add_object(scene,
(xas_spatial_coord){ 5.2, 0.0, 0.0 },
- synth) == NULL) {
+ synth,
+ &sine_channels[0]) == NULL) {
goto error_spatial_scene_add_object;
}
if (xas_spatial_scene_add_object(scene,
(xas_spatial_coord){ -5.2, 0.0, 0.0 },
- voice) == NULL) {
+ voice,
+ vox) == NULL) {
goto error_spatial_scene_add_object;
}