Sign in to follow this  
Adair

a problem with DirectSound

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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)...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this