Previous PageTable Of Contents../index.htmlIndexNext Page

dx_playf( )

Description | Example | Errors | See Also

Name:

int dx_playf(chdev,fnamep,tptp,mode)

Inputs:

int chdev

  valid Dialogic channel device handle

 

char *fnamep

  pointer to name of file to play

 

DV_TPT *tptp

  pointer to Termination Parameter Table Structure

 

unsigned short mode

  playing mode bit mask for this play session

Returns:

0 if success

 

-1 if failure

Includes:

srllib.h

 

dxxxlib.h

Category:

Convenience

Top Of PageDescription

dx_playf( ) is a convenience function that synchronously plays voice data or transfers ADSI data (using the ADSI protocol) from a single file.

NOTE:
Although this function can be used for transmitting ADSI data, the dx_RxIottData( ), dx_TxIottData( ), and dx_TxRxIottData( ) functions are recommended as the preferred method.

dx_playf( ) operates the same as synchronous dx_play( ) if the DX_IOTT structure specified a single file entry. dx_playf( ) is provided as a convenient way to play back data or transfer ADSI data from a single file without having to specify a DX_IOTT structure for only one file. The dx_playf( ) function opens and closes the file specified by fnamep while the dx_play( ) function uses a DX_IOTT structure that requires the application to open and close the file.

Parameter

Description

fnamep

points to the file from which voice data will be played.

For information about other function arguments and transferring ADSI data, see dx_play( ).

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate failure, use ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to retrieve one of the following error reasons:

EDX_BADPARM

  • Invalid Parameter

EDX_BADIOTT

  • Invalid DX_IOTT entry

EDX_BADTPT

  • Invalid DX_TPT entry

EDX_BUSY

  • Busy executing I/O function

EDX_SYSTEM

Top Of PageSee Also

Related Functions:

Setting Speed and Volume:

Setting and Handling Play Termination:


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