a problem with DirectSound

Started by
5 comments, last by Adair 16 years, 1 month ago
Hello guys, I am a newer to DirectSound techs. And I want to know that can I set the system audio setting (playback or recording) with DirectSound APIs??? For example, the microphone boost property, the master volumn property... Does DirectSound do these???? Because I want to let the user to set the microphone boost in a app. Thanks a lot! Hope for reply!
Advertisement
As far as I know, DirectSound doesn't let you change settings like that. The only exception is the speaker configuration (Because that can directly affect how you process audio). Any other settings will need set via the registry or Win32 API if there are functions for it there.
What you need to use is the Windows Mixer API.
I use a .net open souce component which encapsulates Windows Mixer API to config the playback/recording property, and I can get set the Recording->Microphone->Microphone Boost property successfully in Windows XP and Windows Server 2003, but not in Windows Vista!!!! It seems that there is some kind of change for the audio subsystem in Vista, for example, each app has its own volumn control.. So I want to see if I can use DirectSound to config the microphone boost in the common Windows operating system now(Windows XP, Windows Server 2003, Windows Vista)...
Are you running with Admistrator privileges on Vista? Sounds like virtualisation going on...
You can work round it by running your app in XP compatibility mode. See http://blogs.msdn.com/larryosterman/archive/2007/03/07/how-does-my-existing-app-change-the-master-volume-on-vista.aspx

Alternatively you'll need to use the Vista specific API - see http://blogs.msdn.com/larryosterman/archive/2007/03/06/how-do-i-change-the-master-volume-in-windows-vista.aspx
Thank you all of you..
I think I get what I need. At least, I know that with DirectSound, I can not set the microphone boost.

This topic is closed to new replies.

Advertisement