Stereo Audio Samples

BlitzMax Forums/BlitzMax Programming/Stereo Audio Samples

RexRhino(Posted 2005) [#1]
In the documentation example for CreateAudioSample, it uses this code to create a mono sample:
sample.samples[k] = sin(k*360/2)*127.5 + 127.5


I understand how this works for creating a mono sample, but how do we create a stereo sample. I tried using every other sample, in case it is left...right...left...right in the array, but that is not the case. I tried using samples as a multidimentional array, but that does not work. What is the proper way to address left and right samples?