I'm writing a program that will, when I hook up my electronic drum into my microphone jack, count how many times I've hit a drum and print it to the screen, replacing the previous number. I have hopefully most of the code done, but I need help figuring out a way to test if any input is being sent in from the mic or if it's all blank. A bash script would be preferable but any way would work as long as it returns either 1 or 0 and can be launched from inside the program (using system() etc.). Anyone know of a way of going about this? I can post what I currently have if it's of any interest to you.
edit: 400th post!
edit: 400th post!
Last edited by Monado_III,