WoW:API PlayMusic: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 23: Line 23:


  PlayMusic("Sound\\Music\\GlueScreenMusic\\wow_main_theme.mp3");
  PlayMusic("Sound\\Music\\GlueScreenMusic\\wow_main_theme.mp3");
PlayMusic("website.com");


----
----
Line 32: Line 34:
: 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]].
: This Function can be used with website url's such as those used by Internet Radio Stations.


: (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).
: (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}}