SDL Wiki
(This function is part of SDL_mixer, a separate library from SDL.)


Pause the music stream.

Header File

Defined in SDL_mixer.h


void Mix_PauseMusic(void);


Pausing the music stream will prevent further playback of the assigned music object, but will maintain the object's current mixing position. When resumed, this channel will continue to mix the music where it left off.

Paused music can be resumed by calling Mix_ResumeMusic().

It is legal to halt paused music. Playing a new music object when music is paused will replace the current music and unpause the music stream.


This function is available since SDL_mixer 3.0.0.

CategoryAPI, CategoryAPIFunction

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.