mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
memblock: Add pa_memblock_acquire_chunk().
Besides making the code a bit cleaner, this also gets rid of a few "cast increases required alignment of target type" warnings.
This commit is contained in:
parent
33e5802df2
commit
3d6092bb0f
16 changed files with 52 additions and 40 deletions
|
|
@ -450,7 +450,7 @@ START_TEST (mix_test) {
|
|||
k.length = i.length;
|
||||
k.index = 0;
|
||||
|
||||
ptr = (uint8_t*) pa_memblock_acquire(k.memblock) + k.index;
|
||||
ptr = pa_memblock_acquire_chunk(&k);
|
||||
pa_mix(m, 2, ptr, k.length, &a, NULL, FALSE);
|
||||
pa_memblock_release(k.memblock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue