libsdl-org / SDL_mixer

An audio mixer that supports various file formats for Simple Directmedia Layer.
zlib License
431 stars 147 forks source link

Add Mix_PauseGroup and Mix_ResumeGroup functions #560

Closed ghost closed 1 year ago

ghost commented 1 year ago

Adds a couple helper functions similar to Mix_HaltGroup that make it easy to pause and resume groups of channels together. In my game I group in-game sounds so I can easily pause and resume them when the game pauses.

slouken commented 1 year ago

This seems like a great addition, thanks!