libvpb  4.2.61
Collaboration diagram for Caller id decoding:

Functions

int WINAPI vpb_cid_decode (char *cid_number, const short *in, int n)
 Attempt to extract a caller's number from a buffer of samples. More...
 
int WINAPI vpb_cid_decode2 (VPB_CID *cli_struct, const short *in, int n)
 Attempt to extract all caller id information from a buffer of samples. More...
 
void WINAPI vpb_cid_debug_on (const char *debug_file_name)
 Enable debugging of the CID decoder. More...
 

Detailed Description

Function Documentation

◆ vpb_cid_debug_on()

void WINAPI vpb_cid_debug_on ( const char *  debug_file_name)

Enable debugging of the CID decoder.

Causes lots of debug information to be written to the text file debug_file_name.

◆ vpb_cid_decode()

int WINAPI vpb_cid_decode ( char *  cid_number,
const short *  in,
int  n 
)

Attempt to extract a caller's number from a buffer of samples.

Parameters
cid_numberPointer to string storage for the returned number.
inBuffer of audio samples to decode.
nThe number of sample in the input buffer.
Returns
VPB_OK if a number was retrieved, -1 if none could be decoded.
Exceptions
variousexceptions may be thrown in the case of other errors.

◆ vpb_cid_decode2()

int WINAPI vpb_cid_decode2 ( VPB_CID cli_struct,
const short *  in,
int  n 
)

Attempt to extract all caller id information from a buffer of samples.

Parameters
cli_structPointer to storage for the returned data.
inBuffer of audio samples to decode.
nThe number of sample in the input buffer.
Returns
VPB_OK if no error occurred while retrieving data, -1 if some error was detected.