Hi everyone. I have a program that plays audio files. I have a control that I want to use to control the volume. I have declared a HANDLE for the waveOut as
that I use to write the audio samples. Now I want to control the volume. I used
and this affects the wave output volume of the system. How do I control the volume from my application without affecting the volume of the system, or what function is used for this task. Thanks in advance.
As David mentioned you might be looking for an OS specific type function. You might try the following, though and that is to obtain the current volume setting when your program starts up, then allow the user to change volume at will, and when the user closes your program you restore the volume back. It won't work quite like you are looking for, but it might be a nice addition.
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
Can you please give me a brief idea about scaling the samples? I don't know much about digital sound processing but I learnt it has to do with the amplitude. I don't know if the amplitude is the value of a sample. If this is right, then I think if you give me a brief idea, I would be able to do it.
Windows Media Player -as far as i know- user DirectX/DirectShow to play sounds, not the waveOut API (i am not sure how it works with DirectShow, am just mentioning...)
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
You have posted the same question on 4 different forums; please, don't do it!
The best when asking something is to choose the forum that better matches your subject, and post a unique question explaining as better as possible what is your problem.