Voicetronix Programming Guide
<<< Previous |  | Next >>>

# Events

The VPBAPI uses an event driven programming model. There are two types of events, solicted, and unsolicited. The following functions deal with events:

`vpb_disable_event()`
`vpb_enable_event()`
`vpb_get_event_mask()`
`vpb_set_event_mask()`
`vpb_get_event_async()`
`vpb_get_event_sync()`
`vpb_get_event_ch_async()`
`vpb_get_event_ch_sync()`
`vpb_put_event()`

Solicited events are generated as a response to a previous API function call. For example, when `vpb_play_file_async()` is called, a solicited event of type `VPB_PLAYEND` is generated when the file has finished playing.

Unsolicited events are generated in response to external conditions, for example due to a DTMF tone being detected by the card.

<<< Previous | Home | Next >>>
Error Handling |  | Playing and Recording Audio