December 10th, 2012, 06:24 AM
[VB6]Set volume level of a SINGLE program
I've already posted this same question on several forums, but I've not received valid answers or I've not had at all.
So I hope that here there's somebody who can help me.
I'm building up a little game and I'd like to insert a volume controller which sets the output volume level of sounds I play within the PlaySound API function.
Most of people told me I've to use the waveOutSetVolume API function, but that's not what I need, because in this way I'll change the output volume of ALL PROGRAMS currently running.
What I want to do is a volume controller such as Windows Media Player's one. In fact, in WMP you can adjust the software's output volume (moving the slider near the Play/Stop buttons) without modifying the Master Volume settings. DirectSound does it, too.
So, now you could ask me why I don't use them... 'cause neither WMP library nor DirectSound meets all my needs.
Can you show any example that does what I want?
December 11th, 2012, 02:15 AM
Does anyone know? If you don't tell me so I can try to search in other forums...
December 11th, 2012, 09:36 PM
Well, I don't know, I've never programmed sound in VB6. You might look around for 3rd party controls for sound, if any exist they may have more flexibility than MS sound controls.
Originally Posted by Cereal Killer
I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
December 17th, 2012, 04:36 AM
Ooops... I didn't see your answer, I was occupied in another thread in another forum. I was going to post its url so others could see how I solved, but I'm not be able to post links.
There I found all that I needed. However thank you.
PS: A suggestion to mods: change this rule, please.