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:
parent
6461f74ae4
commit
906905aa43
3 changed files with 13 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue