Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The get_Volume method retrieves the audio renderer’s volume level.
Syntax
HRESULT get_Volume(
long* plVol
);
Parameters
plVol
[out] Pointer to a variable that receives the volume level, in units of .01 decibel (dB).
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Full volume is 0 and silence is 10,000. Divide by 100 to get the equivalent decibel value; for example, 10,000 is 100 dB.
See Also