ALSA - PCM Underrun Issue
by Ravichandra from LinuxQuestions.org on (#6J708)
We're encountering a PCM underrun issue in Interleaved Mode while playing a single-channel audio through Alsa-lib. The error message "(snd_pcm_recover) underrun occurred" is being displayed when writing data to the speaker.
Here's what we've attempted so far:
We are using a sampling rate of 22kHz. Are there any specific ALSA configurations or settings that can be adjusted to prevent PCM underrun in this context?
Here's what we've attempted so far:
- Successfully played the same audio using aplay.
- Generated complete buffers from text-to-speech engine and played them without issues using alsa-lib.
We are using a sampling rate of 22kHz. Are there any specific ALSA configurations or settings that can be adjusted to prevent PCM underrun in this context?