Skip to content

Conversation

@mariovisic
Copy link
Contributor

Currently you can play music on a loop but not sounds, the
Mix_PlayChannel function we're using to play sounds supports passing a
value for the number of loops, so we can send -1 here to loop until
the sound is stopped :)

Currently you can play music on a loop but not sounds, the
`Mix_PlayChannel` function we're using to play sounds supports passing a
value for the number of loops, so we can send `-1` here to loop until
the sound is stopped :)
Now that we're looping sounds, it's more useful to be able to stop
playing a sound, we provide that functionality by recording the sound
channel that was used and stopping that channel.
@nogginly
Copy link
Contributor

Looks great, @mariovisic.

(This also addresses #55)

@mariovisic mariovisic requested a review from blacktm August 29, 2022 00:30
@blacktm blacktm merged commit 954496e into main Sep 2, 2022
@blacktm blacktm deleted the loop_sounds branch September 2, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants