Philipp Kraus
2012-08-09 09:03:18 UTC
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
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