https://code.google.com/p/squeezelite/issues/detail?id=31

If anyone is suffering from this and is building their own code, could
you try adding the following patch to squeezelite:


Code:
--------------------
    
  diff --git a/output_alsa.c b/output_alsa.c
  index aeb9d25..b5619ab 100644
  --- a/output_alsa.c
  +++ b/output_alsa.c
  @@ -553,6 +553,8 @@ static void *output_thread(void *arg) {
  // restrict avail in writei mode as write_buf is restricted to period_size
  if (!alsa.mmap) {
  avail = min(avail, alsa.period_size);
  +               } else {
  +                       avail = min(avail, alsa.buffer_size);
  }
  
  // avoid spinning in cases where wait returns but no bytes available (seen 
with pulse audio)
  
--------------------


I think this will work around buggy device drivers which return
abnormally high values - not sure if this is the problem, but from the
recent report it looks correlated.  I would like to get some reports on
whether this makes any difference.


------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to