I’m using Java sound to play back a number of sound samples with the Clip.start() method.
Given this, what is the best way to control the playback volume?
In particular, I’m very keen that the solution will work reliably across platforms.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just replace
gainAmountwith a float representing the gain in decibels. Can be positive or negative.