Given multiple audio streams, I need to mix them into a single stream. I know that in principle all I need to do is add the corresponding samples.
The issue is: The "input" streams have different sample rates. Therefore there are no "corresponding" samples for all samples. Thus the plan to "resample" the input streams. I see two options.
I resample to say the highest sample rate present in the input streams.
Or, I resample to the lowest common multiple of the input streams' sample rates. This might require a very high number of samples.
Does the later provide a benefit quality-wise?
Example: One audio stream has a sample rate of 44.1kHz, and another a sample rate of 48kHz. The least common multiple would be 7056kHz.