#include <sp/spAudioLib.h>
#include <sent/stddefs.h>
#include <sent/adin.h>
Go to the source code of this file.
Functions | |
| boolean | adin_mic_standby (int sfreq, void *dummy) |
| Device initialization: check device capability and open for recording. | |
| boolean | adin_mic_begin () |
| Start recording. | |
| boolean | adin_mic_end () |
| Stop recording. | |
| int | adin_mic_read (SP16 *buf, int sampnum) |
| Read samples from device. | |
Variables | |
| static spAudio | audio = NULL |
| Audio descriptor. | |
| static long | buffer_length = 256 |
| Buffer length. | |
| static float | rate |
| Sampling rate specified in adin_mic_standby(). | |
Low level I/O functions for microphone input using spAudio library. To use, please specify "--with-mictype=sp" options to configure script.
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 63 of file adin_mic_sp.c.
| boolean adin_mic_begin | ( | ) |
Start recording.
Definition at line 77 of file adin_mic_sp.c.
| boolean adin_mic_end | ( | ) |
Stop recording.
Definition at line 103 of file adin_mic_sp.c.
| int adin_mic_read | ( | SP16 * | buf, | |
| int | sampnum | |||
| ) |
Read samples from device.
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 122 of file adin_mic_sp.c.
1.5.1