Detecting audio level on mic source

Does anyone know of an OCX or code that can enable me to monitor the audio levels on the microphone input? (NOTE - I know it can be done through the mixer API but not all mixers have a peak meter control so thats no good). I have been trying to use VB with DirectSoundCapture buffers with a certain amount of success but have found that VB keeps crashing when the buffer is read at any point other than (0). I know how to convert the buffer values into audio levels.

(What I want to do is monitor the levels until they reach a certain level and then stream the audio to a wav file until the volume drops back again)

Ideally I just want an OCX that I can use to give me the levels - I am willing to pay if it is not free.

Cheers


Stewart Hilson

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories