combining a number of sound files into one filestream?

  • Thread starter Thread starter Milsnips
  • Start date Start date
M

Milsnips

hi there,

any examples or is it possible to open say 3 wav files, and put all their
file streams together into one filestream?

thanks,
Paul
 
hi there,

any examples or is it possible to open say 3 wav files, and put all their
file streams together into one filestream?

thanks,
Paul

Paul,

The Wav file format is fairly direct. The audio data inside the file
could be merged IF all three files are the same format. But
there are different audio formats; sample rates, mono vs stereo, etc.
You will also need to create a new header, as that describes the
length of the internal audio data.

Format description:
http://www.sonicspot.com/guide/wavefiles.html

A Wav file editor project:
http://www.codeproject.com/cs/media/WaveEdit.asp?print=true

There are probably more on CodeProject (my favorite site).

There's often additional info at the end of a WAV file, so when you
reach the audio data chunk, you may not be home free.

Most commercial audio editing software will handle this, and may do
format conversions if necessary. If you do a direct splice of the WAV
data, you can also be subject to a 'tick,' depending on a number of
factors. Some of the commercial software allows blended crossfade to
avoid this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top