#include <sent/stddefs.h>
#include <sent/adin.h>
#include <esd.h>
Go to the source code of this file.
Functions | |
boolean | adin_esd_standby (int sfreq, void *dummy) |
Connection initialization: check connectivity and open for recording. | |
boolean | adin_esd_begin () |
Start recording. | |
boolean | adin_esd_end () |
Stop recording. | |
int | adin_esd_read (SP16 *buf, int sampnum) |
Read samples from the daemon. | |
Variables | |
static int | sock |
Audio socket. | |
static char | name_buf [ESD_NAME_MAX] |
Unique identifier of this process that will be passed to EsounD. | |
static int | latency = 50 |
Lantency time in msec. |
Low level I/O functions for audio input via the Enlightened Sound Daemon (EsounD, or esd in short). If you want to use this API, please specify "--with-mictype=esd" options at compilation time to configure script.
Definition in file adin_esd.c.
boolean adin_esd_standby | ( | int | sfreq, | |
void * | dummy | |||
) |
Connection initialization: check connectivity and open for recording.
sfreq | [in] required sampling frequency | |
dummy | [in] a dummy data |
Definition at line 54 of file adin_esd.c.
Referenced by adin_mic_standby(), and adin_select().
boolean adin_esd_begin | ( | ) |
Start recording.
Definition at line 83 of file adin_esd.c.
Referenced by adin_mic_begin(), and adin_select().
boolean adin_esd_end | ( | ) |
Stop recording.
Definition at line 94 of file adin_esd.c.
Referenced by adin_mic_end(), and adin_select().
int adin_esd_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 112 of file adin_esd.c.
Referenced by adin_mic_read(), and adin_select().