Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Looking for code to concatenate .wav files (Read 6623 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Looking for code to concatenate .wav files

We have been trying to find code that can be run as a COM Library or DCOM library that will concatenate together an arbitrary specified number of .wav files.  Thus far we have been unable to find such code either in the open world or for purchase.  If anyone has a lead on a vendor or other location where we can find this kind of code, please let us know.  MANY thanks!  Gary.

Looking for code to concatenate .wav files

Reply #1
Quote
We have been trying to find code that can be run as a COM Library or DCOM library that will concatenate together an arbitrary specified number of .wav files.  Thus far we have been unable to find such code either in the open world or for purchase.  If anyone has a lead on a vendor or other location where we can find this kind of code, please let us know.  MANY thanks!  Gary.
[{POST_SNAPBACK}][/a]


The implementation of it should be easy as long as the wavs are all of the same type, number of channels, sampling rate and bit resolution. Just a matter of copying the first file, then appending the data chunk of second file, then the 3rd...etc

In here you will find the WAV file format: [a href="http://www.wotsit.org/search.asp?page=8&s=music]http://www.wotsit.org/search.asp?page=8&s=music[/url]

Looking for code to concatenate .wav files

Reply #2
I have written two VB apps that split and concatenate WAV files:

You can read about them both in the threads returned by this search.

I could easily adapt CueMake to run as a COM component.

If you search for WavSplit on this forum you will eventually be directed to some Delphi source.

I am hoping to actually work on some .NET classes to manipulate WAVE and CUE files - but I can't see me getting the time for a while.

As Luis G says, if they are of the same format (channels, bitrate, frequency, etc.) it is a piece of cake to concatenate them.

Edit: if you let me know more about how you want to pass the WAVE files (an array of paths, one call per file, etc.) I could see what I can do.
I'm on a horse.

Looking for code to concatenate .wav files

Reply #3
Quote
We have been trying to find code that can be run as a COM Library or DCOM library that will concatenate together an arbitrary specified number of .wav files.  Thus far we have been unable to find such code either in the open world or for purchase.  If anyone has a lead on a vendor or other location where we can find this kind of code, please let us know.  MANY thanks!  Gary.
[{POST_SNAPBACK}][/a]

Hi Gary,

Perhaps you won't need to reimplement it, the open-source sox utility does it very well.

Could you pick a win32 build from [a href="http://sox.sourceforge.net/]there[/url], and call it from your application ? It supports pipes (but I haven't tried in win32) and is fully command-line driven 

Best Regards

Looking for code to concatenate .wav files

Reply #4
How about just "copy /b file1.wav+file2.wav+file3.wav+file4.wav large.wav" in win command prompt?

Looking for code to concatenate .wav files

Reply #5
Depends on whether he needs a well-structured wav file, or just a file that works on a few players 

Looking for code to concatenate .wav files

Reply #6
I know this is kind of an old thread, but there is a new program on doom9 which can merges wavs files together, and they dont even have to be from the same sampleformat or samplerate.

http://forum.doom9.org/showthread.php?t=95265