IXRPlaySoundAction.SetVolume(float) (Compact 2013)
3/28/2014
This method sets the Volume property.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetVolume(
float Value)
Parameters
- Value
[in] Pointer to a float containing the volume of the sound file to be played.
Return Value
Implement this method so that it returns S_OK if successful; otherwise, return the appropriate HRESULT value to indicate that the method was not successful.
Remarks
The volume is a floating point number between 0 and 1, where 0 is no volume, and 1 is full volume.