Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Appending two mp3 files

843802Dec 14 2006 — edited Dec 18 2006
I need to append to mp3 files into a single mp3 file.
let us say we have 1.mp3 and 2.mp3 then we need to append 1 and 2 into 3.mp3 so that the third mp3 file will play the first and then the second mp3 file.

but the sound api by sun does not support the mp3 file format so
AudioInputStream audioInputStream1= AudioSystem.getAudioInputStream(fileIn);
is throwing an unsupported format exception.

but for wav files its working perfect by using the SequenceInputStream.
I need the same for the mp3 files also .
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2007
Added on Dec 14 2006
1 comment
187 views