Home
last modified time | relevance | path

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

/AliOS-Things-master/components/uvoice/audio/hal/haas100/
A Duvoice_pcm.c16 aos_pcm_t *pb_pcm = NULL, *cap_pcm = NULL; variable
77 aos_pcm_sw_params_any(pb_pcm->sw_params); in uvoice_pcm_open()
79 aos_pcm_prepare(pb_pcm); in uvoice_pcm_open()
80 aos_pcm_start(pb_pcm); in uvoice_pcm_open()
114 if (pcm->dir == PCM_OUT && pb_pcm) { in uvoice_pcm_write()
115 ret = aos_pcm_writei(pb_pcm, buffer, aos_pcm_bytes_to_frames(pb_pcm, nbytes)); in uvoice_pcm_write()
116 ret = aos_pcm_frames_to_bytes(pb_pcm, ret); in uvoice_pcm_write()
138 if (pb_pcm && (pcm->dir == PCM_OUT)) { in uvoice_pcm_close()
140 aos_pcm_stop(pb_pcm); in uvoice_pcm_close()
141 aos_pcm_close(pb_pcm); in uvoice_pcm_close()
[all …]
/AliOS-Things-master/components/a2sa/example/
A Dsound_example_lb.c29 aos_pcm_t *pb_pcm = NULL, *cap_pcm = NULL; in sound_loopback_thread() local
45 if(!pb_pcm) { in sound_loopback_thread()
50 aos_pcm_hw_params_alloca(&pb_pcm->hw_params); in sound_loopback_thread()
52 aos_pcm_sw_params_any(pb_pcm->sw_params); in sound_loopback_thread()
54 aos_pcm_prepare(pb_pcm); in sound_loopback_thread()
55 aos_pcm_start(pb_pcm); in sound_loopback_thread()
77 …ret = aos_pcm_writei(pb_pcm, dataBuf, aos_pcm_bytes_to_frames(pb_pcm, aos_pcm_frames_to_bytes(cap_… in sound_loopback_thread()
80 if(pb_pcm) { in sound_loopback_thread()
83 aos_pcm_stop(pb_pcm); in sound_loopback_thread()
84 aos_pcm_close(pb_pcm); in sound_loopback_thread()
[all …]

Completed in 3 milliseconds