• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wav file editing with Java

 
Callum MacGregor
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic