Previous PageTable Of Contents../index.htmlIndexNext Page

dx_recvox( )

Description | Cautions | Example | Errors | See Also

Name:

SHORT dx_recvox(chdev, filenamep, tptp, xpbp, mode)

Inputs:

int chdev

  valid Dialogic channel device handle

 

char *filenamep

  pointer to name of file to record to

 

DV_TPT *tptp

  pointer to Termination Parameter Table

 

DX_XPB *xpbp

  pointer to I/O Transfer Parameter Block

 

unsigned short mode

  record mode

Returns:

  0 if successful

 

  -1 if failure

Includes:

  srllib.h

 

dxxxlib.h

Category:

Convenience function

Mode:

synchronous

Top Of PageDescription

The dx_recvox( ) convenience function records voice data to a single VOX file. If xpbp is set to NULL, it will interpret the data as 6KHz linear ADPCM.

Parameter

Description

chdev

Channel device descriptor

tcbp

Pointer to Termination Parameter Table

filenamep

Pointer to name of file to record to

xpbp

Pointer to I/O Transfer Parameter Block. Refer to the DX_XPB structure in the chapter on Data Structures for more information.

mode

specifies the record mode:

RM_TONE: play an audible tone before initiating record (pre-record beep)
EV_SYNC: synchronous operation (must be specified)

NOTE:
Both RM_TONE and EV_SYNC can be specified by ORing the two values.

Top Of PageCautions

When playing or recording VOX files, the data format is specified in DX_XPB rather than through the mode parameter of dx_recvox( ).

Top Of PageExample

Top Of PageErrors

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_SH_BADCMD

Unsupported command or VOX 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