Download source code - 63.1 Kb
The WAVE file format is a subset of Microsoft's RIFF specification for the storage of multimedia files. A RIFF file starts out with a file header followed by a sequence of data chunks. A WAVE file is often just a RIFF file with a single "WAVE" chunk which consists of two sub-chunks -- a "fmt " chunk specifying the data format and a "data" chunk containing the actual sample data. Call this form the "Canonical form".
The main idea is to create only one header for all wav files that want to concatenate and then write data of each file in single file.
more details in CodeProject
http://www.codeproject.com/useritems/Concatenation_Wave_Files.asp
References
http://ccrma.stanford.edu/courses/422/projects/WaveFormat/
http://www.sonicspot.com/guide/wavefiles.html
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=31678&lngWId=1
Subscribe to:
Post Comments (Atom)
2 comments:
Great article! It was extremely helpful to help me better understand the format of wave headers. Although I've done a lot with .NET, I don't know much about wave files at this point and will need to "merge" two together (music in the background with talking in the foreground for instance). Are you aware of any good resources that would cover that type of wave file merging or integration with .NET?
Great article! It was extremely helpful to help me better understand the format of wave headers. Although I've done a lot with .NET, I don't know much about wave files at this point and will need to "merge" two together (music in the background with talking in the foreground for instance). Are you aware of any good resources that would cover that type of wave file merging or integration with .NET?
Post a Comment