|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Mixer and Wave Audio AppHey,
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. 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. 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. >
Unique an array of strings
Co-existing ASP.NET 1.1 and 2.0??? Accessing Structure Members Communication between threads Transactions through Remoting Simple xpath question Function doesn't return a value on all code paths *** Using DataReaders to populate combo boxes - please help!!! *** surpress newline on Enter press Excel already runnig, how to update with VB |
|||||||||||||||||||||||