- DWORD trauAttach ( CTAHD ctahd,
CTAHD loadhd,
unsigned vocoder_type,
TRAU_ATTACH_DATA *attach_data )
- ctahd CTA context handle used with ctaOpenService to open an AG TRAU service.
- loadhd CTA context handle used with the trauLoad
to load an AG TRAU program.
- vocoder_type AG TRAU program identifier that specifies the type of AG TRAU program to attach.
- attach_data Pointer to a location to receive information about the attached channel.
typedef struct _TRAU_ATTACH_DATA
{
TRAUDSPID dspid; /* ID of the DSP attached to */
unsigned board; /* Board ( 0-15 ) */
unsigned dsp; /* DSP ( 1-48 ) */
unsigned channel; /* Channel number for DSP ( 0-7 ) */
/* Switching information follows */
DWORD bus; /* Bus used */
int pcm_stream_from_dsp; /* Stream for voice PCM */
int pcm_stream_to_dsp; /* Stream for voice PCM */
DWORD pcm_slot; /* Slot that PCM voice is on */
/* TX fusion only data (set to 0 if host-based) */
int tx_stream_from_dsp; /* Stream for data from TX */
int tx_stream_to_dsp; /* Stream for data to TX */
int tx_count; /*Number of bonded slots used */
DWORD tx_slot[TX_MAX_SLOTS];/*Array of compressed slots */
} TRAU_ATTACH_DATA;