#include <sent/stddefs.h>
#include <sent/adin.h>
#include <esd.h>
Include dependency graph for adin_esd.c:
Go to the source code of this file.
Functions | |
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 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. |
Definition in file adin_esd.c.
boolean adin_mic_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 51 of file adin_esd.c.
boolean adin_mic_start | ( | ) |
Start recording.
Definition at line 75 of file adin_esd.c.
boolean adin_mic_stop | ( | ) |
Stop recording.
Definition at line 86 of file adin_esd.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 104 of file adin_esd.c.