Previous PageTable Of Contents../index.htmlIndexNext Page

dx_recwav( )

Description | Cautions | Example | Errors | See Also

Name:

SHORT dx_recwav(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 block

 

DX_XPB *xpbp

  pointer to I/O Transfer 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_recwav( ) convenience function records voice data to a single WAVE file. If xpbp is set to NULL, the function will record in 11 KHz linear 8-bit PCM. This function calls dx_reciottdata( ).

Parameter

Description

chdev

channel device descriptor

tcbp

pointer to termination parameter table

filenamep

pointer to name of file to play

xpbp

pointer to I/O Transfer Parameter Block

mode

specifies the play mode:

PM_TONE play 200 ms audible tone
EV_SYNC synchronous operation
(must be specified)

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

Top Of PageCautions

None.

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_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