#include <sent/stddefs.h>
#include <sent/adin.h>
Go to the source code of this file.
Functions | |
boolean | adin_netaudio_standby (int sfreq, void *arg) |
Connection initialization: check connectivity and open for recording. | |
boolean | adin_netaudio_begin () |
Start recording. | |
boolean | adin_netaudio_end () |
Stop recording. | |
int | adin_netaudio_read (SP16 *buf, int sampnum) |
Read samples from the daemon. |
Low level I/O functions for audio input via the NetAudio server. NetAudio is a part of DatLink product, and this feature enables direct live input recognition via DatLink. This file will be compiled if NetAudio headers and libraries are located on the machine.
The actual procedure are defined in adin_na.c.
Definition in file adin_netaudio.c.
boolean adin_netaudio_standby | ( | int | sfreq, | |
void * | arg | |||
) |
Connection initialization: check connectivity and open for recording.
sfreq | [in] required sampling frequency | |
arg | [in] server device name string to connect |
Definition at line 58 of file adin_netaudio.c.
Referenced by adin_select().
boolean adin_netaudio_begin | ( | ) |
Start recording.
Definition at line 72 of file adin_netaudio.c.
Referenced by adin_select().
boolean adin_netaudio_end | ( | ) |
Stop recording.
Definition at line 84 of file adin_netaudio.c.
Referenced by adin_select().
int adin_netaudio_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 103 of file adin_netaudio.c.
Referenced by adin_select().