Intel 05-1832-002 IP Phone User Manual


 
516 Voice API for Windows Operating Systems Library Reference — November 2003
DX_SVCB — speed and volume adjustment condition block
SV_TOGORIGIN – sets the digit to toggle between the origin and the last modified
speed or volume level (for example, between the -5 and 0 levels)
SV_CURORIGIN – resets the current speed or volume level to the origin (same effect as
SV_ABSPOS with adjsize 0)
SV_CURLASTMOD – sets the current speed or volume to the last modified speed
volume level (swaps the current and last-modified settings)
SV_RESETORIG – resets the current speed or volume to the origin and the last modified
speed or volume to the origin
digit
Digit: Specifies an ASCII digit that will adjust the play.
Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, #, *
digtype
Digit Type: Specifies the type of digit:
DG_DTMF – DTMF digits
!
!!
! Example
This example illustrates how to set a DTMF digit to adjust playback volume. The following
DX_SVCB structure is set to decrease the volume by one step whenever the DTMF digit 1 is
detected:
svcb[0].type = SV_VOLUMETBL | SV_RELCURPOS;
svcb[0].adjsize = - 1;
svcb[0].digit = '1';
svcb[0].digtype = DG_DTMF;
This example illustrates how to set a DTMF digit to adjust playback speed. The following
DX_SVCB structure will set the playback speed to the value in the speed modification table
position 5 whenever the DTMF digit 2 is detected:
svcb[0].type = SV_SPEEDTBL | SV_ABSPOS;
svcb[0].adjsize = 5;
svcb[0].digit = '2';
svcb[0].digtype = DG_DTMF;
This example illustrates how to set a DTMF digit to pause and resume play.
svcb[0].type = SV_SPEEDTBL | SV_PAUSE;
svcb[0].adjsize = 0;
svcb[0].digit = '2';
svcb[0].digtype = DG_DTMF;
svcb[0].type = SV_SPEEDTBL | SV_RESUME;
svcb[0].adjsize = 0;
svcb[0].digit = '5';
svcb[0].digtype = DG_DTMF;
For additional examples of how to use the DX_SVCB structure, see the Example section for
dx_setsvcond( ).