Sound volume level  
Author Message
h3mp





PostPosted: Common Language Runtime, Sound volume level Top

Hi All,

I'm looking for a way to detect the main sound output volume level so that if it crosses a certain threshold i can perform some action (like turn speakers on and off hooked up to an external relay).

I've been googling all night but can't find anything to help me,

any ideas


.NET Development32  
 
 
ahmedilyas





PostPosted: Common Language Runtime, Sound volume level Top

I think *maybe* Managed directX could be a possible way of doing it. I'll move this thread over to the DirectX 101 forums but apologies to the subform if its in the incorrect forum.

Best wishes!



 
 
The ZMan





PostPosted: Common Language Runtime, Sound volume level Top

DirectSound has APIs for setting the volume of the sound that it generates but there are no APIs for setting or detecting the windows volume. You will probably need to interop into some windows APIs.