Home All Groups Group Topic Archive Search About

Mixer and Wave Audio App

Author
3 Aug 2006 4:53 AM
BarryX
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 this is very
easy as I can use the MIXERCONTROL_CONTROLTYPE_PEAKMETER. But not all sound
cards have this.

I have seen some code which looks at the level on the input by checking
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.

Comments welcome.

Author
3 Aug 2006 1:15 PM
Jerry H.
Have you tried looking into Direct Audio (part of DirectX) to get what
you need?  If you are able to do that, then it shouldn't matter what
kind of sound card you use.

http://www.freevbcode.com/ShowCode.asp?ID=1082

HTH.


BarryX wrote:
Show quoteHide quote
> 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 this is very
> easy as I can use the MIXERCONTROL_CONTROLTYPE_PEAKMETER. But not all sound
> cards have this.
>
> I have seen some code which looks at the level on the input by checking
> 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.
>
> Comments welcome.
Author
3 Aug 2006 8:11 PM
BarryX
Thanks for the tip. Will look into it.

Show quoteHide quote
"Jerry H." <boilersr***@gmail.com> wrote in message
news:1154610920.656140.144790@m73g2000cwd.googlegroups.com...
> Have you tried looking into Direct Audio (part of DirectX) to get what
> you need?  If you are able to do that, then it shouldn't matter what
> kind of sound card you use.
>
> http://www.freevbcode.com/ShowCode.asp?ID=1082
>
> HTH.
>
>
> BarryX wrote:
> > 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 this is
very
> > easy as I can use the MIXERCONTROL_CONTROLTYPE_PEAKMETER. But not all
sound
> > cards have this.
> >
> > I have seen some code which looks at the level on the input by checking
> > 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.
> >
> > Comments welcome.
>