Table of Contents Index NMS Glossary Previous Page Next Page (Page 2 of 11 in this chapter) Version


trauAttach

Description

Associates a single AG TRAU channel with a CTA context.

Prototype

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;

Return Values

Events

None.

Details

This function associates a ctahd with a channel on a loaded AG TRAU program, and returns a TRAU_ATTACH_DATA structure indicating the physical location of the channel.

If no AG TRAU channels bound to the loadhd are available, or there are no available AG TRAU programs of the requested type, trauAttach returns the error TRAUERR_NO_FREE_CHANNELS.

Refer to the Fusion readme.txt for a list of vocoder_types for available AG TRAU programs.

See Also

trauDetach, trauDisable, trauEnable



Table of Contents Index NMS Glossary Previous Page Next Page (Page 2 of 11 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.