?
Solved

Join 2 wav files using Visual C++

Posted on 2002-07-23
2
Medium Priority
?
434 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

770 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