Home
last modified time | relevance | path

Searched refs:period_bytes (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/a2sa/src/driver/platform/rtos/
A Dpb_task.c48 unsigned int frame_size, period_bytes, left_bytes; in pb_thread_loop() local
72 period_bytes = frame_size * PB_TIMER_INTERVAL_MS * pcm_dev->params.rate / 1000; in pb_thread_loop()
74 if(left_bytes > period_bytes) { in pb_thread_loop()
75 … pcm_dev->ops->write(pcm_dev->hdl, data_buf->data + data_buf->wOffset, period_bytes); in pb_thread_loop()
76 data_buf->wOffset += period_bytes; in pb_thread_loop()
81 sleepCntUs = left_bytes * PB_TIMER_INTERVAL_MS * 1000 / period_bytes; in pb_thread_loop()
A Dcap_task.c60 unsigned int frame_size, period_bytes; in cap_thread_loop() local
71 period_bytes = frame_size * cap_interval_ms * pcm_dev->params.rate / 1000; in cap_thread_loop()
74 databuf->data = malloc(period_bytes); in cap_thread_loop()
76 memset(databuf->data, 0, period_bytes); in cap_thread_loop()
77 … databuf->size = pcm_dev->ops->read(pcm_dev->hdl, databuf->data, period_bytes); in cap_thread_loop()
/AliOS-Things-master/components/a2sa/include/
A Dsound_pcm.h96 unsigned int period_bytes; member

Completed in 5 milliseconds