NAME
irTime2Byte - convert an algorithm from milliseconds to
bytes
SYNOPSIS
#include <irapi.h>
long irTime2Byte (int algorithm, long time);
DESCRIPTION
The irTime2Byte function returns the time-equivalence in
bytes for a specified time interval for a given algorithm.
Time is specified in milliseconds. This function may be
used to figure out how much space is required to store a
phrase.
The accepted values of algorithm are defined in
IrALGORITHMS(4IRAPI).
This function is used by an application to convert time to a
position in a voice object or to figure out how much space
is required to store a phrase.
EVENT
No event results from the call to irTime2Byte.
RETURN VALUE
A byte count is returned if the request is successful.
0 is returned if an error occurs.
ERROR
irError is set to IRER_INVALID if algorithm.
EXAMPLE
See the example in irByte2Time(3IRAPI).
SEE ALSO
irByte2Time(3IRAPI), IrALGORITHMS(4IRAPI)
VERSION
This is version 8/31/00 of this man page.