From WikiChip
Difference between revisions of "mirc/playing music"
< mirc

m
Line 2: Line 2:
 
{{mIRC Guide}}
 
{{mIRC Guide}}
  
'''Playing music''' in mIRC is really a very simple process and is accomplished through the use of mIRC's [[/splay command - mIRC|/splay command]].
+
'''Playing music''' in mIRC is really a very simple process, easily accomplished through the use of the [[/splay command - mIRC|/splay command]]. mIRC can also be enhanced by other sounds, not just songs, as well. Depending on how you want your own, custom mIRC experience to be, whether you are a newbie or an advanced scripter, sounds are often added to events in mIRC by some scripters. Creating games in mIRC is an advanced type of script where sounds can greatly enhance a user's experience.
  
 
= Enabling mIRC Sounds =
 
= Enabling mIRC Sounds =
In order for you to be able to play music sounds must be enabled. You can do so by going to the option dialog (Alt+O) -> Sounds -> <check> Enable sounds, you can also just type "/ebeepe on". This will make sure that mIRC can play the sounds that you want.
+
In order for you to be able to play music or any other type of sound in mIRC, you must first enable sounds. Sounds can be enabled simply by going to the options dialog (Alt+O), then clicking on the 'Sounds' option in the left-hand side list, and then placing a check mark into the ''Enable Sounds''. Below is a screenshot of the options window with the ''Enable Sounds'' option ticked.
 +
 
 +
[[File:Options-sounds2.png|Enabling mIRC Sounds]]
  
 
= Support =
 
= Support =
Below is a list of the supported media formats for use with the <code>/splay</code> command:
+
mIRC supports the following media formats: <code>.wma,.mp3,.wav,.mid,.ogg</code>
* .wma
 
* .mp3
 
* .wav
 
* .mid
 
* .ogg
 
 
 
 
 
Multiple files formats can be played at the same time, but you '''cannot''' play multiple files of the same format at the same time.
 
  
For example, you can play one wma, one mp3 and one mid at the same time, but you cannot play two mp3s at the same time, mIRC will simply change the current mp3 song to the one you provided if it's an mp3 and if the request isn't queued.
+
Multiple file formats can be played at the same time, but you '''cannot''' play multiple files, of the same format, at the same time. For instance, you can play a ''.wav'' file at the same time as an ''.mp3'' file, but you cannot play a ''.wav'' file and another ''.wav'' file at the same time. The second ''.wav'' file will take precedence where the first ''.wav'' file will be stopped and the second one then played.
  
 
= Synopsis =
 
= Synopsis =
  /splay -cwmpq [filename | stop | pause | resume | seek | skip] [pos]
+
  <source lang="mIRC">/splay -cwmpq [filename | stop | pause | resume | seek | skip] [pos]</source>
  
 
== Flags ==
 
== Flags ==
Line 33: Line 27:
 
When you are ready to play a sound, you would simply use one of the following, basic commands:
 
When you are ready to play a sound, you would simply use one of the following, basic commands:
  
  /splay C:\Directory_To_Music_File\MusicFile.mp3
+
  <source lang="mIRC">/splay C:\Directory_To_Music_File\MusicFile.mp3</source>
 
If the file is not in the mIRC directory, a full file path is required (quotes are not needed).
 
If the file is not in the mIRC directory, a full file path is required (quotes are not needed).
  
Line 47: Line 41:
 
* Skip - <code>/splay skip</code> allows you to skip the currently playing music file.
 
* Skip - <code>/splay skip</code> allows you to skip the currently playing music file.
  
Using <code>-w,-m, or -p</code> will allow you to use the file type switches to control only specific kinds of files. For example: <code>/splay -w stop</code> will stop '''only wave''' files.
+
Using <code>-w,-m, or -p</code> will allow you to use the file type switches to control only specific kinds of files. For example: <source lang="mIRC">/splay -w stop</source> will stop only the ''.wav'' file that is currently playing.
  
  
 
[[Category:mIRC]]
 
[[Category:mIRC]]

Revision as of 22:25, 29 December 2013

Text document with shapes.svg This article is still a stub and needs your attention. You can help improve this article by editing this page and adding the missing information.
Template:mIRC Guide

Playing music in mIRC is really a very simple process, easily accomplished through the use of the /splay command. mIRC can also be enhanced by other sounds, not just songs, as well. Depending on how you want your own, custom mIRC experience to be, whether you are a newbie or an advanced scripter, sounds are often added to events in mIRC by some scripters. Creating games in mIRC is an advanced type of script where sounds can greatly enhance a user's experience.

Enabling mIRC Sounds

In order for you to be able to play music or any other type of sound in mIRC, you must first enable sounds. Sounds can be enabled simply by going to the options dialog (Alt+O), then clicking on the 'Sounds' option in the left-hand side list, and then placing a check mark into the Enable Sounds. Below is a screenshot of the options window with the Enable Sounds option ticked.

Enabling mIRC Sounds

Support

mIRC supports the following media formats: .wma,.mp3,.wav,.mid,.ogg

Multiple file formats can be played at the same time, but you cannot play multiple files, of the same format, at the same time. For instance, you can play a .wav file at the same time as an .mp3 file, but you cannot play a .wav file and another .wav file at the same time. The second .wav file will take precedence where the first .wav file will be stopped and the second one then played.

Synopsis

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

Flags

  • -wmp - Indicates that the function (stop, pause, resume, seek, skip) will be done on the wav (-w), midi (-m), and/or mp3 (-p) file that is currently playing.
  • -q - Adds the file to a queue, first file in the queue for that format is played when a song of that format ends its playback.
  • [filename] - The file name for the mIRC file.
  • [stop|pause|resume|seek|skip] - Allows further control over existing playing file; their titles are their respective functions. These are discussed, in more detail, further down.
  • [pos] - This optional parameter is used to point out the location in the music file. For example, if you wanted to start a music file at a specific point, you would use: /splay C:\My Music\Nickelback\Rockstar.mp3 1500

Examples

When you are ready to play a sound, you would simply use one of the following, basic commands:

/splay C:\Directory_To_Music_File\MusicFile.mp3

If the file is not in the mIRC directory, a full file path is required (quotes are not needed).


Music Playing, Now What?

After the music is playing, you have a few options available for manipulating the playback. If you are making a full Music Player, for example in a dialog form, these options are really helpful.

Playback Options

  • Pause - /splay pause is used to pause the playing music
  • Resume - /splay resume allows you to resume the paused music file.
  • Stop - /splay stop will stop the current music file.
  • Seek - /splay seek [pos] will go to a certain point in the music. Example: /splay seek 1000
  • Skip - /splay skip allows you to skip the currently playing music file.
Using -w,-m, or -p will allow you to use the file type switches to control only specific kinds of files. For example:
/splay -w stop
will stop only the .wav file that is currently playing.