On Tue, Jun 22, 2010 at 4:26 AM, folkert <folkert@xxxxxxxxxxxxxx> wrote: > Hi, > > Am trying to achieve something trivial: reading 1 second of audio at a > time, but something goes wrong: > > Sound 1277148008.835094 > Sound 1277148008.838224 > Sound 1277148010.834839 > Sound 1277148010.838001 > Sound 1277148012.834523 > Sound 1277148012.837580 > Sound 1277148014.835240 > Sound 1277148014.838333 > > As you can see; audio is returned for 2 seconds, then it sleeps 2 > secondsn, then 2 seconds of audio, etc. That is 'normal' behavior, even though a bit odd (described in the changelog of the attempted patches) I submitted patches to make such blocking read/write calls return as expected, but since they change the semantics of read/write they were not accepted http://mailman.alsa-project.org/pipermail/alsa-devel/2009-December/023986.html http://mailman.alsa-project.org/pipermail/alsa-devel/2009-December/023985.html So, you have to write your application around this behavior. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel