diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-07 22:37:32 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-07 22:37:32 +0200 |
commit | 4fa0d0375913a45ae93103ce6f006f8fa134357b (patch) | |
tree | ae8621292e93fefe963c433d191384daa1a36668 /palsa.c | |
parent | 403128abb088f8db7d64ef00b965198192194e4a (diff) |
added flac vorbiscomment metadata support
Diffstat (limited to 'palsa.c')
-rw-r--r-- | palsa.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -250,14 +250,16 @@ palsa_thread (uintptr_t context) { // usleep (1000); // continue; // } - snd_pcm_wait (audio, 1000); -#if 0 - if ((err = ) < 0) { - mutex_unlock (mutex); + ; + if ((err = snd_pcm_wait (audio, 1000)) < 0 && state == 1) { fprintf (stderr, "alsa poll failed (%s)\n", strerror (errno)); -// continue; + if ((err = snd_pcm_prepare (audio)) < 0) { + fprintf (stderr, "cannot prepare audio interface for use (%s)\n", + snd_strerror (err)); + } + mutex_unlock (mutex); + continue; } -#endif /* find out how much space is available for playback data */ |