avoid high cpu load from non configured pulse audio output
Adrian Smith
9 years ago
579 | 579 | // EPIPE indicates underrun - attempt to recover |
580 | 580 | UNLOCK; |
581 | 581 | continue; |
582 | } else if (err == -EIO) { | |
583 | // EIO can occur with non existant pulse server | |
584 | UNLOCK; | |
585 | LOG_SDEBUG("snd_pcm_delay returns: EIO - sleeping"); | |
586 | usleep(100000); | |
587 | continue; | |
582 | 588 | } else { |
583 | 589 | LOG_DEBUG("snd_pcm_delay returns: %d", err); |
584 | 590 | } |