Solved

# Mixing 2 or more wav files

Posted on 2004-10-27
206 Views

I'm trying to mix together 2 or more 8bit wave files to give me an output of 1 file with both sounds in that out file.  I've come across some information but don't quite understand it.. here is the link... http://www.vttoth.com/digimix.htm.  The information here is what I need.  Can some of you experts make sense of this? Thank You!
0
Question by:windows_programing

LVL 9

Accepted Solution

>> silence is the value 128, and actual amplitude values can go up (129-255) or down (127-0)
he is not talking about amplitude. he is talking about displacement. so your amplitude is now 7-bit instead of 8-bit. you can apply the same formula (Z = A + B - A·B/256) but with slight modification.
you have |Z-128| = |A-128| + |B-128| - |A-128|·|B-128|/128
and sign(Z-128) = (A+B)/2 >= 128 ? + : -
0

Author Comment

Thanks  jhshukla,

One last thing what is . (Dot)  I'm not too good at math :)
0

LVL 9

Expert Comment

Dot = multiplication
0

Author Comment

Thanks !!
0

## Featured Post

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.