Intel 05-1832-002 IP Phone User Manual


 
176 Voice API for Windows Operating Systems Library Reference — November 2003
dx_clrsvcond( ) — clear all speed or volume adjustment conditions
!
!!
! Example
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int dxxxdev;
/*
* Open the Voice Channel Device and Enable a Handler
*/
if ( ( dxxxdev = dx_open( "dxxxB1C1", 0) ) == -1 ) {
perror( "dxxxB1C1" );
exit( 1 );
}
/*
* Clear all Speed and Volume Conditions
*/
if (
dx_clrsvcond( dxxxdev )
== -1 ) {
printf( "Unable to Clear the Speed/Volume" );
printf( " Conditions\n" );
printf( "Lasterror = %d Err Msg = %s\n",
ATDV_LASTERR( dxxxdev ), ATDV_ERRMSGP( dxxxdev ) );
dx_close( dxxxdev );
exit( 1 );
}
/*
* Continue Processing
* .
* .
* .
*/
/*
* Close the opened Voice Channel Device
*/
if ( dx_close( dxxxdev ) != 0 ) {
perror( "close" );
}
/* Terminate the Program */
exit( 0 );
}
!
!!
! See Also
dx_setsvcond( )
dx_addspddig( )
dx_addvoldig( )
speed and volume modification tables in Voice API Programming Guide
DX_SVCB data structure