Read audio sample data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sebouh
    New Member
    • Feb 2007
    • 77

    Read audio sample data

    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.
  • Sebouh
    New Member
    • Feb 2007
    • 77

    #2
    I think i've solved the problem.

    I'll keep in touch if i run into more problems. :)

    Comment

    Working...