#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.
| 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 62 of file adin_mic_sp.c.
| boolean adin_mic_start | ( | ) |
Start recording.
Definition at line 76 of file adin_mic_sp.c.
| boolean adin_mic_stop | ( | ) |
Stop recording.
Definition at line 102 of file adin_mic_sp.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 some samples are obtained.
| buf | [out] samples obtained in this function | |
| sampnum | [in] wanted number of samples to be read |
Definition at line 121 of file adin_mic_sp.c.
1.5.0