MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / stop

Method stop

src/Engine/Music.cpp:106–116  ·  view source on GitHub ↗

* Stops all music playing. */

Source from the content-addressed store, hash-verified

104 * Stops all music playing.
105 */
106void Music::stop()
107{
108#ifndef __NO_MUSIC
109 if (!Options::mute)
110 {
111 func_mute();
112 Mix_HookMusic(NULL, NULL);
113 Mix_HaltMusic();
114 }
115#endif
116}
117
118/**
119 * Pauses music playback when game loses focus.

Callers

nothing calls this directly

Calls 1

func_muteFunction · 0.85

Tested by

no test coverage detected