snowkit / snow

A low level cross platform framework for Haxe. Mac, Windows, Linux, Android, iOS, WebGL.
http://snowkit.org/snow
MIT License
133 stars 35 forks source link

Audio; Web implementation dynamic volume #63

Closed mbalestrini closed 9 years ago

mbalestrini commented 9 years ago

Web Audio: Changing the volume of an already looping sound doesn't work. I saw that snow.platform.web.audio.howlerjs.Sound.set_volume set a volume_dirty flag (that's seems to be used only on play() and loop() methods), and that's it. I think the same thing happens with pan

ruby0x1 commented 9 years ago

Hi! Yes when I was implementing howler it seemed to resist changing the volume as one would expect to do, and it required some forcing to get it to update. This led to the dirty flag so it can force it elsewhere, but this was something that needs to be addressed.

A focus sheet on audio will ensure all platforms are cohesive during the alpha, so it will be resolved quite soon :) Thanks for the report!

ruby0x1 commented 9 years ago

Someone on the chat mentioned that you can get around this by using the sound.info.handle (which is the Howl instance) directly on web target, but this will be resolved relatively soon anyway.

ruby0x1 commented 9 years ago

This should be fixed in the latest commits. There were also some bugs in chrome and howler that were fixed. All properties should have parity again with native.