I am using the tinyalsa library to implement audio capturing using mmap. But at the beginning of the program itself I am getting Xrun error ,i.e. overrun in pcm_wait(). I tried varying the buffer size and period, but i think its not able to read from the sound card buffer.
Is there any tutorial on how to use tinyalsa's mmap functions properly. Or even Alsa pcm mmap tutorial?