Solved

Join 2 wav files using Visual C++

Posted on 2002-07-23
2
418 Views
Last Modified: 2013-12-03
Hi

I am trying to write a class that takes 3 wav file names. It then appends the second to the first, and saves it as the third file name. The format of the wav files are identical and fixed.
I don't need to record or play anything, just join the two wav files and save. It would be great if I could be pointed to any sample code that shows how to manipulate wav files that works inside Visual C++.

thanks

0
Comment
Question by:dbs
2 Comments
 
LVL 8

Accepted Solution

by:
fl0yd earned 100 total points
ID: 7172442
Use mmioOpen/mmioGetInfo/mmioAscend/mmioDescend/mmioWrite. You can find further information on the msdn-page at: http://msdn.microsoft.com/library/en-us/multimed/mmio_4ien.asp
and
http://msdn.microsoft.com/library/en-us/multimed/mmfunc_27ar.asp

The solution is quite straight forward. Open those two source files and make sure that they DO HAVE the same format -- noone knows what you are going to do with the application in the future so don't rely on anything that might change. Create a new MMIOINFO-structure with the appropriate values, i.e. copy the values that won't change and add those like filesize. Write the header to the target file followed by the two wave chunks. That's all.
0
 

Author Comment

by:dbs
ID: 7173711
Thanks, that is about what I needed to get going.

0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question