I have af buffer filled with data PCM 16 bit stereo data.
How do i convert a sample to a integer?
Should'nt this work (only the first channel!) ?
for (int i=0; i<4000; i+=4)
{
int b1 = buffer[i];
int b2 = buffer[i+1];
int s = (b1<<8) | b2;
}
s printed does not give me a classic sound graph
How do i convert a sample to a integer?
Should'nt this work (only the first channel!) ?
for (int i=0; i<4000; i+=4)
{
int b1 = buffer[i];
int b2 = buffer[i+1];
int s = (b1<<8) | b2;
}
s printed does not give me a classic sound graph