Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
ISimpleAudioVolume::SetMasterVolume
There are also a bunch of third-party utilities like nircmd or setvol that allow you to control the volume via the command line or hotkeys.
nircmd is generally cool, in addition to volume, it can do a lot of things.
Yes, via winapi
https://stackoverflow.com/questions/294292/changin...
If you are interested, audacity (an open-source music editor) used to make the portmixer library, it is designed to work in conjunction with the portaudio library. Portmixer is included with the audacity source.
This portmixer is designed to change the volume, and this is a cross-platform option.
Changing the volume is not a trivial process, and it is not done with a single call to WinAPI.
If you want, you can take the sources of portmixer and modify them for yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question