Pulse: Fix snd_pcm_avail returning 0 in some cases
Pulse: Fix snd_pcm_avail returning 0 in some cases

Due to a round-off error, snd_pcm_avail could in some cases
return 0 even though more data could be written to the stream.

Reported-by: Maarten Lankhorst <87f91174cda26d6f1b92af9bc432857299f1167f@gmail.com>
Signed-off-by: David Henningsson <9fb354e0a5603a0331399c18f4aa5aab2f9d9c5b@canonical.com>
Signed-off-by: Takashi Iwai <4596b3305151c7ee743192a95d394341e3d3b644@suse.de>

Distrotech/alsa-plugins,Distrotech/alsa-plugins,Distrotech/alsa-plugins