Previous PageTable Of Contents../index.htmlIndexNext Page

dcb_getatibits( )

Description | Cautions | Example | Errors | See Also

Name:

int dcb_getatibits(devh,atibits)

Inputs:

int devh

unsigned long *atibits

  DCB/SC DSP device handle

  pointer to active talker indicator bits

Returns:

0 on success

-1 on failure

Includes:

srllib.h
dcblib.h

dtilib.h

msilib.h

Category:

Auxiliary

Mode:

synchronous

Top Of PageDescription

The dcb_getatibits( ) function returns the active talker indicator bits set at the time this function is called. This function is provided to give more control to the application and must be used with the resource assignment table update event to implement active talker retrieval.

Parameter

Description

devh:

The valid DSP device handle returned by a call to dcb_open( ).

atibits:

Pointer to location where active talker indicator bits will be stored.

NOTE:
The snapshot of information provided by dcb_getatibits is accurate for a split second. This information may not be accurate by the time the application processes it.

atibits is 4 bytes long. Each bit corresponds to one DSP resource and is updated every 100 ms. Bits are turned on or off by the DSP based on the speaker energy (volume) level.

Bit 0 of atibits corresponds to resource 0 on the specified DSP. atibits should be used with the resource assignment table. The table is copied from the event data returned once the current DCBEV_CTU event is detected by the application. DCBEV_CTU is enabled using the dcb_evtstatus( ) function. Bit n should be paired with the nth DCB_CT element of the resource table.

Top Of PageCautions

This function fails when the device handle is invalid.

Top Of PageExample

Top Of PageErrors

If the function does not complete successfully, it will return -1 to indicate an error. Use the Standard Attribute functions ATDV_LASTERR( ) to obtain the applicable error value, or ATDV_ERRMSGP( ) to obtain a more descriptive error message.

Refer to the error type tables found in Chapter 2 of this guide. Error defines can be found in dtilib.h, msilib.h or dcblib.h.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2000, Dialogic Corporation
All rights reserved
This page generated January, 2002