libvpb  4.2.61
Audio playback and recording

Internal interfaces for the audio playback and recording code. More...

Collaboration diagram for Audio playback and recording:

Functions

void playrec_open (unsigned int numch)
 Initialise the playrec module. More...
 
void playrec_close ()
 Closes the playrec module.
 
void playrec_new_digit_record (int handle, char digit)
 Called by the MMQ when the DSP detects a digit event. More...
 
void playrec_new_digit_play (int handle, char digit)
 Called by the MMQ when the DSP detects a digit event. More...
 
void play_reset_hw_gain (int handle)
 Reset the hardware play gain to the configured default value.
 
void record_reset_hw_gain (int handle)
 Reset the hardware record gain to the configured default value.
 

Detailed Description

Internal interfaces for the audio playback and recording code.

Function Documentation

◆ playrec_new_digit_play()

void playrec_new_digit_play ( int  handle,
char  digit 
)

Called by the MMQ when the DSP detects a digit event.

Causes a playback operation on handle to be terminated if digit is listed in its Play::term_digit field.

References Play::list, Audio::mutex, Audio::state, Audio::term_digits, VPB_AUDIO_PLAYING, and VPB_AUDIO_TERMINATE.

◆ playrec_new_digit_record()

void playrec_new_digit_record ( int  handle,
char  digit 
)

Called by the MMQ when the DSP detects a digit event.

Causes a record operation on handle to be terminated if digit is listed in its Record::term_digit field.

References Record::list, Audio::mutex, Audio::state, Audio::term_digits, VPB_AUDIO_RECORDING, and VPB_AUDIO_TERMINATE.

◆ playrec_open()