Solved

Join 2 wav files using Visual C++

Posted on 2002-07-23
2
411 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now