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


trauRegisterCallback

Description

This function registers callback functions with the AG TRAU service in order to pass voice data for a particular channel between an application and an AG TRAU program.

Prototype

DWORD trauRegisterCallback ( CTAHD ctahd,
TRAU_CALLBACK callback,
TRAU_BUFFER_ACCESS access,
void *userargs )

ctahd CTA handle used with trauAttach to attach an AG TRAU channel.

callback Structure that defines whether the callback is processing read or write data to the AG TRAU program.

       typedef enum TRAU_CALLBACK {                                   
        TRAU_WRITE = 0x0001,      
        TRAU_READ
       TRAU_CALLBACK;

access Data structure containing a pointer to a callback function.

userargs Pointer to arguments to return to the application in the callback function.

Return Values

Events

None.

Details

Applications can use trauRegisterCallback to access voice data being processed by AG TRAU channels. When registering a callback, the specified channel must have already been attached with trauAttach.

Note: Failing to respond to a callback in a timely manner can result in buffer delays for every channel associated with the specified board.

To clear the callback, set the access address to NULL. This prevents buffer transfers in the specified direction (read or write). For specific information about the frame structure, refer to traudef.h.

See Also

trauLoad



Table of Contents Index NMS Glossary Previous Page Next Page (Page 7 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.