Searched refs:pb_pcm (Results 1 – 2 of 2) sorted by relevance
16 aos_pcm_t *pb_pcm = NULL, *cap_pcm = NULL; variable77 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 …]
29 aos_pcm_t *pb_pcm = NULL, *cap_pcm = NULL; in sound_loopback_thread() local45 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