Intel 05-1832-002 User Manual
![Intel](https://files.manualsbrain.com/attachments/5a71b1e7f60391972dadeef20435931cbf4621a5/common/fit/150/50/86c99b5f14aeb2708e9a9e1b5305af4ccf882c1af0155dad25413c2ed84e/brand_logo.png)
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
channel. The TDM bus time slot information is contained in an
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.
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
-1 on error
Includes:
srllib.h
dxxxlib.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( )
opened using ai_open( )
sc_tsinfop
specifies a pointer to the TDM bus time slot information structure,
SC_TSINFO.
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
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