#include <sent/stddefs.h>
#include <sent/adin.h>
#include <audio.h>
Include dependency graph for adin_mic_o2.c:
Go to the source code of this file.
Functions | |
static boolean | adin_o2_setup_global (double rate) |
boolean | adin_mic_standby (int sfreq, void *dummy) |
boolean | adin_mic_start () |
boolean | adin_mic_stop () |
int | adin_mic_read (SP16 *buf, int sampnum) |
Read samples from the daemon. | |
Variables | |
static ALconfig | ac |
Local port settings. | |
static ALport | aport |
Audio port. |
Tested on IRIX 6.3, SGI O2 Workstation.
The microphone input device will be automatically selected by Julius on startup. Please note that the recoding volue will not be altered by Julius, and appropriate value should be set by another tool such as apanel.
Definition in file adin_mic_o2.c.
static boolean adin_o2_setup_global | ( | double | rate | ) | [static] |
Initialize global audio interface to use microphone input.
rate | [in] sampling rate in Hz |
Definition at line 57 of file adin_mic_o2.c.
Referenced by adin_mic_standby().
boolean adin_mic_standby | ( | int | sfreq, | |
void * | dummy | |||
) |
Device initialization: check device capability and open for recording.
sfreq | [in] required sampling frequency. | |
dummy | [in] a dummy data |
Definition at line 85 of file adin_mic_o2.c.
boolean adin_mic_start | ( | ) |
Start recording.
Definition at line 119 of file adin_mic_o2.c.
boolean adin_mic_stop | ( | ) |
Stop recording.
Definition at line 137 of file adin_mic_o2.c.
int adin_mic_read | ( | SP16 * | buf, | |
int | sampnum | |||
) |
Read samples from the daemon.
Try to read sampnum samples and returns actual number of recorded samples currently available. This function will block until at least one sample can be obtained.
buf | [out] samples obtained in this function | |
sampnum | [in] wanted number of samples to be read |
Definition at line 157 of file adin_mic_o2.c.