¡@

Home 

java Programming Glossary: targetdb

java sound fade out

http://stackoverflow.com/questions/471112/java-sound-fade-out

a second or two to prevent clicks. float currDB 0F float targetDB 0F float fadePerStep .1F .1 works for applets 1 is okay for.. between 0 and 1 value value 0.0 0.0001 value 1.0 1.0 value targetDB float Math.log value Math.log 10.0 20.0 if fading Thread t new.. fading true prevent running twice on same sound if currDB targetDB while currDB targetDB currDB fadePerStep gainControl.setValue..