Tscope5
Functions | Variables
audio_internal.c File Reference

Definitions of internal audio functions. More...

Go to the source code of this file.

Functions

void ts5_check_audio (char *calling_function)
 Do some checks at the start of each audio function. More...
 
void ts5_install_audio (char *calling_function)
 Install the audio subsystem. More...
 
void ts5_uninstall_audio ()
 Uninstall the audio subsystem. More...
 
void ts5_check_audio_recorder (char *calling_function)
 Do some checks at the start of each audio recorder function. More...
 
void ts5_check_audio_recorder2 (char *calling_function)
 Do some checks at the start of each audio recorder function. More...
 
void ts5_check_audio_recorder3 (char *calling_function, TS5_SAMPLE *sample)
 Do some checks at the start of each audio recorder function. More...
 
void ts5_install_audio_recorder (char *calling_function)
 Install the audio recorder subsystem. More...
 
void ts5_uninstall_audio_recorder ()
 Uninstall the audio recoder subsystem. More...
 
void ts5_check_voicekey (char *calling_function)
 Do some checks at the start of each voicekey function. More...
 
void ts5_install_voicekey (char *calling_function)
 Install the voicekey subsystem. More...
 
void ts5_uninstall_voicekey ()
 Uninstall the voicekey subsystem. More...
 

Variables

int _ts5_is_audio_installed = 0
 Is the audio subsystem installed? More...
 
int _ts5_is_audio_recorder_installed = 0
 Is the audio recorder subsystem installed? More...
 
int _ts5_is_audio_recorder_recording = 0
 Is the audio recorder recording? More...
 
int _ts5_is_voicekey_installed = 0
 Is the voicekey subsystem installed? More...
 

Detailed Description

Definitions of internal audio functions.

Definition in file audio_internal.c.

Function Documentation

void ts5_check_audio ( char *  calling_function)

Do some checks at the start of each audio function.

Parameters
calling_functionName the function that calls for this check or installation.

Checks whether the audio subsystem is installed. If not, the audio subsystem is installed.

Definition at line 43 of file audio_internal.c.

void ts5_install_audio ( char *  calling_function)

Install the audio subsystem.

Parameters
calling_functionName the function that calls for this check or installation.

This function is called automatically if necessary.

Definition at line 60 of file audio_internal.c.

void ts5_uninstall_audio ( )

Uninstall the audio subsystem.

This function is called automatically at the end of the program.

Definition at line 138 of file audio_internal.c.

void ts5_check_audio_recorder ( char *  calling_function)

Do some checks at the start of each audio recorder function.

Parameters
calling_functionName the function that calls for this check or installation.

Checks whether the audio recorder subsystem is installed. If not, the function audio recorder subsystem is installed.

Definition at line 169 of file audio_internal.c.

void ts5_check_audio_recorder2 ( char *  calling_function)

Do some checks at the start of each audio recorder function.

Parameters
calling_functionName the function that calls for this check or installation.

Checks whether the audio recorder subsystem is recording.

Aborts if necessary.

Definition at line 188 of file audio_internal.c.

void ts5_check_audio_recorder3 ( char *  calling_function,
TS5_SAMPLE *  sample 
)

Do some checks at the start of each audio recorder function.

Parameters
calling_functionName the function that calls for this check or installation.
sampleThe sample that has to be checked.

Checks whether the audio sample is a recording buffer allocated by ts5_alloc_sample.

Aborts if necessary.

Definition at line 212 of file audio_internal.c.

void ts5_install_audio_recorder ( char *  calling_function)

Install the audio recorder subsystem.

Parameters
calling_functionName the function that calls for this check or installation.

This function is called automatically if necessary.

Definition at line 237 of file audio_internal.c.

void ts5_uninstall_audio_recorder ( )

Uninstall the audio recoder subsystem.

This function is called automatically at the end of the program.

Definition at line 290 of file audio_internal.c.

void ts5_check_voicekey ( char *  calling_function)

Do some checks at the start of each voicekey function.

Parameters
calling_functionName the function that calls for this check or installation.

Checks whether the voicekey subsystem is installed. If not, the voicekey subsystem is installed.

Definition at line 319 of file audio_internal.c.

void ts5_install_voicekey ( char *  calling_function)

Install the voicekey subsystem.

Parameters
calling_functionName the function that calls for this check or installation.

This function is called automatically if necessary.

Definition at line 336 of file audio_internal.c.

void ts5_uninstall_voicekey ( )

Uninstall the voicekey subsystem.

This function is called automatically at the end of the program.

Definition at line 411 of file audio_internal.c.

Variable Documentation

int _ts5_is_audio_installed = 0

Is the audio subsystem installed?

Definition at line 22 of file audio_internal.c.

int _ts5_is_audio_recorder_installed = 0

Is the audio recorder subsystem installed?

Definition at line 25 of file audio_internal.c.

int _ts5_is_audio_recorder_recording = 0

Is the audio recorder recording?

Definition at line 28 of file audio_internal.c.

int _ts5_is_voicekey_installed = 0

Is the voicekey subsystem installed?

Definition at line 31 of file audio_internal.c.