WoW:API PlayMusic: Difference between revisions
Jump to navigation
Jump to search
PlayMusic -Documentation by Holo-
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
: If any of the built-in music is playing when you call this function (e.g. Stormwind background music), it will fade out. | : If any of the built-in music is playing when you call this function (e.g. Stormwind background music), it will fade out. | ||
: The file you specified will loop until you call [[API StopMusic|StopMusic]]. | : The file you specified will loop until you call [[API StopMusic|StopMusic]]. | ||
: (Not verified): since World of Warcraft uses the FMOD sound engine, it is very likely that other file formats than mp3 are supported. For example OggVorbis (.ogg). | |||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 10:08, 29 August 2006
PlayMusic("mp3");
Plays the given mp3.
- Arguments
- ("mp3")
- mp3
- String - This is the complete path to an mp3. It is relative to your World of Warcraft\Data sub-folder!
- Example
PlayMusic("Sound\\Music\\GlueScreenMusic\\wow_main_theme.mp3");
- Details
- This function plays the given music file (file format has to be mp3, I think. I have not tried others.) You cannot pause the playback. You can stop it with StopMusic.
- If any of the built-in music is playing when you call this function (e.g. Stormwind background music), it will fade out.
- The file you specified will loop until you call StopMusic.
- (Not verified): since World of Warcraft uses the FMOD sound engine, it is very likely that other file formats than mp3 are supported. For example OggVorbis (.ogg).