Intel 05-1832-002 IP Phone User Manual


 
48 Voice API for Windows Operating Systems Library Reference — November 2003
ai_getxmitslot( ) — get TDM bus time slot number of audio input transmit channel
ai_getxmitslot( )
get TDM bus time slot number of audio input transmit channel
!
!!
! Description
The ai_getxmitslot( ) function returns the TDM bus time slot number of the audio input transmit
channel. The TDM bus time slot information is contained in an SC_TSINFO structure.
!
!!
! Cautions
This function fails when an invalid channel device handle is specified.
!
!!
! Errors
If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain
the error code or use ATDV_ERRMSGP( ) to obtain a descriptive error message.
Name: int ai_getxmitslot(devh, sc_tsinfop)
Inputs: int devh
valid audio input device handle
SC_TSINFO *sc_tsinfop
pointer to TDM bus time slot information structure
Returns: 0 on success
-1 on error
Includes: srllib.h
dxxxlib.h
Category: Audio Input
Mode: synchronous
Platform: DM3
Parameter Description
devh specifies the valid device handle obtained when the audio input device is
opened using ai_open( )
sc_tsinfop specifies a pointer to the TDM bus time slot information structure,
SC_TSINFO.
The sc_numts field of the SC_TSINFO structure must be initialized with the
number of TDM bus time slots requested (1). The sc_tsarrayp field of the
SC_TSINFO structure must be initialized with a valid pointer to a long
variable. Upon successful return from the function, the long variable will
contain the number of the time slot on which the audio input device transmits.
For more information on this structure, see SC_TSINFO, on page 529.