Hi guys.
I need your help to solve this problem. You see, i need to get the samples from an audio stream, to do FFT analysis. I need to read those amplitudes and pass them to an analyzer so i can check which frequencies are present in the sound.
I'm having trouble accessing the sample values. I tried to create a small program which records sound and prints the values to the screen, but it keeps printing 130 and 131. I print out the bytes which i get from m_audioInputStr eam.read(), where each byte is supposed to represent a sample, since i record 8 bit 8000 samples per sec of audio.
So is there any correct way to do this?
Thanks.
I need your help to solve this problem. You see, i need to get the samples from an audio stream, to do FFT analysis. I need to read those amplitudes and pass them to an analyzer so i can check which frequencies are present in the sound.
I'm having trouble accessing the sample values. I tried to create a small program which records sound and prints the values to the screen, but it keeps printing 130 and 131. I print out the bytes which i get from m_audioInputStr eam.read(), where each byte is supposed to represent a sample, since i record 8 bit 8000 samples per sec of audio.
So is there any correct way to do this?
Thanks.
Comment