diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2011-12-05 13:58:35 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2011-12-05 13:58:35 +0000 |
| commit | 906905aa43566c16913238a71ccc13d438af1702 (patch) | |
| tree | a80373f2495303db1245564bff5a5c66e9449473 /firmware/export | |
| parent | 6461f74ae450ce0c834b3d4c7da134f0fefed945 (diff) | |
| download | rockbox-906905aa43566c16913238a71ccc13d438af1702.zip rockbox-906905aa43566c16913238a71ccc13d438af1702.tar.gz rockbox-906905aa43566c16913238a71ccc13d438af1702.tar.bz2 rockbox-906905aa43566c16913238a71ccc13d438af1702.tar.xz | |
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
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/pcm-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/pcm-internal.h b/firmware/export/pcm-internal.h index 16e2aea..d881963 100644 --- a/firmware/export/pcm-internal.h +++ b/firmware/export/pcm-internal.h @@ -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; |