play package:sdl2-mixer

Play a Chunk once, using the first available Channel.
Same as play, but keeps playing the Chunk forever.
Same as playOn, but imposes an upper limit in Milliseconds to how long the Chunk can play. The playing may still stop before the limit is reached. This is the most generic play function variant.
Plays a given Music a certain number of Times. The previously playing Music will be halted, unless it is fading out in which case a blocking wait occurs until it fades out completely.
Same as play, but plays the Chunk using a given Channel a certain number of Times. If AllChannels is used, then plays the Chunk using the first available Channel instead. Returns the Channel that was used.
Gets the most recent Chunk played on a Channel, if any. Using AllChannels is not valid here, and will return Nothing. Note that the returned Chunk might be invalid if it was already freed.
Returns whether the given Channel is playing or not. If AllChannels is used, this returns whether any of the channels is currently playing.
Returns how many Channels are currently playing.
Returns whether a Music is currently playing or not. Note that this returns True even if the Music is currently paused.
Gets the MusicType of currently playing Music, if any.