All of lore.kernel.org
 help / color / mirror / Atom feed
* I think I found an error in pcm/pcm_file.c
@ 2006-05-11 22:50 Juan Carlos Castro y Castro
  2006-05-12  8:59 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Carlos Castro y Castro @ 2006-05-11 22:50 UTC (permalink / raw)
  To: alsa-devel

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;
}



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: I think I found an error in pcm/pcm_file.c
  2006-05-11 22:50 I think I found an error in pcm/pcm_file.c Juan Carlos Castro y Castro
@ 2006-05-12  8:59 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2006-05-12  8:59 UTC (permalink / raw)
  To: Juan Carlos Castro y Castro; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-12  8:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-11 22:50 I think I found an error in pcm/pcm_file.c Juan Carlos Castro y Castro
2006-05-12  8:59 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.