Scroll to navigation

Mix_PauseMusic(3) SDL_mixer3 FUNCTIONS Mix_PauseMusic(3)

NAME

Mix_PauseMusic - Pause the music stream.

SYNOPSIS

#include "SDL3_mixer/SDL_mixer.h"
void Mix_PauseMusic(void);

DESCRIPTION

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.

AVAILABILITY

This function is available since SDL_mixer 3.0.0.

SDL_mixer 3.0.0 SDL_mixer