#include <sent/stddefs.h>
#include <sent/adin.h>
#include <audio.h>
Go to the source code of this file.
Functions | |
static boolean | adin_o2_setup_global (double rate) |
Initialize global audio interface to use microphone input. | |
boolean | adin_mic_standby (int sfreq, void *dummy) |
Device initialization: check device capability and open for recording. | |
boolean | adin_mic_begin () |
Start recording. | |
boolean | adin_mic_end () |
Stop recording. | |
int | adin_mic_read (SP16 *buf, int sampnum) |
Read samples from device. | |
Variables | |
static ALconfig | ac |
Local port settings. | |
static ALport | aport |
Audio port. |
Low level I/O functions for microphone input on a SGI IRIX machine. This file is used as default on IRIX machines.
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 58 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.
Connection initialization: check connectivity and open for recording.
sfreq | [in] required sampling frequency. | |
dummy | [in] a dummy data |
Definition at line 86 of file adin_mic_o2.c.
boolean adin_mic_begin | ( | ) |
Start recording.
Definition at line 120 of file adin_mic_o2.c.
boolean adin_mic_end | ( | ) |
Stop recording.
Definition at line 138 of file adin_mic_o2.c.
int adin_mic_read | ( | SP16 * | buf, | |
int | sampnum | |||
) |
Read samples from device.
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 158 of file adin_mic_o2.c.