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

m (Bot: Adding a template)
m (Switches: Add missing -'s)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{mirc title|/splay Command}}
 
'''''Note:''' This command is also a part of the [[Playing music - mIRC|playing music]] section.''
 
'''''Note:''' This command is also a part of the [[Playing music - mIRC|playing music]] section.''
  
Line 8: Line 9:
  
 
== Switches ==
 
== Switches ==
<span style="display: inline-block; width: 30px;">'''c'''</span>Allows you to clear the play queue, except for the currently playing sound (which will continue to play).
+
* '''-c''' - Allows you to clear the play queue, except for the currently playing sound (which will continue to play).
 
+
* '''-w''' - Tells the command you are specifying a ''.wav'' file to play.
<span style="display: inline-block; width: 30px;">'''w'''</span>Tells the command you are specifying a ''.wav'' file to play.
+
* '''-m''' - Tells the command you are specifying a ''.mid'' file to play.
 
+
* '''-p''' - Tells the command you are specifying an ''.mp3/.wma/.ogg'' file to play.
<span style="display: inline-block; width: 30px;">'''m'''</span>Tells the command you are specifying a '.mid'' file to play.
+
* '''-q''' - Specifies 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..
 
 
<span style="display: inline-block; width: 30px;">'''p'''</span>Tells 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.
 
 
 
<span style="display: inline-block; width: 30px;">'''q'''</span>Specifies 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 ==
 
== Parameters ==
<span style="display: inline-block; width: 90px;">'''filename'''</span>Desc
+
* '''filename''' - the filename you wish to play
 
+
* '''stop''' - Stops the currently playing file.
<span style="display: inline-block; width: 90px;">'''stop'''</span>Stops the currently playing file.
+
* '''pause''' - Allows you to pause the currently playing sound file.
 
+
* '''resume''' - Allows you to resume the currently paused sound file.
<span style="display: inline-block; width: 90px;">'''pause'''</span><span style="color: #A60000;">''mp3,ogg,wma ONLY''</span> - Allows you to pause the currently playing sound file.
+
* '''seek''' - Allows you to seek to a certain point in the currently playing file. See '''[pos]''' below.
 
+
* '''skip''' - Allows you to skip the currently playing sound file. If there are any files in the queue, the next file will begin to play.
<span style="display: inline-block; width: 90px;">'''resume'''</span><span style="color: #A60000;">''mp3,ogg,wma ONLY''</span> - Allows you to resume the currently paused sound file.
+
* '''[pos]''' - 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.
 
 
<span style="display: inline-block; width: 90px;">'''seek'''</span><span style="color: #A60000;">''mp3,ogg,wma ONLY''</span> - Allows you to seek to a certain point in the currently playing file. See '''[pos]''' below.
 
 
 
<span style="display: inline-block; width: 90px;">'''skip'''</span>Allows you to skip the currently playing sound file. If there are any files in the queue, the next file will begin to play.
 
 
 
<span style="display: inline-block; width: 90px;">'''[pos]'''</span><span style="color: #A60000;">''mp3,ogg,wma ONLY''</span> - 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 ==
 
== Examples ==
Line 47: Line 38:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v6.0
+
{{mIRC compatibility|6.0}}
 
 
Added On: 03/02/2002
 
  
 
== See Also ==
 
== See Also ==
Line 57: Line 46:
 
* [[On nosound - mIRC|ON NOSOUND]]
 
* [[On nosound - mIRC|ON NOSOUND]]
 
* [[On waveend - mIRC|ON WAVEEND]]
 
* [[On waveend - mIRC|ON WAVEEND]]
* [[$inmidi identifier - mIRC|$inmidi]]
+
* {{mIRC|$inmidi}}
* [[$insong identifier - mIRC|$insong]]
+
* {{mIRC|$insong}}
* [[$inwave identifier - mIRC|$inwave]]
+
* {{mIRC|$inwave}}
* [[$sound identifier - mIRC|$sound]]
+
* {{mIRC|$sound}}
* [[$vol identifier - mIRC|$vol]]
+
* {{mIRC|$vol}}
* [[/vol command - mIRC|/vol]]
+
* {{mIRC|/vol}}
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:MIRC commands]]
+
[[Category:mIRC commands|splay command - mIRC]]

Latest revision as of 00:15, 23 January 2024

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[edit]

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

Switches[edit]

  • -c - Allows you to clear the play queue, except for the currently playing sound (which will continue to play).
  • -w - Tells the command you are specifying a .wav file to play.
  • -m - Tells the command you are specifying a .mid file to play.
  • -p - Tells the command you are specifying an .mp3/.wma/.ogg file to play.
  • -q - Specifies 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[edit]

  • filename - the filename you wish to play
  • stop - Stops the currently playing file.
  • pause - Allows you to pause the currently playing sound file.
  • resume - Allows you to resume the currently paused sound file.
  • seek - Allows you to seek to a certain point in the currently playing file. See [pos] below.
  • skip - Allows you to skip the currently playing sound file. If there are any files in the queue, the next file will begin to play.
  • [pos] - 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[edit]

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[edit]

Added: mIRC v6.0
Added on: 03 Feb 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC commands list