WoW:API StopMusic: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added information about how this function interacts with the built-in music)
m (Move page script moved page API StopMusic to API StopMusic without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>'''StopMusic''' ''-Documentation by [[user:Holo|Holo]]-''</center>
{{wowapi}} __NOTOC__
 
Stops the currently played music file.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
 
  StopMusic();
  StopMusic();


<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
==Notes==
 
Stops the currently played music file.
This does '''not''' affect the built-in zone music, only music files that are played with [[API PlayMusic|PlayMusic]].
This does '''not''' affect the built-in zone music, only music files that are played with [[API PlayMusic|PlayMusic]].


----
Before Patch 2.2, this function would fade the currently playing music out.  After Patch 2.2, it stops it immediately without a fade.
 
{{Template:WoW API}}

Latest revision as of 04:47, 15 August 2023

WoW API < StopMusic

Stops the currently played music file.

StopMusic();

Notes[edit]

This does not affect the built-in zone music, only music files that are played with PlayMusic.

Before Patch 2.2, this function would fade the currently playing music out. After Patch 2.2, it stops it immediately without a fade.