Skip to main content
gamedev.net
🔒 Locked

Setting Master Volume

Started by NorthWoodsman 0 replies 450+ views
Original Post
NorthWoodsman
NorthWoodsman
How do you set the master volume for sound devices? There appears to be no simple way to do this; Every time I try to find something, I end up being bogged 10 miles deep in random WINMM functions that, in my opinion, should''ve been depreciated about 3 versions ago. Mind you, I don''t want to control the WAVE volume, I want the "What you Hear" volume, or in other words, what is set when you left-click the Sound tray icon.
JY
JY
waveOutSetVolume is the one you are looking for - simply pass in a handle to a device which was opened using waveOutOpen and a value for the volume.

These APIs probably have depreciated a lot, but unfortunately they have not been deprecated

It''s all there in the documentation.



"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.