TELSetVolume
Sets the volume and state of a terminal device.
pascal TELErr TELSetVolume ( TELHandle hTEL, short volType, short *level, short volState);
hTEL- A handle to a telephone record associated with a telephone terminal.
volType- The type of terminal device. See "Volume Controls" on page 2-12 for a description of the device types that have a volume and state.
level- On entry, a value that indicates the desired volume level of the specified terminal device. On exit, a value that indicates the actual volume level of that device.
volState- A value that indicates the desired volume state of the specified terminal device. See "Volume Controls" on page 2-12 for a description of the available volume states.
- function result
- A result code.
DESCRIPTION
TheTELSetVolumefunction sets the volume level and state of the terminal device specified by thevolTypeandhTELparameters to the values specified in thelevelandvolStateparameters. The value specified in thelevelparameter should be betweentelVolMinandtelVolMax. You can also pass the valuetelVolSameto have the volume remain at its current level. The value specified in thevolStateparameter should be eithertelVolStateOnortelVolStateOff. You can also pass the valuetelVolStateSameto have the device remain in its current state.Different telephone tools may support different maximum volume levels. To determine the maximum volume level supported by a particular tool, pass
telVolMaxin thelevelparameter and then inspect the value returned byTELSetVolumein thelevelparameter.SPECIAL CONSIDERATIONS
Some terminals might not support theTELSetVolumefunction.