
Originally Posted by
kwinse
There is a noticeable delay after you click+release before the volume change takes effect. I'd estimate 2 seconds for Firefox, 1 for Chrome, and instant in flash-terniabound.
Oh... I'm confused now. You seemed to be describing the opposite effect before.
This issue, I'm afraid I might not be able to resolve. The Audio tag is still pretty experimental as far as I can tell. It seems that the only way to currently change the volume of a running sound is to call "song.volume = blah", and since that's not a function call, the browsers media playback would likely only notice if it checked. I'm afraid this is not a resolvable problem on my end, as far as I can tell. Hopefully as HTML5 standards mature this will improve.
Although, I suppose in strict theory, I could completely destroy the current song and start a new one where it was with the changed volume. That would certainly have immediate sound change ramifications. Although I suspect then you'd just get a skip in the song.
EDIT:
Code:
this.asset.volume = globalVolume;
this.asset.pause();
this.asset.play();
Dirty hack is dirty, but it works. Seem good now?