Previous PageTable Of Contents../index.htmlIndexNext Page

dx_getcursv( )

Description | Cautions | Example | Errors | See Also

Name:

int dx_getcursv(chdev,curvolp,curspeedp)

Inputs:

int chdev

  valid Dialogic channel device handle

 

int * curvolp

  pointer to current absolute volume setting

 

int * curspeedp

  pointer to current absolute speed setting

Returns:

0 if success

 

-1 if failure

Includes:

srllib.h

 

dxxxlib.h

Category:

Speed and Volume

Top Of PageDescription

The dx_getcursv( ) function returns the specified current speed and volume settings on a channel. For example, use dx_getcursv( ) to determine the speed and volume level set interactively by a listener using DTMF digits during a play. (DTMF digits are set as play adjustment conditions using the dx_setsvcond( ) function, or by one of the convenience functions dx_addspddig( ) and dx_addvoldig( ))

Parameter

Description

chdev

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

curvolp

points to an integer that represents the current absolute volume setting for the channel. This value will lie between -30dB and +10dB.

curspeedp

points to an integer that represents the current absolute speed setting for the channel. This value will be between -50% and +50%.

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_SYSTEM

Top Of PageSee Also

Related to Speed and Volume:


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