Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to set audio of a java sound clip

FloatControl volume = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN);
int value = 0.5f;
volume.setValue((float) (Math.log(value) / Math.log(10.0) * 20.0));
 
PREVIOUS NEXT
Tagged: #set #audio #java #sound #clip
ADD COMMENT
Topic
Name
6+5 =