[alsa] Fix for ALSA issues when source quality changes (issue #722, issue #744 and issue #754)

* Fix "clicks" during playback, especially on low buffer size devices
  Bug had two causes: Trying to write to the prebuf ringbuffer when it was full
  and writing new audio to the device without first having drained the prebuf,
  thus writing out of order.

* Use snd_pcm_drain() so alsa doesn't report underrun on playback session end
  Removes SNDRV_PCM_IOCTL_SYNC_PTR errors

* Fix missing error check of the return value from snd_pcm_avail (now use snd_pcm_avail_delay)
This commit is contained in:
ejurgensen 2019-06-22 21:53:09 +02:00
parent 795da5059d
commit 51d85d0975

File diff suppressed because it is too large Load Diff