Hi all,
I used this (snippet)
to increase/decrease volume of a sound file by clicking on a button.PHP Code:for (a=0, a>100, a++); or
for (a=100. a<1. a--);
setVol(a)
It is working in the debug screen and it is working with the actual sound file. But instead of fading in or out, it just goes straight from 0-100 or 100-0 instantly. Is there a way to put a time delay between the counts?




Reply With Quote