i'm using Clip to play some wav files in a simple gui.
i thought it would be cool if i have a slide bar to control the volume so i googled that and found many examples like this:
(FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN); gainControl.setValue(-10.0f);
but i couldn't make it work:mad:
so,how i can adjust the volume while playing the audio using a slider bar?


Sign In
Create Account


Back to top









