diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-23 23:59:54 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-23 23:59:54 +0200 |
commit | e4f5d6bdf47c96dc9c0b5fe287598bc10b168a71 (patch) | |
tree | 2229953464549c10559a458879cd33678f1c704e /src/main.c | |
parent | 9899ab5ac2d572fbfa430b59f8bf6f917477b6f1 (diff) | |
download | mpd-e4f5d6bdf47c96dc9c0b5fe287598bc10b168a71.tar.gz mpd-e4f5d6bdf47c96dc9c0b5fe287598bc10b168a71.tar.xz mpd-e4f5d6bdf47c96dc9c0b5fe287598bc10b168a71.zip |
alsa: re-enable-nonblocking, but sleep if busy
Instead of letting ALSA block for us (and potentially allowing
something stupid on certain hardware or drivers), we do the
sleeping ourselves. We calculate the sleep to be a fraction of
period_time to avoid oversleeping (and thus audible skipping).
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions