845732 wrote:Clips are exclusively for playing audio files. There is no way to use them to record a new file.
Hi. I need to open an audio file, then select part which will be looped. I did it with Clip, but I don't know how to save this looped part into new file. I also don't know how to edit frames - I want to add fade-in and fade-out effect at begining and end of the clip. May you explain me how to do that?
845732 wrote:There's no reason to create a clip of it... you can play an AudioInputStream by writing its contents to a SourceDataLine...
But still, I can't find any example showing how to create a clip from part of an AudioInputStream (byte array?).