CipherLab 9400 Series User Manual page 157

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

SetAudioVolume
Purpose
To set the speaker volume.
Syntax
int SetAudioVolume (uint dwVolume);
Parameters
dwVolume
[in] Unsigned integer variable
Example for C#
int b1 = 0;
b1 = Cipherlab.SystemAPI.Member.SetAudioVolume(0xffff5555);
Example for VB
Cipherlab.SystemAPI.Member.SetAudioVolume(65535)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
Remarks
The range of the speaker volume for each channel can be 0 to 65535.
See Also
SetAudioMuteOFF, SetAudioMuteON
The volume level of the left channel is specified in the low-order word.
The volume level of the right channel is specified in the high-order word.
Call GetErrorCode() to find the error condition encountered:
1
DeviceIOControl Error
2
CreateFile Error
A volume level 0x0000 represents silence (i.e. the speaker is muted) while
0xFFFF represents full volume.
Chapter 3
System API
149

Advertisement

Table of Contents
loading

Table of Contents