tags:

views:

19

answers:

0

I want to change the volume of an audio file and save the new file using java.sound.sampled.

I tried to use the mixer to create a source line from the file given and a target line to the new file. So that I can change the mixer settings to change the volume. But the sound is being played to the system speaker. Am I thinking along correct way or not? Is there any other way to record a file from a line?

The code is available here A solution I got is www.jsresources.org/examples/AmplitudeConverter.html. But can the same be done within java.sound.sampled without using external libraries.