Lines Matching defs:chandle
170 int setparams(snd_pcm_t *phandle, snd_pcm_t *chandle, int *bufsize)
190 if ((err = setparams_stream(chandle, ct_params, "capture")) < 0) {
213 if ((err = setparams_bufsize(chandle, c_params, ct_params, *bufsize, "capture")) < 0) {
251 if ((err = setparams_set(chandle, c_params, c_swparams, "capture")) < 0) {
262 snd_pcm_dump(chandle, output);
494 snd_pcm_t *phandle, *chandle;
595 if ((err = snd_pcm_open(&chandle, cdevice, SND_PCM_STREAM_CAPTURE, block ? 0 : SND_PCM_NONBLOCK)) < 0) {
618 if (setparams(phandle, chandle, &latency) < 0)
621 if ((err = snd_pcm_link(chandle, phandle)) < 0) {
638 if ((err = snd_pcm_start(chandle)) < 0) {
643 gettimestamp(chandle, &c_tstamp);
648 showstat(chandle, frames_in);
656 snd_pcm_wait(chandle, 1000);
658 if ((r = readbuf(chandle, buffer, latency, &frames_in, &in_max)) < 0)
674 showstat(chandle, frames_in);
679 snd_pcm_drop(chandle);
694 snd_pcm_unlink(chandle);
696 snd_pcm_hw_free(chandle);
699 snd_pcm_close(chandle);