i need my program to read soundcard buffer in realtime, the way i need my program works is pretty simple, it monitor the sounds that came from mic (Line in),and if the program get some tone with "2 second length" and "x height of frequency" it wites text file with timestamp data in it.