#include <sent/stddefs.h>
#include <sent/adin.h>
Go to the source code of this file.
Functions | |
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. |
Low level I/O functions for microphone input on Linux. This will be called when no device was explicitly specified. A call to the functions in this file will be redirected to ALSA, OSS or ESD.
Definition in file adin_mic_linux.c.
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 45 of file adin_mic_linux.c.
boolean adin_mic_begin | ( | ) |
Start recording.
Definition at line 65 of file adin_mic_linux.c.
boolean adin_mic_end | ( | ) |
Stop recording.
Definition at line 85 of file adin_mic_linux.c.
int adin_mic_read | ( | SP16 * | buf, | |
int | sampnum | |||
) |
Read samples from device.
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 112 of file adin_mic_linux.c.