melonJS icon indicating copy to clipboard operation
melonJS copied to clipboard

Audio Improvements

Open aaschmitz opened this issue 14 years ago • 25 comments

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!

aaschmitz avatar Sep 22 '12 02:09 aaschmitz

looks good to me ! I will add it later after some more testing :)

thanks!

ghost avatar Feb 25 '13 08:02 ghost

@parasyte here is it !

if we both agree on this, I think we are done here :)

ghost avatar Feb 25 '13 09:02 ghost

@obiot I like it! let's close it up. :)

parasyte avatar Feb 25 '13 09:02 parasyte

Hi guys

Tested the lastest 0.9.7 version and worked like a charm!

Sorry for the late feedback :(

Thanks!

aaschmitz avatar Mar 01 '13 02:03 aaschmitz

@ciangames no problem, thank you for the feedback :)

ghost avatar Mar 01 '13 02:03 ghost