Project

General

Profile

Splay » History » Version 7

Per Amundsen, 04/05/2020 02:48 PM

1 6 Per Amundsen
_Added in 1.9.0_
2 1 Per Amundsen
_
3
*/splay -cmpqw [filename | stop | pause | resume | seek | skip] [pos]*
4
5
Plays the specified sound, which can be a .wav, .mid, or .mp3 file.
6
7 7 Per Amundsen
When a sound finishes playing, it triggers a [[On SONGEND|sound event]].
8
9 5 Per Amundsen
_Playing mp3 files with large "ID3 tags":https://en.wikipedia.org/wiki/ID3 and/or album art, may not work._
10
11 1 Per Amundsen
*Switches*
12
13
-c - Clears the song queue.
14
-m - Midi.
15
-p - Mp3.
16
-q - Queue song to play after current song.
17
-w - Wave.
18
19
*Parameters*
20
21
[filename | stop | pause | resume | seek | skip] - File to play or operation to perform on current song.
22 7 Per Amundsen
[pos] - If pos is defined, file will start playing at position pos.
23 4 Per Amundsen
24
*Example*
25
26
<pre>
27
; Match on "play a song" then play "mysong.mp3"
28
on *:TEXT:play a song:*:splay c:\mysong.mp3
29
</pre>