stereo channel splitting

Philipp Kraus <[email protected]> Thu, 9 Aug 2012 11:03:18 +0200
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
Hello,

I read with
alcCaptureSamples(m_device, (ALCvoid*)(&l_buffer[i]), l_samplesread);
data into a vector (blocking call till the vector stores vector.size() 
samples).

On mono signals everything works fine and now I would like to add 
stereo support.
I have found, that the i-th sample in the vector is the left channel 
and the (i+1)-th sample
the right channel. Is this correct?

So if I have read my vector how can I seperate the left / right 
channel. Can I used a alc function
or should I split it manually?
I think on a manual splitting I need a "(sample not read of the buffer 
before + position) % 2" are for the left channel.

Thanks

Phil


_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal