#include <sent/stddefs.h>
#include <sent/adin.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/stropts.h>
#include <sys/audioio.h>
adin_mic_sol2.cのインクルード依存関係図

マクロ定義 | |
| #define | DEFAULT_DEVICE "/dev/audio" |
| Default device name, can be overridden by AUDIODEV environment variable | |
関数 | |
| boolean | adin_mic_standby (int sfreq, void *arg) |
| boolean | adin_mic_start () |
| boolean | adin_mic_stop () |
| int | adin_mic_read (SP16 *buf, int sampnum) |
| Read samples from the daemon. | |
変数 | |
| static int | afd |
| Audio file descriptor | |
| static struct audio_info | ainfo |
| Audio format information | |
Sun Solaris 2.5.1 および 2.6 で動作確認をしています. ビッグエンディアンを前提としているため,Solaris x86 では動きません.
起動後オーディオ入力はマイクに自動的に切り替わりますが, ボリュームは自動調節されません.gaintoolなどで別途調節してください.
デフォルトのデバイス名は "/dev/audio" です.環境変数 AUDIODEV に デバイス名を指定することで,他のデバイス名を使用できます.
adin_mic_sol2.c で定義されています。
| boolean adin_mic_standby | ( | int | sfreq, | |
| void * | arg | |||
| ) |
Device initialization: check device capability and open for recording.
| sfreq | [in] required sampling frequency. | |
| arg | [in] a dummy data |
adin_mic_sol2.c の 76 行で定義されています。
| boolean adin_mic_start | ( | ) |
| boolean adin_mic_stop | ( | ) |
| 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 |
adin_mic_sol2.c の 196 行で定義されています。
1.5.0