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 Guide}} | |
− | |||
− | + | '''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 = | ||
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 | + | '''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]] | ||
− | + | = Supported Formats = | |
mIRC supports the following media formats: <code>.wma,.mp3,.wav,.mid,.ogg</code> | mIRC supports the following media formats: <code>.wma,.mp3,.wav,.mid,.ogg</code> | ||
− | '''Note:''' The <code>.mp3,.wma & .ogg</code> formats are all considered the same format when using | + | '''Note:''' The <code>.mp3,.wma & .ogg</code> formats are all considered the same format when using <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 | + | 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 = | |
<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> | ||
− | == | + | == Flags == |
− | * | + | * -wmp - Indicates that the function (only Stop or Skip can be used with those) will be done on the specified format that are playing where -w indicated a WAVE format, -m a MIDI format and -p a MP3/OGG/WMA format. You can specify more than one switch at the same time for Stop but not for Skip. |
− | + | * -q - Adds the file to a queue for that format, 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, in milliseconds, for your sound to either start from or seek. | |
− | |||
− | |||
− | * | ||
− | * | ||
− | * | ||
− | * | ||
− | + | = 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. | 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 - <code>/splay pause</code> is used to pause the playing music |
− | * | + | * Resume - <code>/splay resume</code> allows you to resume the paused 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. |
− | * | + | * Skip - <code>/splay skip</code> allows you to skip the currently playing music file. |
− | + | == Volume Options == | |
− | You can control the volume of your system (and | + | You can control the volume of your system (and therefore of the music played in mIRC) with the /vol command. |
− | + | === Synopsis === | |
<source lang="mIRC">/vol -wmpvuN [volume]</source> | <source lang="mIRC">/vol -wmpvuN [volume]</source> | ||
− | + | === Flags === | |
− | * | + | * -w - Changes the volume for WAVES |
− | * | + | * -m - Changes the volume for MIDI |
− | * | + | * -p - Changes the volume for MP3/WMA/OGG. |
− | * | + | * -v - Sets the master volume |
− | * | + | * -uN - Sets the mute setting, N = 1 for on, N = 2 for off |
− | * | + | * [volume] - A number indicating the volume, range from 0 (no sound) to 65535 (max). |
− | = | + | = Music finished, Now What? = |
− | After | + | After the music finished playing, it will trigger an event. |
− | The | + | The on mp3end, on waveend and on midiend events will trigger respectively for a mp3/wma/ogg format, and the undocumented on songend event will trigger for any format. |
− | + | == Synopsis == | |
<source lang="mIRC"> | <source lang="mIRC"> | ||
on <level>:mp3end|midiend|waveend|songend:<commands> | on <level>:mp3end|midiend|waveend|songend:<commands> | ||
</source> | </source> | ||
− | The local identifier | + | The local identifier $filename will return the complete filename that finished playing. |
+ | |||
+ | '''Note:''' these events will not trigger if you use /splay to play another sound or to stop a sound being played, they only trigger if the sound finishes playing completely. | ||
− | + | = Any useful $identifier I can use? = | |
Of course! Here is the list: | Of course! Here is the list: | ||
Line 94: | Line 91: | ||
</source> | </source> | ||
− | + | = Examples = | |
<source lang="mIRC"> | <source lang="mIRC"> | ||
;Play the mp3 file, if an mp3 file is already playing, it is stopped before. | ;Play the mp3 file, if an mp3 file is already playing, it is stopped before. | ||
Line 112: | Line 109: | ||
;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 118: | ||
</source> | </source> | ||
− | [[Category:mIRC | + | [[Category:mIRC]] |