![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Mixing Two Audio files using the Right Shift by two bitsHello, guys.
I am having trouble mixing two audio files. I am looking for some info on "Mixing Two Audio files using the Right Shift by two bits". Any kind of help is much appreciated. Thank you. |
|||
|
#2
|
|||
|
|||
Re: Mixing audio filesQuote:
What is the program specification? That is: Exactly what is the program required to do. Exactly. What have you tried? Quote:
In general, "mixing" audio is conceptually simple if the files contain audio values taken at the same sample rate and they both start at the same time and have the same number of samples. Here's the drill: For each sample time, add the sample values and divide by two. To avoid overflow, instead of adding and then dividing, you probably want to divide each sample by two and then add. For integer data types (signed two's complement or unsigned), dividing by two is equivalent to shifting right by one bit. Regards, Dave |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bloodshed Dev C++ Project Options | JdS | C++ Forum | 6 | 11-Nov-2005 18:23 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 22:47 |
| I need a reliable audio video webhost | onauc | Web Hosting Forum | 1 | 20-Dec-2004 10:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The