Windows real time microphone input.

How could you input sound from the microphone on windows in real time?
Something that would let you do something like this:
1
2
3
4
5
6
7
8
9
int main()
{
    sound sample;
    while (1)
        {
            sample=getsound();
            cout<<"Pitch: "<<sample.getpitch()<<" Volume: "<<sample.getvolume()<<"\n";
        }
}
Last edited on
Topic archived. No new replies allowed.