Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the Windows Embedded CE functions that query and set the volume level of waveform audio output devices.

Function Description

waveOutGetVolume

Returns the current volume level of the specified waveform audio output device.

waveOutSetVolume

Sets the volume level of the specified waveform audio output device.

Volume is specified in a DWORDvalue. In a stereo audio format, the upper 16 bits specify the relative volume of the right channel, and the lower 16 bits specify the relative volume of the left channel. For devices that do not support separate volume control for the different channels, Windows Embedded CE uses the lower 16 bits to specify the volume level and ignores the upper 16 bits.

Windows Embedded CE uses volume ranges from 0x0 (silence) through 0xFFFF (maximum volume) and interprets these ranges logarithmically. The perceived volume increase is the same when increasing the volume level from 0x5000 through 0x6000 as when increasing the volume level from 0x4000 through 0x5000.

See Also