What is an algorithm for joining PCM files? I have several PCM files I need to Join them in a way like speakers are speac at the same time.
So How to Join PCM files?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First find a way to process them sample by sample, then just add the samples from all streams together.
You will run into the problem of overflows. If that happens just clamp the resulting value to the maximum/minimum sample value.
You may also want to offer an option to scale the output before clamping to the user and you may also want to report some statistics how often (per second or so) clamping happed, so the user has some control over the sound quality.