Vista/Win7 Bass and treble volume
I'm having a hard time with this crazy Vista/Win 7 architecture, it might be just me but its hard to get used to it :|
So, my current problem is that I cant set the bass and treble values for my sound card, I found that there is a IAudioBass and IAudioTreble interfaces which can do this, but I'm getting lost how to create these interfaces, I know that I can use the IPart interface to activate them, but it doesnt work, and I guess I'm doing something wrong.
I started to do this in Delphi, but the header conversion took too much time and I just switched to Visual C++ to do it.
Does anyone have some demo source code ?
Thanks a lot for your a开发者_如何学JAVAttention folks !
You want to start with the IMMDeviceEnumerator API which allows you to discover which of the endpoints on your sound card you want to modify.
You then activate an IDeviceTopology interface. You can walk the IDeviceTopology enumerating parts and activate the IAudioBass and IAudioTreble interfaces off of those parts.
The MSDN documentation for IDeviceTopology contains some sample code which does almost exactly what you're asking for.
I do want to warn you that relatively few current audio solutions have bass and treble controls these days.
精彩评论