CTI32 Class Library

cti.StationVolume Method 

Adjusts or resets the volume on a given MSI station channel.

[Visual Basic]
Public Shared Function StationVolume( _
   ByVal chdev As Integer, _
   ByVal step As Integer, _
   ByVal reset_flag As Integer _
) As Integer
[C#]
public static int StationVolume(
   int chdev,
   int step,
   int reset_flag
);

Parameters

chdev
MSI channel device returned from CTIOpenStation()
step
The number of steps to increase or decrease volume. Each step increases or decreases the current volume by 1 dB. A positive step value increases the volume, and a negative step value decreases the volume. The volume ranges from –9dB to 3 dB, with a default value of –3dB. Hence, the volume can be changed 6dB higher or lower from the default value.
reset_flag
Set to 1 to reset the volume to the default level of –3 dB. Set this parameter to 0 if you are adjusting the volume. If the value is 1, then the step parameter is ignored.

Return Value

0=successful non-zero if failure

See Also

cti Class | CTI32NetLib Namespace