[Patches] [ python-Patches-412553 ] fix linuxaudiodev handling of EAGAIN

noreply@sourceforge.net noreply@sourceforge.net
Fri, 30 Mar 2001 12:06:02 -0800


Patches item #412553, was updated on 2001-03-30 12:06
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=412553&group_id=5470

Category: Modules
Group: None
Status: Open
Priority: 5
Submitted By: Christopher Lee (clee)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix linuxaudiodev handling of EAGAIN

Initial Comment:
The linuxaudiodev write method uses a non-blocking call
to write data to the sound device.  When the buffer for
this device is full, it returns the EAGAIN error.  The
current linuxaudiodev lad_write code returns this as an
error and terminates the write.  This patch detects the
EAGAIN errno and retries the write.  It allows the
test_linuxaudiodev.py to be heard under my system (i686
linux 2.4.2 and 2.4.3)  

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=412553&group_id=5470