?
Solved

Join 2 wav files using Visual C++

Posted on 2002-07-23
2
Medium Priority
?
439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
fl0yd earned 300 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

649 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