#include <sp/spAudioLib.h>
#include <sent/stddefs.h>
#include <sent/adin.h>
Include dependency graph for adin_mic_sp.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 spAudio | audio = NULL |
Audio descriptor. | |
static long | buffer_length = 256 |
Buffer length. | |
static float | rate |
Sampling rate specified in adin_mic_standby(). |
Julius does not alter any mixer device setting at all on Linux. You should configure the mixer for recording source (mic/line) and recording volume correctly using other audio tool such as xmixer.
This code has been contributed by Hideaki Banno.
Definition in file adin_mic_sp.c.
|
Device initialization: check device capability and open for recording.
Definition at line 62 of file adin_mic_sp.c. |
|
Start recording.
Definition at line 76 of file adin_mic_sp.c. |
|
Stop recording.
Definition at line 102 of file adin_mic_sp.c. |
|
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 some samples are obtained.
Definition at line 121 of file adin_mic_sp.c. |