File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Wav file editing with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Wav file editing with Java" Watch "Wav file editing with Java" New topic

Wav file editing with Java

Callum MacGregor

Joined: Jul 18, 2001
Posts: 1
Does anyone know of any open-source java that will let me either merge or append two wav files (or even both!). Even just the compiled class would do, if it works.
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
I don't know of a java wav encoder/decoder example but I've worked a lot with aiff files. All you have to do is find a detailed specification of the file format (ussually a header with info and then the data in raw bytes). With this info you can strip the headers, append the files (and lots of other things, if you want) then create new header containing the info about the new data length. Then write the data out to a new file.
Here's a bit of info on the file format,
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
check the JMF (JavaMediaFramework) at . i dont know what feature it offers exactly but i think this coudl do.
there is an all java version and a performance pack version (which is not available for all platforms). the performance pack offers better performance (good name then) and more features since it relys on native code.
I agree. Here's the link:
subject: Wav file editing with Java
It's not a secret anymore!