KilledByAPixel / LittleJS

LittleJS is a fast HTML5 game engine with many features and no dependencies. 🚂 Choo-Choo!
Other
3.35k stars 172 forks source link

improve sound control #106

Closed KilledByAPixel closed 1 month ago

KilledByAPixel commented 2 months ago

add master gain node for volume control a way to pause sounds and music

isacben commented 2 months ago

Thanks for considering it!

KilledByAPixel commented 1 month ago

I added a master gain node!

no way to pause sound yet, that is a little trickier.

https://github.com/KilledByAPixel/LittleJS/commit/e9322c86775d16738fd1bb76d53c617c0cc1d621