From WikiChip
Difference between revisions of "mirc/commands/splay"
< mirc‎ | commands

m (See Also)
(See Also)
Line 52: Line 52:
  
 
== See Also ==
 
== See Also ==
[[/wavplay command - mIRC|/wavplay]] ''<span style="color: #A60000; padding-left: 20px;">Deprecated</span>''
+
* [[Playing Music - mIRC|Playing Music]]
 +
* [[On midiend - mIRC|ON MIDIEND]]
 +
* [[On mp3end - mIRC|ON MP3END]]
 +
* [[On nosound - mIRC|ON NOSOUND]]
 +
* [[On waveend - mIRC|ON WAVEEND]]
 +
* [[$inmidi identifier - mIRC|$inmidi]]
 +
* [[$insong identifier - mIRC|$insong]]
 +
* [[$inwave identifier - mIRC|$inwave]]
 +
* [[$sound identifier - mIRC|$sound]]
 +
* [[$vol identifier - mIRC|$vol]]
 +
* [[/vol command - mIRC|/vol]]
  
[[/vol command - mIRC|/vol]]
+
[[Category:mIRC commands]]
 
 
[[$inmidi identifier - mIRC|$inmidi]]
 
 
 
[[$insong identifier - mIRC|$insong]]
 
 
 
[[$inwave identifier - mIRC|$inwave]]
 
 
 
[[$sound identifier - mIRC|$sound]]
 
 
 
[[$vol identifier - mIRC|$vol]]
 
 
 
[[Category:mIRC identifiers]]
 

Revision as of 20:57, 25 June 2014

Note: This command is also a part of the playing music section.


/splay can be used to play a number of common Windows sound files. Supported formats include, but sometimes are not limited to: .wav, .mid, .mp3, .ogg, and .wma.

Synopsis

/splay -cwmpq [filename | stop | pause | resume | seek | skip] [pos]

Switches

cAllows you to clear the play queue, except for the currently playing sound (which will continue to play).

wTells the command you are specifying a .wav file to play.

mTells the command you are specifying a '.mid file to play.

pTells the command you are specifying an .mp3 file to play. This is the specification you would also invoke for both .wma and .ogg file types.

qSpecifies that the filename you desire to play should be placed in the queue, after the current sounds has played, and any preceding sounds in the play queue..

Parameters

filenameDesc

stopStops the currently playing file.

pausemp3,ogg,wma ONLY - Allows you to pause the currently playing sound file.

resumemp3,ogg,wma ONLY - Allows you to resume the currently paused sound file.

seekmp3,ogg,wma ONLY - Allows you to seek to a certain point in the currently playing file. See [pos] below.

skipAllows you to skip the currently playing sound file. If there are any files in the queue, the next file will begin to play.

[pos]mp3,ogg,wma ONLY - When used in combination with the seek parameter, this should be the location, in seconds, where you want to begin playing the sound file. Note: The seek position is in milliseconds. Keep in mind that 1-second = 1000-milliseconds.

Examples

Play the file myfile.mp3 located in the mIRC Sounds folder

/splay -p myfile.mp3

Stop the currently playing mp3

/splay -p stop

Stop all sound files

/splay -pmw stop

Seek to 1:03 in the currently playing mp3

/splay -p seek 60300

Compatibility

Added: mIRC v6.0

Added On: 03/02/2002

See Also