Glitch in audio when ipod is disconnected

Vignesh Raman rvignesh.raman at gmail.com
Thu Sep 5 09:55:34 PDT 2013


Hi Tim,

On Thu, 2013-09-05 at 08:21 +0530, Vignesh Raman wrote:
>
> > This seems to be a race condition between threads, but I'm not sure.
>
> Out of curiosity, what makes you suspect it's a race and not e.g. a
> scheduling issue? (e.g. the capture thread or render thread don't get
> scheduled for a while, causing the glitch)
>

Since its a multi threaded application, my guess was it could be a race
condition between threads.


>
> Have you tried playing with the buffer sizes in sink/src?
>

The buffer-time (Size of audio buffer in microseconds) of alsa source is
default set to 200ms. The buffer-time and actual-buffer-time of alsa source
was changed to 23ms in the application code. The application was also not
bound to single processor by removing 'taskset' during launching it. With
this the audio glitch was not seen when ipod is disconnected during
playback.

But could this be solved in GStreamer, if its really a problem in GStreamer
?

There were some patches which address some issues when usb is disconnected,
https://bugzilla.gnome.org/show_bug.cgi?id=690197

Is the issue mentioned in the bug related to the glitch issue.

I'm also not getting how 'taskset' is actually solving the issue. Does the
scheduling happen without any delay when taskset is used.

Regards,
Vignesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130905/832a1a75/attachment.html>


More information about the gstreamer-devel mailing list