Solved

Join 2 wav files using Visual C++

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Event ID 10010 3 77
commandline.codeplex.com required argumen except when displaying help 2 52
What are the big features of MVC5? 4 96
Developing a front end to SPLUNK 1 65
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…

730 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