BarryX 0 Newbie Poster

Hey,

I am trying to write a section of code in VB that gives me the audio level of the output from a sound card. If I am using a Soundblaster card this is very easy as I can use the MIXERCONTROL_CONTROLTYPE_PEAKMETER. But not all sound cards have this.

I have seen some good code posted by AlanC (http://www.daniweb.com/techtalkforums/thread27640-2.html) which looks at the level on the input by chgecking the samples and I can see that this makes the concept independent of the H/W which is what I need.

I cannot see how to get at the output samples before they hit the DAC, which is presumably the only way this method can work here.

Comments welcome.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.