For a few weeks I've been using PulseAudio network tunneling over wifi.
I've noticed that on a very regular interval the audio stutters for a
few seconds.  I've been watching network traffic in KSysGuard, and I
noticed that the transmit rate is usually about 200 KB/sec, but when the
audio stutters, the transfer rate drops slightly.  When that's the only
thing going on on my network, I can observe this happening at a
completely regular interval.

I finally figured out that it's caused by my laptop's wireless card
scanning for other networks.  I can make it stutter in exactly the same
way on command by running "iwlist scan".

My laptop has an "Intel Corporation PRO/Wireless 4965 AG" network card,
and it uses the iwl4965 driver.  Now my laptop very rarely moves
anywhere, and it is always on my home wifi network, so I don't need it
to scan for other networks.  If I could simply disable scanning on my
laptop, it wouldn't stutter anymore.

Of course, more buffering in PulseAudio would help a little, but I think
all it would do is cause it to stutter a bit less often.  Eventually the
stuttering would cause the buffer to empty, because it can't fill faster
than audio is being played.  So it could stutter less often, for a
longer period of time, but it would still end up stuttering.

I've been googling around, trying to find a way to adjust the scan
interval, but I haven't found anything yet.  I'm not sure if it's
controlled by wpa_supplicant or the driver.  I've also seen that some
cards seem to support "background scanning" and others "progressive
scanning", and I don't know if one of those would mitigate it, or if my
card already does one of them.

Anyway, for anyone else who is having stuttering, if you're on wireless,
one cause of it is almost surely the scan interval.  Find a way to fix
that and you may solve it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/273742

Title:
  Pulseaudio over wifi stutters horribly

To manage notifications about this bug go to:
https://bugs.launchpad.net/pulseaudio/+bug/273742/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to