diff options
author | waker <wakeroid@gmail.com> | 2011-04-10 22:41:32 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-10 22:41:32 +0200 |
commit | f3702dcaa3a7b7d4f99be8a27f276c5a0fa1e36a (patch) | |
tree | 8980295f733553eec621aae73328611809726372 /plugins/alsa | |
parent | 3801c7a76992e47ed6dbf84160d9929dca5fb6a2 (diff) |
fixed alsa pause regression
Diffstat (limited to 'plugins/alsa')
-rw-r--r-- | plugins/alsa/alsa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c index 7fba18d9..07b0c869 100644 --- a/plugins/alsa/alsa.c +++ b/plugins/alsa/alsa.c @@ -626,7 +626,7 @@ palsa_thread (void *context) { LOCK; /* find out how much space is available for playback data */ snd_pcm_sframes_t frames_to_deliver = snd_pcm_avail_update (audio); - while (frames_to_deliver >= period_size, 1) { + while (state == OUTPUT_STATE_PLAYING/*frames_to_deliver >= period_size, 1*/) { if (alsa_terminate) { break; } @@ -666,9 +666,9 @@ palsa_thread (void *context) { // break; } else { - if (err != -EPIPE) { - fprintf (stderr, "alsa: snd_pcm_writei error=%d, %s\n", err, snd_strerror (err)); - } + //if (err != -EPIPE) { + // fprintf (stderr, "alsa: snd_pcm_writei error=%d, %s\n", err, snd_strerror (err)); + //} snd_pcm_prepare (audio); snd_pcm_start (audio); continue; |