Re: ALSA OSS Emulation - Read - EAGAIN Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Wed, 30 Jul 2008 08:20:09 -0700 (PDT),
Rahul Iyer wrote:
> 
> Hi ALSA Developers
> 
> 
> I have a full duplex voice application, that records voice and sends
> (over a network) as well as receives and plays voice. OSS APIs are used
> to capture and play voice samples. 
> 
> The voice quality is noticeably poor in SUSE 10. After further
> investigation, I see most of the 'read' system calls fail with EAGAIN
> (resource unavailable) error.

EAGAIN is no fatal error but means that samples are not available for
read when the stream is opened in non-blocking mode.  If it happens so
often, it's likely a parameter mismatch.  For example, the read period
size apps expected doesn't match with the size actually set.

It's better to create a small test-case first then analyze the problem
with it.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux