summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-openal.scxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-09 15:05:52 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-09 15:05:52 (GMT)
commit6dce9df7f483f3229bb2f34f0386ce37a1551e07 (patch)
tree1d3acaec4612d74ee3234c808df7ae5fa3b4ef9f /test/samples/uscxml/test-openal.scxml
parent01f8198f8b548e3f28cad1a441ceb8af6ea850a4 (diff)
downloaduscxml-6dce9df7f483f3229bb2f34f0386ce37a1551e07.zip
uscxml-6dce9df7f483f3229bb2f34f0386ce37a1551e07.tar.gz
uscxml-6dce9df7f483f3229bb2f34f0386ce37a1551e07.tar.bz2
Extended Java bindings and OpenAL invoker
Diffstat (limited to 'test/samples/uscxml/test-openal.scxml')
-rw-r--r--test/samples/uscxml/test-openal.scxml55
1 files changed, 55 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-openal.scxml b/test/samples/uscxml/test-openal.scxml
new file mode 100644
index 0000000..9a1dec0
--- /dev/null
+++ b/test/samples/uscxml/test-openal.scxml
@@ -0,0 +1,55 @@
+<scxml datamodel="ecmascript" name="spatial.audio.test">
+ <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
+ <script>
+ var bubblesDeg = 0;
+ var electricDeg = 90;
+ </script>
+ <state id="click.continuously">
+ <invoke type="openal" id="audio.id1" />
+ <state id="ready">
+ <onentry>
+ <send event="spatial-audio.play" delay="1ms" />
+ <log expr="'Ready'" />
+ </onentry>
+ <transition target="play" event="spatial-audio.play" />
+ </state>
+ <parallel id="play">
+ <state id="bubbles">
+ <onentry>
+ <send target="#_audio.id1" event="play" id="bubbles">
+ <param name="src" expr="'http://www.talkingwav.com/various/applause.wav'" />
+ </send>
+ </onentry>
+ </state>
+ <state id="electric">
+ <onentry>
+ <send target="#_audio.id1" event="play" id="electric">
+ <param name="src" expr="'http://www.talkingwav.com/various/aaaaagh.wav'" />
+ </send>
+ </onentry>
+ </state>
+ <state id="rotate">
+ <state id="rotateinner">
+ <onentry>
+ <send event="rotate" delay="1000ms" />
+ <send target="#_audio.id1" event="move.source">
+ <param name="source" expr="'bubbles'" />
+ <param name="circle" expr="bubblesDeg + 'deg'" />
+ </send>
+ <send target="#_audio.id1" event="move.source">
+ <param name="source" expr="'electric'" />
+ <param name="circle" expr="electricDeg + 'deg'" />
+ </send>
+ <script>
+ bubblesDeg += 10;
+ electricDeg += 20;
+ </script>
+ </onentry>
+ <transition event="rotate" type="internal" target="rotateinner" />
+ </state>
+ </state>
+ </parallel>
+ </state>
+
+ <final id="final" />
+</scxml> \ No newline at end of file