Previous PageTable Of Contents../index.htmlIndexNext Page

dx_setsvmt( )

Description | Cautions | Example | Errors | See Also

Name:

int dx_setsvmt(chdev,tabletype,svmtp,flag)

Inputs:

int chdev

  valid channel device handle

 

unsigned short tabletype

  table to update (speed or volume)

 

DX_SVMT * svmtp

  pointer to DX_SVMT

 

unsigned short flag

  optional modification flag

Returns:

0 if success

 

-1 if failure

Includes:

srllib.h

 

dxxxlib.h

Category:

Speed and Volume

Top Of PageDescription

The dx_setsvmt( ) function updates the speed or volume Speed/Volume Modification Table for a channel, with the values contained in a specified DX_SVMT structure.

NOTE:
For more information on the Speed and Volume Modification Tables, refer to the DX_SVMT structure in chapter on Data Structures, and see also the Voice Software Reference: Voice Features Guide.

This function can also modify the Speed or Volume Modification Table to do one of the following:

Parameter

Description

chdev

specifies the valid channel device handle obtained by a call to dx_open( ).

tabletype

specifies whether to retrieve the Speed or the Volume Modification Table.

 

SV_SPEEDTBL

Update the Speed Modification Table values

 

SV_VOLUMETBL

Update the Volume Modification Table values

svmtp

points to the DX_SVMT structure whose contents are used to update either the speed or the volume Speed/Volume Modification Table.

 

This structure is not used when SV_SETDEFAULT has been set in the mode parameter.

flag

specifies one of the following:

 

SV_WRAPMOD

Wrap around the speed or volume adjustments that occur at the top or bottom of the Speed/Volume Modification Table.

 

SV_SETDEFAULT

Reset the table to its default values. See the Voice Software Reference: Voice Features Guide for the default values of the table.

   

In this case, the DX_SVMT pointed to by svmtp is ignored

NOTE:
Set flags to 0 If you do not want to use either SV_WRAPMOD or SV_SETDEFAULT.

Top Of PageCautions

None.

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate failure, use ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to retrieve one of the following error reasons:

EDX_BADPARM

  • Invalid Parameter

EDX_BADPROD

  • Function not supported on this board

EDX_NONZEROSIZE

  • Reset to Default was Requested but size was non-zero

EDX_SPDVOL

  • Must Specify either SV_SPEEDTBL or SV_VOLUMETBL

EDX_SVMTRANGE

  • An Entry in DX_SVMT was out of Range

EDX_SVMTSIZE

  • Invalid Table Size Specified

EDX_SYSTEM

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002