This might be a little outlandish... but I am trying to communicate with the mic in C++ on a ubuntu system. The goal is to 'query' the mic to determine the volume of noise coming in, if this volume is above a certain level, do something, etc.
Is this possible? Would I need to deal with device drivers somewhere in here? Or are there Ubuntu/Linux specific system calls which can make this relatively simple?
Thanks for any input.
Edit: I have googled around and come up only with windows stuff.
I'd go and have a look at something like SDL (Simple Directmedia Layer).
There may be other lib that do sound only, SDL does everything from sound to graphics to keyboard/controller input and works on many platforms.
You can program something like this without a lib but then you need knowledge of how applications access the sound driver and enough experience to write a kernel driver.
Yes sorry I'v only done this ones a long time ago.
I used PortAudio for it, it works good with SDL if you'd like to do some graphics or other stuff too.