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

(Parameters)
m (Switches: Add missing -'s)
 
Line 9: Line 9:
  
 
== Switches ==
 
== Switches ==
* '''c''' - 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.
+
* '''-w''' - Tells the command you are specifying a ''.wav'' file to play.
* '''m''' - Tells the command you are specifying a ''.mid'' 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.
+
* '''-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..
+
* '''-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 ==
 
== Parameters ==

Latest revision as of 23:15, 22 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]

v · d · e mIRC commands list

A /abook, /action, /add, /ajinvite, /alias, /aline, /ame, /amsg, /anick, /aop, /auser, /auto, /autojoin, /avoice, /away

B /background, /ban, /bcopy, /beep, /bindip, /bread, /break, /breplace, /bset, /btrunc, /bunset, /bwrite

C /channel, /clear, /clearall, /clearial, /cline, /clipboard, /close, /closechats, /closedccs, /closefserves, /closemsg, /cnick, /color, /colour, /comclose, /comlist, /commands, /comopen, /comreg, /continue, /copy, /creq, /ctcp, /ctcpreply, /ctcps

D /dcc, /dccserver, /dde, /ddeserver, /debug, /dec, /describe, /dialog, /did, /didtok, /disable, /disconnect, /dlevel, /dline, /dll, Template:mIRC/donotdisturb, /dns, /dqwindow, /drawcopy, /drawdot, /drawfill, /drawline, /drawpic, /drawrect, /drawreplace, /drawrot, /drawsave, /drawscroll, /drawsize /drawtext

E /ebeeps, /echo, /editbox, /else, /elseif, /emailaddr, /enable, /events, /exit

F /fclose, /filter, /findtext, /finger, /firewall, /flash, /flist, /flood, /flush, /flushini, /fnord, /font, /fopen, /fseek, /fsend, /fserve, /fullname, /fupdate, /fwrite

G /ghide, /gload, /gmove, /gopts, /goto, /gplay, /gpoint, /gqreq, /groups, /gshow, /gsize, /gstop, /gtalk, /gunload, /guser

H /hadd, /halt, /haltdef, /hdec, /hdel, /help, /hfree, /hinc, /hload, /hmake, /hotlink, /hop, /hsave

I /ial, /ialclear, /ialmark, /identd, /if, /ignore, /iline, /inc, /iuser

J /join

L /leave, /linesep, /links, /list, /load, /loadbuf, /localinfo, /log, /logview

M /maxdepth, /mdi, /me, /menubar, /mkdir, /mnick, /mode, /msg

N /noop, /notice, /notify

O /onotice, /omsg

P /pareline, /part, /partall, /pdcc, /perform, /play, /playctrl, /pop, /protect, /proxy, /pvoice

Q /qme, /qmsg, /query, /queryrn, /quit, /quote

R /raw, /registration, /reload, /remini, /remote, /remove, /rename, /renwin, /reseterror, /resetidle, /return, /returnex, /rlevel, /rline, /rmdir, /run, /ruser

S /save, /savebuf, /saveini, /say, /scid, /scon, /server, /set, /setlayer, /showmirc, /signal, /sline, /sockaccept, /sockclose, /socklist, /socklisten, /sockmark, /sockopen, /sockpause, /sockread, /sockrename, /sockudp, /sockwrite, /sound, /speak, /splay, /sreq, /strip, /switchbar

T /timer, /timestamp, /tip, /tips, /titlebar, /tnick, /tokenize, /toolbar, /topic /tray, /treebar

U /ulist, /unload, /unset, /unsetall, /updatenl, /url, /username, /uwho

V /var, /vcadd, /vcmd, /vcrem, /vol

W

X /xyzzy