Project

General

Profile

Splay » History » Version 8

Per Amundsen, 04/05/2020 02:50 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 8 Per Amundsen
_See also [[on SONGEND]], [[on MP3END]], [[on WAVEEND]], [[on MIDIEND]], [[$filename]], [[$sound]]._
12
13 1 Per Amundsen
*Switches*
14
15
-c - Clears the song queue.
16
-m - Midi.
17
-p - Mp3.
18
-q - Queue song to play after current song.
19
-w - Wave.
20
21
*Parameters*
22
23
[filename | stop | pause | resume | seek | skip] - File to play or operation to perform on current song.
24 7 Per Amundsen
[pos] - If pos is defined, file will start playing at position pos.
25 4 Per Amundsen
26
*Example*
27
28
<pre>
29
; Match on "play a song" then play "mysong.mp3"
30
on *:TEXT:play a song:*:splay c:\mysong.mp3
31
</pre>