[pulseaudio-discuss] [PATCH 0/3] Results from debugging a rewind problem

Colin Guthrie gmane at colin.guthr.ie
Mon Oct 3 13:59:22 PDT 2011


'Twas brillig, and Tanu Kaskinen at 29/09/11 16:54 did gyre and gimble:
> module-null-sink has a bug (fix to be posted later) that
> causes it to use 10 second buffer instead of the intended 2
> second buffer. That's actually sort of nice, because that
> made another bug visible. When moving streams away from the
> null sink, streams sometimes played silence for a while to
> the new sink. The culprit turned out to be a bug in rewind
> handling when a stream moving is finished. The first patch
> fixes that.
> 
> The second patch just adds some documentation and FIXME
> notes - a result of thinking through what really should
> happen when a stream is moved.
> 
> The third patch adds some assistance for debugging future
> bugs. The added memblockq information was successfully used
> in debugging this rewinding bug.

Incidentally, I'm currently fiddling about with a problem I'm seeing
with SDL audio (using the built in pulse support) under a VM.

Basically the problem is about a 0.4s delay in the audio. I cannot
reproduce on my own (bare-metal) machine with or without tsched=0 (IIRC
VMs disable tsched automatically).

When the problem happens it is preceded by the message relating to being
woken up by the alsa driver but with no data to write.

This happens on both the snd-intel8x0 and snd-hda-intel h/w (VirtualBox
supports both as emulated devices)

I'm not sure why but I have got half an inkling this is related to
rewinding behaviour (i.e. rewinding too far and then having to play
through the silence this results in, which results in the delay).

Does anyone have any ideas about this?


Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the pulseaudio-discuss mailing list