melonJS
melonJS copied to clipboard
Audio Improvements
Hi
Some improvements for the Audio API:
- Create the function "getCurrentTrack" - returns the current Music Track Playing ID or the function "isCurrentTrack(ID)" - compare the ID with the current Music Playing. The idea is find the actual music track playback.
- When calling the function me.audio.disable, all music tracks in playback must be stopped.
- Add volume and mute control to audio. The HTML5 audio has the atributes media . volume [ = value between 0 and 1 ] and media . muted [ = value true or false ]:
http://dev.w3.org/html5/spec/single-page.html#effective-media-volume http://html5doctor.com/html5-audio-the-state-of-play/
Thanks!
looks good to me ! I will add it later after some more testing :)
thanks!
@parasyte here is it !
if we both agree on this, I think we are done here :)
@obiot I like it! let's close it up. :)
Hi guys
Tested the lastest 0.9.7 version and worked like a charm!
Sorry for the late feedback :(
Thanks!
@ciangames no problem, thank you for the feedback :)