File tree 4 files changed +45
-0
lines changed
4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ default (Pascal) engine.
21
21
scriptref/bitmaps.rst
22
22
scriptref/string.rst
23
23
scriptref/tpa.rst
24
+ scriptref/sound.rst
24
25
Original file line number Diff line number Diff line change
1
+
2
+ .. _scriptref_web :
3
+
4
+ Multimedia Functions
5
+ ====================
6
+
7
+
8
+ Sound Functions
9
+ --------------
10
+
11
+ PlaySound
12
+ ~~~~~~~~~
13
+
14
+ .. code-block :: pascal
15
+
16
+ procedure PlaySound(Sound : string);
17
+
18
+ PlaySound plays the sound file with the path *Sound *.
19
+
20
+ Supported formats: *.wav *. (Possibly others, if someone has time to figures
21
+ this out please let us know)
22
+
23
+ Example:
24
+
25
+ .. code-block :: pascal
26
+
27
+ PlaySound('C:\roar.wav');
28
+
29
+
30
+ StopSound
31
+ ~~~~~~~~~
32
+
33
+
34
+ .. code-block :: pascal
35
+
36
+ procedure StopSound;
37
+
38
+ StopSound stops all currently playing sounds.
Original file line number Diff line number Diff line change
1
+ TODO:
2
+ - Implement IsKeyDown properly.
3
+ - Implement KeyDown / KeyUp to work with multiple keyboard layouts.
4
+ Perhaps XTest already does this?
Original file line number Diff line number Diff line change
1
+ TODO:
2
+ -
You can’t perform that action at this time.
0 commit comments