1
0
Fork 0
forked from len0rd/rockbox

Use a macro for aligning PCM chunks instead of explictly coding it each time.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31152 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-12-05 13:58:35 +00:00
parent 6461f74ae4
commit 906905aa43
3 changed files with 13 additions and 20 deletions

View file

@ -22,6 +22,11 @@
#ifndef PCM_INTERNAL_H
#define PCM_INTERNAL_H
/* Cheapo buffer align macro to align to the 16-16 PCM size */
#define ALIGN_AUDIOBUF(start, size) \
({ (start) = (void *)(((uintptr_t)(start) + 3) & ~3); \
(size) &= ~3; })
struct pcm_peaks
{
long period;