Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 votes

Since we are generating our own waves to make sound in the code, what is the best way to control the volume in the GUI?

asked in CSC 305 Fall 2024 by (4.9k points)

1 Answer

+5 votes
 
Best answer

I would recommend looking into FloatControl which is an object you can create from the javax.sound.sampled library to control the volume.

answered by (1.8k points)
selected by
...