mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed mmap size computation
This commit is contained in:
parent
e0acbbfef8
commit
ae549cf739
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ int snd_pcm_mmap(snd_pcm_t *pcm)
|
|||
default:
|
||||
assert(0);
|
||||
}
|
||||
s = i1->first + i1->step * pcm->buffer_size;
|
||||
s = i1->first + i1->step * (pcm->buffer_size - 1) + pcm->bits_per_sample;
|
||||
if (s > size)
|
||||
size = s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue