Click to See Complete Forum and Search --> : Volume control on iPaq Pocket PC


mshipman
June 12th, 2002, 11:53 AM
I want to vary the volume of sound produced from a Compaq iPaq Pocket PC. I tried calling waveOutSetVolume() but it had no effect on the sound. Subsequent calls to waveOutGetVolume() return the value set by the Settings/Personal/Sounds and Notifications utility even though waveOutGetDevcaps() indicates that WAVECAPS_VOLUME is supported.

Does anyone know how to change the volume on an iPaq from within an application?

Thanks
M. Shipman

alanr
June 12th, 2002, 12:00 PM
I know that the volume is keyed off of a value in the registry, so changing this value will change the volume: The key is below:

HKEY_LOCAL_MACHINE\ControlPanel\Volume\\Group

However, if you want to change it very fast [i.e. faster than waiting until a sound ends] I am not sure that can be done, or I don't know how. As far a triggering a beep, you may have to record a wave of the beep and play it, the MFC Beep() isn't implemented in MFC for Pocket PC. Good luck, I wish I could be more helpful....