Fix a typo in pcm_file.c

Fix a typo in snd_pcm_file_readn().
This commit is contained in:
Takashi Iwai 2006-05-12 12:09:33 +02:00
parent 06e3df0549
commit 308f52e65a

View file

@ -234,7 +234,7 @@ static snd_pcm_sframes_t snd_pcm_file_readn(snd_pcm_t *pcm, void **bufs, snd_pcm
{ {
snd_pcm_file_t *file = pcm->private_data; snd_pcm_file_t *file = pcm->private_data;
snd_pcm_channel_area_t areas[pcm->channels]; snd_pcm_channel_area_t areas[pcm->channels];
snd_pcm_sframes_t n = snd_pcm_writen(file->gen.slave, bufs, size); snd_pcm_sframes_t n = snd_pcm_readn(file->gen.slave, bufs, size);
if (n > 0) { if (n > 0) {
snd_pcm_areas_from_bufs(pcm, areas, bufs); snd_pcm_areas_from_bufs(pcm, areas, bufs);
snd_pcm_file_add_frames(pcm, areas, 0, n); snd_pcm_file_add_frames(pcm, areas, 0, n);