NAME
irGetAlgorithm, irFGetAlgorithm, irBGetAlgorithm - get the
coding algorithm used in voice object
SYNOPSIS
#include <irapi.h>
int irGetAlgorithm (vf_descriptor vfd);
int irFGetAlgorithm (const char *voice_file);
int irBGetAlgorithm (const char *voice_buf, int size);
DESCRIPTION
The irGetAlgorithm function returns the speech coding algo-
rithm contained in the voice file specified by the vfd.
irFGetAlgorithm returns speech coding algorithm contained in
the voice file voice_file.
irBGetAlgorithm returns speech coding algorithm contained
in the voice buffer voice_buf for the length, in bytes,
specified by the size argument.
RETURN VALUE
All these functions return name of the algorithm [see
IrALGORITHMS(4IRAPI)] if successful.
IRR_FAIL is returned if an error occurs.
ERRORS
irError is set as follows if an error occurs:
IRER_SYSERROR if a system or driver call failure occurs (see
irSysError for additional information)
IRER_INVALID if the vfd is invalid, if the voice_buf is the
NULL pointer or if size is not greater than sizeof(short) *
2
IRER_UNSUPPORTED if the data object was coded with an algo-
rithm which could not be recognized. This error is also
returned if the object was some arbitrary data such as text.
SEE ALSO
irLSeek(3IRAPI), irTime2Byte(3IRAPI), irByte2Time(3IRAPI),
IrALGORITHMS(4IRAPI)
VERSION
This is version 8/31/00 of this man page.