I calculate a function about volume and db :
If db 0 = original volume, -10 is half, 10 is double ( but max is 0), then :
Volume = 2 ^ ( db / 10 )
db = 10 * log( Volume ) / log( 2 )
Range of value:
0 <= Volume <= 1;
1 = original volume, 0 = silence.
-Infinity ( or -60 for human ear ) <= db <= 0 ;
0 = original volume, -Infinity or -60 = silence.
And I made a little sample capx about fade in/out.
Here is Sample : dl.dropboxusercontent.com/u/507 ... index.html
And capx : drive.google.com/file/d/0BzBB_g ... sp=sharing
not sure is it correct, but sounds good to me.
If you cannot hear the sound please wait a second or refresh. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />
Thanks.
<img src="{SMILIES_PATH}/icon_e_surprised.gif" alt=":o" title="Surprised" /> <img src="{SMILIES_PATH}/icon_e_surprised.gif" alt=":o" title="Surprised" /> <img src="{SMILIES_PATH}/icon_e_surprised.gif" alt=":o" title="Surprised" /> YOU ARE A MASTER OF SOUND <img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /> <img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /> <img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" />
thanks a lot
I spent two days breaking my head for this and nothing (until now <img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /> )