java Programming Glossary: currdb
java sound fade out http://stackoverflow.com/questions/471112/java-sound-fade-out has to to take a second or two to prevent clicks. float currDB 0F float targetDB 0F float fadePerStep .1F .1 works for applets.. run fading true prevent running twice on same sound if currDB targetDB while currDB targetDB currDB fadePerStep gainControl.setValue.. running twice on same sound if currDB targetDB while currDB targetDB currDB fadePerStep gainControl.setValue currDB try..
|