File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Wav file editing with Java" Watch "Wav file editing with Java" New topic
Author

Wav file editing with Java

Callum MacGregor
Greenhorn

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
author
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, http://www.technology.niagarac.on.ca/courses/comp630/WavFileFormat.html
Sean
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi,
check the JMF (JavaMediaFramework) at javasoft.com . 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.
karl
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wav file editing with Java