From: Takashi Iwai Subject: Re: I think I found an error in pcm/pcm_file.c Date: Fri, 12 May 2006 10:59:49 +0200 Message-ID: References: <4463BF9F.8030307@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: <4463BF9F.8030307@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 Thu, 11 May 2006 19:50:07 -0300, Juan Carlos Castro y Castro wrote: > > Shouldn't this function use snd_pcm_readn() instead of snd_pcm_writen()? > > static snd_pcm_sframes_t snd_pcm_file_readn(snd_pcm_t *pcm, void **bufs, > snd_pcm_uframes_t size) > { > snd_pcm_file_t *file = pcm->private_data; > snd_pcm_channel_area_t areas[pcm->channels]; > snd_pcm_sframes_t n = snd_pcm_writen(file->gen.slave, bufs, size); > if (n > 0) { > snd_pcm_areas_from_bufs(pcm, areas, bufs); > snd_pcm_file_add_frames(pcm, areas, 0, n); > } > return n; > } Yep. Will correct it soon. Thanks, 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