Chris,
1、demo程序很简单,现附上部分源码:
#define WORD_LEN 8 #define READ_SAMPLE 1152//2560//5120 long long device_capture( snd_pcm_t *c, snd_pcm_t *p, int rate, int secs, int port, int idx) { int frames = rate/25; int channels = port*2; char *data = buff0; long long…