Home
last modified time | relevance | path

Searched refs:pcm_capture (Results 1 – 2 of 2) sorted by relevance

/external/libwebsockets/minimal-examples/raw/minimal-raw-audio/
Daudio.c26 snd_pcm_t *pcm_capture; member
125 if (set_hw_params(lws_get_vhost(wsi), &vhd->pcm_capture, in callback_raw_test()
141 if (vhd && vhd->pcm_capture) { in callback_raw_test()
142 snd_pcm_close(vhd->pcm_capture); in callback_raw_test()
143 vhd->pcm_capture = NULL; in callback_raw_test()
157 n = snd_pcm_readi(vhd->pcm_capture, &vhd->simplebuf[vhd->wpos], in callback_raw_test()
/external/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-alexa/
Daudio.c38 snd_pcm_t *pcm_capture; member
253 if (set_hw_params(lws_get_vhost(wsi), &vhd->pcm_capture, in callback_audio()
279 if (vhd->pcm_capture) { in callback_audio()
280 snd_pcm_drop(vhd->pcm_capture); in callback_audio()
281 snd_pcm_close(vhd->pcm_capture); in callback_audio()
282 vhd->pcm_capture = NULL; in callback_audio()
356 n = snd_pcm_readi(vhd->pcm_capture, temp, LWS_ARRAY_SIZE(temp)); in callback_audio()