Solved

get actual audio output level

Posted on 2010-09-02
5
562 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now