Solved

get actual audio output level

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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