I'm looking for a way to pan the PCM audio I have. At the moment the audio is in a stereo format and I would like to pan it to the desired side (or more/less to a side).
I've recently figured out how to do mixing here so I guess it would be something similar (adding stuff to each other and such). What I was thinking is to add the audio data from one side to the other side.
For example if I were to pan hard left, I'd get the data from the right channel and add it to the left channel. I would then set the right channel to a constant value so that it would be silent.
Am I thinking in the right way or am I missing something obvious?
Thanks in advance!