Previous PageTable Of Contents../index.htmlIndexNext Page

dx_reciottdata( )

Description | Cautions | Example | Errors | See Also

Name:

short dx_reciottdata(chdev, iottp, tptp, xpbp, mode)

Inputs:

int chdev

  valid Dialogic channel device handle

 

DX_IOTT *iottp

  pointer to I/O Transfer Table

 

DV_TPT *tptp

  pointer to Termination Parameter Table Stucture

 

DX_XPB*xpbp

  pointer to I/O Transfer Parameter block

 

unsigned short mode

  play mode

Returns:

  0 if success

 

  -1 if failure

Includes:

  srllib.h

 

dxxxlib.h

Category:

I/O function

Mode:

synchronous or asynchronous

Top Of PageDescription

The dx_reciottdata( ) function records voice data to multiple destinations, a combination of data files, memory, or custom devices

Parameter

Description

chdev

channel device descriptor.

iottp

Pointer to DX_IOTT table that specifies the order and media onto which the voice data will be recorded.

tptp

pointer to Termination Parameter Table structure

xpbp

pointer to I/O transfer parameter block

mode

specifies the record mode:

PM_TONE play 200 ms audible tone
EV_SYNC synchronous mode
EV_ASYNC asynchronous mode

Top Of PageCautions

  1. All files specified in the DX_IOTT table will be of the file format described in DX_XPB.
  2. All files recorded to will have the data encoding and rate as described in DX_XPB.
  3. When playing or recording VOX files, the data format is specified in DX_XPB rather than through the dl_stprm( ) function.
  4. The DX_IOTT data area must remain in scope for the duration of the function if running asynchronously.
  5. The DX_XPB data area must remain in scope for the duration of the function if running asynchronously.

Top Of PageExample

Top Of PageErrors

In asynchronous mode, function returns immediately and a TDX_RECORD event is queued upon completion. Check ATDX_TERMMSK( ) for the termination reason. If a failure occurs, then a TDX_ERROR event will be queued. Use ATDV_LASTERR( ) to determine the reason for error.

In synchronous mode, if this function returns -1 to indicate failure, one of the following reasons will be contained by ATDV_LASTERR( ):

Equate

Returned When

EDX_BUSY

Channel is busy

EDX_XPBPARM

Invalid DX_XPB setting

EDX_BADIOTT

Invalid DX_IOTT setting

EDX_SYSTEM

Error from operating system; use dx_fileerrno( ) to obtain error value. System I/O errors

EDX_BADWAVFILE

Invalid WAV file

EDX_SH_BADCMD

Unsupported command or WAV file format

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002