NAME

irPlayResume - resume voice playback

SYNOPSIS

#include <irapi.h>

int irPlayResume (channel_id cid, int offset);

DESCRIPTION

The irPlayResume function restarts a remembered play or record request from the point it was interrupted, stopped or completed, relative to offset. offset is specified in milliseconds. See irEnd(3IRAPI) for information on how to remember play requests.

irPlayResume may only be called from the IRS_IDLE state.

EVENT

The IRE_PLAY_DONE event occurs when play completes.

RETURN VALUE

IRR_OK is returned if the request to resume play is success- fully initiated.

IRR_FAIL is returned if an error occurs.

ERROR

irError is set as follows if an error occurs:

IRER_INVALID if the cid is not valid or if cid has not remembered any play or record request.

IRER_BADSTATE if the cid is in any state other than IRS_IDLE

IRER_SYSERROR if a system or driver call failure occurs (check irSysError for additional information)

SEE ALSO

irEnd(3IRAPI) and irPlay(3IRAPI).

OBSOLETE

Resuming record is not currently supported.

Sending IRE_PLAY_PROG events is no longer supported.

VERSION

This is version 12/10/02 of this man page.