Solved

get actual audio output level

Posted on 2010-09-02
5
576 Views
Last Modified: 2013-12-17
how to programmatically sample the current level of audio output to the default sound card in windows? this is NOT a question about how to detect the volume i.e. it could be silent nothign coming out of the speakers, but the volume setting could still be high: the question is how to determine the actual output stream level sent to audio card, something that i imagine is used for VU meters or oscilloscopes in any media player application.

any help would be much appreciated, ideally for vb.net, but any other vs language is good too.
0
Comment
Question by:KristjanLaane
  • 4
5 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 33613148
0
 

Author Comment

by:KristjanLaane
ID: 33613957
Wow, great links! Ill try them out!
0
 

Author Closing Comment

by:KristjanLaane
ID: 33613966
Wow, great links! Ill try them out!
0
 

Author Comment

by:KristjanLaane
ID: 33617465
i the AnalogSignalMeter to work, but turns out the source is the default input device/Microphone for it, rather than the default output device: is there a way to change that?

e.g. i could access teh default speakers with
audioDevices = new DevicesCollection();
instead of
audioDevices = new CaptureDevicesCollection();

but the rest of that code does not work with a DevicesCollection instance, its made to work with CaptureDevicesCollection instance only ... any chance you know how to fix that or if there is another source out there that is coded for output device metering?
0
 

Author Comment

by:KristjanLaane
ID: 33617486
or to be more precise, the code is written to work with, which only enables work with input devices:

new Capture(audioDevices[currentDeviceIndex].DriverGuid);

but the code does not work with:

 new Microsoft.DirectX.DirectSound.Device(audioDevices[currentDeviceIndex].DriverGuid);

0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question