From: Takashi Iwai Subject: Re: Another asinine question Date: Wed, 17 May 2006 17:24:40 +0200 Message-ID: References: <446B37A6.2080503@instant.com.br> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <446B37A6.2080503@instant.com.br> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Juan Carlos Castro y Castro Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 17 May 2006 11:48:06 -0300, Juan Carlos Castro y Castro wrote: > > Ooops, forgot to send this to the list... > > Takashi Iwai wrote: > > >>>Great, feel free to submit the patches to alsa-devel ML (Cc to me). > >>> > >>> > >>Your wish is my command, Takashi-san. ;) > >> > >>Note the interleaved read has not yet been implemented. Also, I'm not > >>yet dealing with blocking versus non-blocking at the moment. When > >>reading from a file, read()'s just keep getting zero bytes and arecord > >>doesn't mind. Some deal of sophistication will have to be added. > >> > >> > >That's OK. We can extend the feature later. > > > > > >>Another thing: you'll see I just "hung" another snd_pcm_file_t structure > >>at the bottom of the original one. I'll understand if that offends > >>people's coding sensibilities -- it offended mine. :-/ > >> > >> > >Does't only one file descriptor instead of the whole snd_pcm_file > >struct suffice? Actually, it's used only in readi(). > > > > > Not really, especially when I finally tackle _readn. And even in the > noninterleaved case, there's always the possibility read() will return a > number of bytes that's not a multiple of the frame size (especially if > the file is a named pipe). I'll need ->wbuf and some of those indexes to > keep the remaining bytes for the next read. Then let's create another object type. It's confusing to use the existing object for completly another purpose. Also, "nextfile" doesn't sound intuitive in this case. (it sounds like a linked chain of data.) Takashi ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642