mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Fix a typo in pcm_file.c
Fix a typo in snd_pcm_file_readn().
This commit is contained in:
parent
06e3df0549
commit
308f52e65a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue