summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context/sources/general/manuals/start/en/sounds-001.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/context/sources/general/manuals/start/en/sounds-001.tex')
-rw-r--r--Master/texmf-dist/doc/context/sources/general/manuals/start/en/sounds-001.tex34
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/start/en/sounds-001.tex b/Master/texmf-dist/doc/context/sources/general/manuals/start/en/sounds-001.tex
new file mode 100644
index 00000000000..7d1428113a9
--- /dev/null
+++ b/Master/texmf-dist/doc/context/sources/general/manuals/start/en/sounds-001.tex
@@ -0,0 +1,34 @@
+\definerenderingwindow
+ [example]
+ [width=0pt,height=0pt,frame=off]
+
+\setupinteraction[state=start]
+
+\useexternalrendering
+ [mysound]
+ [audio/mpeg] % audio/x-mp3
+ [akkerman.mp3]
+ []
+
+\definereference [StartSoundTrack] [StartRendering{mysound}]
+\definereference [StopSoundTrack] [StopRendering{mysound}]
+
+\definelayer[resources][width=\paperwidth,height=\paperheight]
+
+\setupbackgrounds[page][background=resources]
+
+\starttext
+
+ \setlayer[resources]{\placerenderingwindow[example][mysound]} % once
+
+ \startTEXpage
+ \button{start}[StartSoundTrack]
+ \button{stop}[StopSoundTrack]
+ \stopTEXpage
+
+ \startTEXpage
+ \button{start}[StartSoundTrack]
+ \button{stop}[StopSoundTrack]
+ \stopTEXpage
+
+\stoptext