I want to make a program that monitors the line in from the sound card and if there's a signal, it starts recording it. and when the signal is gone, it stops recording. but how to monitor and record audio from the line in?

please help,

VIsualPenguin