[gstreamer-bugs] [Bug 349015] [sunaudio] open source with O_NONBLOCK

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Aug 10 11:59:07 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=349015
 GStreamer | gst-plugins-good | Ver: HEAD CVS





------- Comment #5 from Brian Cameron  2006-08-10 18:58 UTC -------

The main reason that we want to remove NONBLOCK is because when we use this
flag we notice that the recorded input "stutters" so there are segments of
silence in the recorded data, like it is only recording sometimes.

I think we need to research this a bit more and make sure that we use the
correct options here.

Note that we might not be managing the return code from read() properly.  When
a device is non-blocking, it will reutrn empty stuff from read with EINTR,
indicating that we should retry the read() or it will return partial reads. 
This may be the cause of the "stuttering" effect we notice when we turn on
NONBLOCK mode.  Can we check this?

Also, according to Jerry, multiple processes can open the audio device even if
it open in NONBLOCK mode.  Using NONBLOCK only allows the same program to open
the device more than once.  Can we verify that this is all that NONBLOCK
provides?


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list