From WikiChip
Editing mirc/playing music

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|Playing Music}}
+
{{mIRC Guide}}
'''Playing music''' in mIRC is really a very simple process, easily accomplished through the use of the {{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.
+
'''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 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.
 
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.
  
'''Note:''' Alternatively, you may use the {{mIRC|/ebeeps}} command to enable sounds in mIRC: <code>/ebeeps on</code>
+
'''Note:''' Alternatively, you may use the [[/ebeeps command - mIRC|/ebeeps command]] to enable sounds in mIRC: <code>/ebeeps on</code>
  
 
[[File:Options-sounds2.png|Enabling mIRC Sounds]]
 
[[File:Options-sounds2.png|Enabling mIRC Sounds]]
Line 14: Line 14:
 
'''Note:''' The <code>.mp3,.wma & .ogg</code> formats are all considered the same format when using the <code>/splay</code> command.
 
'''Note:''' The <code>.mp3,.wma & .ogg</code> formats are all considered the same format when using the <code>/splay</code> command.
  
Multiple file formats can be played at the same time. However, 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 if you're not queuing the file: the first ''.wav'' file will be stopped and the second one then played. Make sure to keep in mind what has been said regarding the formats <code>.mp3,.wma & .ogg</code>; they are all treated the same with the {{mIRC|/splay}} command, so only one of those types may play at a time.
+
Multiple file formats can be played at the same time. However, 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 if you're not queuing the file: the first ''.wav'' file will be stopped and the second one then played. Make sure to keep in mind what has been said regarding the formats <code>.mp3,.wma & .ogg</code>; they are all treated the same with the [[/splay command - mIRC|/splay command]], so only one of those types may play at a time.
  
 
== Synopsis ==
 
== Synopsis ==
 
  <source lang="mIRC">/splay -cwmpq [filename | stop | pause | resume | seek | skip] [pos]</source>
 
  <source lang="mIRC">/splay -cwmpq [filename | stop | pause | resume | seek | skip] [pos]</source>
  
=== Switches ===
+
=== Flags ===
 
* <code>-wmp</code> - Indicates that the feature (only Stop or Skip features may be used with these flags) will be done on the specified media format that is currently playing.
 
* <code>-wmp</code> - Indicates that the feature (only Stop or Skip features may be used with these flags) will be done on the specified media format that is currently playing.
 
** <code>-w</code> - '''WAVE format'''
 
** <code>-w</code> - '''WAVE format'''
 
** <code>-m</code> - '''MIDI format'''
 
** <code>-m</code> - '''MIDI format'''
 
** <code>-p</code> - '''MP3/OGG/WMA formats'''
 
** <code>-p</code> - '''MP3/OGG/WMA formats'''
'''Note:''' You may specify more than one of the above switches at the same time for the Stop feature, but not for Skip.
+
'''Note:''' You may specify more than one switch at the same time for the Stop feature, but not for Skip.
 
 
=== Parameters ===
 
 
* <code>-q</code> - Adds the file to the queue for that format. The first file in the queue, for that format, is played when a song of that format ends its playback.
 
* <code>-q</code> - Adds the file to the queue for that format. The first file in the queue, for that format, is played when a song of that format ends its playback.
 
* <code>[filename]</code> - The file name for the sound file you wish to use. Typically, this only needs to be specified when you want to play or queue a file; other than those times, you would only use the flag for the sound file's type for manipulating how it acts.
 
* <code>[filename]</code> - The file name for the sound file you wish to use. Typically, this only needs to be specified when you want to play or queue a file; other than those times, you would only use the flag for the sound file's type for manipulating how it acts.
Line 36: Line 34:
  
 
=== Playback Options ===
 
=== Playback Options ===
* '''Pause''' - <code>/splay pause</code> is used to pause the playing music
+
* '''Pause''' - <code>/splay pause</code> is used to pause the playing music (''Only works for <code>.mp3,wma & .ogg</code> formats'').
* '''Resume''' - <code>/splay resume</code> allows you to resume the paused music file
+
* '''Resume''' - <code>/splay resume</code> allows you to resume the paused music file (''Only works for <code>.mp3,wma & .ogg</code> formats'').
 
* '''Stop''' - <code>/splay stop</code> will stop the current music file.
 
* '''Stop''' - <code>/splay stop</code> will stop the current music file.
* '''Seek''' - <code>/splay seek [pos]</code> will go to a certain point in the music  
+
* '''Seek''' - <code>/splay seek [pos]</code> will go to a certain point in the music (''Only works for <code>.mp3,wma & .ogg</code> formats'').
 
* '''Skip''' - <code>/splay skip</code> allows you to skip the currently playing music file. If no other files are present in the queue for that particular sound type, no other file will play.
 
* '''Skip''' - <code>/splay skip</code> allows you to skip the currently playing music file. If no other files are present in the queue for that particular sound type, no other file will play.
  
Line 52: Line 50:
 
* <code>-p</code> - Changes the volume for MP3/WMA/OGG only.
 
* <code>-p</code> - Changes the volume for MP3/WMA/OGG only.
 
* <code>-v</code> - Sets the master volume for the system, which increases volume across all levels.
 
* <code>-v</code> - Sets the master volume for the system, which increases volume across all levels.
* <code>-uN</code> - Sets the mute setting: N = 1 turns the mute on, N = 2 turns the mute off.
+
* <code>-uN</code> - Sets the mute setting: <code>1=ON, 2=OFF</code>.
 
* <code>[volume]</code> - A number indicating the volume, range from 0 (no sound) to 65535 (max).
 
* <code>[volume]</code> - A number indicating the volume, range from 0 (no sound) to 65535 (max).
  
 
== Sound Finished, Now What? ==
 
== Sound Finished, Now What? ==
After a sound file has finished playing, it will trigger an event. These events '''will not''' trigger for a file stopped with <code>/splay stop</code> or skipped with <code>/splay skip</code> commands, regardless of the switches/parameters used.
+
After a sound file has finished playing, it will trigger an event. These events '''will not''' trigger if you have used the <code>/splay stop</code> or <code>/splay skip</code> commands, regardless of the flags.
  
The <code>ON MP3END, ON WAVEEND & ON MIDIEND</code> events will trigger for the <code>.mp3,.wma,.ogg</code>, the <code>.wav</code> & the <code>.mid</code> formats, respectively. The ''undocumented'' <code>ON SONGEND</code> event will trigger for any of these five formats.
+
The <code>ON MP3END, ON WAVEEND & ON MIDIEND</code> events will trigger for <code>.mp3,.wma,.ogg</code>, <code>.wav</code> & <code>.mid</code> formats, respectively. The ''undocumented'' <code>ON SONGEND</code> event will trigger for any of these five formats.
  
 
=== Synopsis ===
 
=== Synopsis ===
Line 65: Line 63:
 
</source>
 
</source>
  
The local identifier, {{mIRC|$filename}}, will return the complete file name that has finished playing.
+
The local identifier, [[$filename identifier - mIRC|$filename]], will return the complete file name that has finished playing.
  
 
== Any useful $identifier I can use? ==
 
== Any useful $identifier I can use? ==
Line 112: Line 110:
  
 
  ;Skip the song currently playing for the wave format
 
  ;Skip the song currently playing for the wave format
  /splay -w skip
+
  /splay -w skip 1000
  
 
  ;Set the master volume to 32200
 
  ;Set the master volume to 32200
Line 121: Line 119:
 
</source>
 
</source>
  
[[Category:mIRC|playing music]]
+
[[Category:mIRC]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)