If you want to extract one channel, you need to go over the sample data and only pick every other sample.
Great, so if I for example want to create stereo sound where only left speaker is loud and right is quiet my Samples array would be
{1879, 0, 3751, 0, 5608, 0, 7444, 0, 9250, 0} //only a lot longer ofc
and when I want to play the same thing on both speakers, I would create
{1879, 1879, 3751, 3751, 5608, 5608, 7444, 7444, 9250, 9250}
Thank you for help!