diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-09-02 21:34:02 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-09-02 17:02:37 +0200 |
commit | 83aa99e7a9a1ff0d6949b4c71cd8817e2668b341 (patch) | |
tree | fd9ea554c08fc7560ec0f2fa199844c73cd1e633 /.gitreview | |
parent | 6c42261cd2b8075904e3df9ec987ffe52c6adb2b (diff) |
pq_alsa.c: handle output buffer underrun
On some systems the ALSA output buffer is pretty big, and
if the audio samples are not being passed into the buffer
quickly enough, it becomes starved for data, resulting
in an error called underrun.
Previously, when it happenned, GAPK used to stop processing
with the following message (where X is a random number):
[+] PQ: Adding ALSA output (dev='default', blk_len=320)
[!] pq_execute(): abort, item returned -1
[+] Processed X frames
According to the ALSA documentation, the pcm_handle
changes its state when the problem happens, and should
be recovered using the snd_pcm_prepare() call. This change
actually does that.
Diffstat (limited to '.gitreview')
0 files changed, 0 insertions, 0 deletions