[Alsa-user] read in blocks of 20 ms
Brought to you by:
perex
From: <ac...@cs...> - 2005-12-07 10:41:16
|
Hi, I want to read audio data in blocks of 20 ms with sampling rate of 8000Hz. Thus every second I want 160 samples? How do I do this using alsa APIs. I found the docs very confusing in terms of . periods . period-size . frames . bytes_per_frame Could someone please 1. give usage of relevant alsa APIs for the above problem. 2. Explain the terms in ways to how alsa relates to them Regards -Anurag |