Returns the number of voice elements required to hold imported voice data.
Blueworx Voice Response library (libvae.a)
Custom Server library (libca.a)
#include "CA_access_db.h" int CA_Get_Element_Count ( EXT_VOICE_ST *ext_sp );
This subroutine calculates the number of voice elements required to hold the imported voice data, taking into account the sample width and the sampling rate of the input voice data. This value can then be used to allocate a buffer for the data supplied from a subsequent call to CA_Import_Voice(). The number of voice elements required is the same whether or not the voice data will be compressed when it is imported, the actual size of the buffer being either:
CA_NOT_INIT
CA_INV_ADDR
CA_INV_SAMPLE_WIDTH
CA_INV_SAMPLING_RATE
CA_INV_VOICE_FORMAT
CA_INV_VOICE_ORDER
CA_TERMINATING