I need to know how to detect IF there is sound coming in through the sound cards microphone port and the level of sound. I need to also then record it. I was also hoping to record it with a codec so i could compress it while its recording. Can anyone help?

Phylum