Hello World,
I would like to manipulate the values from AUDIO_INPUT_LINEIN.
I use memcpy(buffer, queue1.readBuffer(), 256) to read the values and store them to a byte called buffer.
But the values are not byte(8 bits) but int16.
I have to combine them somehow.
I use this command to do it : intValeurR = (buffer[i+1] << 8) | buffer;
but it doesn't work.
My question is simple: how to get the integer 16 values from AUDIO_INPUT_LINEIN on the audio board in order to manipulate them the way I want in my program ?
Thank you all
I would like to manipulate the values from AUDIO_INPUT_LINEIN.
I use memcpy(buffer, queue1.readBuffer(), 256) to read the values and store them to a byte called buffer.
But the values are not byte(8 bits) but int16.
I have to combine them somehow.
I use this command to do it : intValeurR = (buffer[i+1] << 8) | buffer;
but it doesn't work.
My question is simple: how to get the integer 16 values from AUDIO_INPUT_LINEIN on the audio board in order to manipulate them the way I want in my program ?
Thank you all