btco / qx82

Tiny Javascript engine for retro games
MIT License
421 stars 19 forks source link

Added loop parameter to qx.playSound and qx.stopSound method #5

Closed son-link closed 10 months ago

son-link commented 10 months ago

Added loop parameter to the playSound method to loop the sound.

Added a new method, qx.stopSound(), which stops the playback of the sound passed as parameter

I use this sound for testing and in the example: https://opengameart.org/content/error-management-small-8-bit-loop

btco commented 10 months ago

That looks great! Thanks for adding this. I'll merge but just a heads up that I will replace loop.ogg by my own version because that one is CC-BY-3, and that's more restrictive than this repo's license (MIT).