[asterisk-commits] tilghman: trunk r267862 - /trunk/include/asterisk/slin.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 3 21:59:00 CDT 2010
Author: tilghman
Date: Thu Jun 3 21:58:55 2010
New Revision: 267862
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=267862
Log:
As signed linear audio data is accessed as 16-bit values, certain processors require the values to be aligned in memory.
(closes issue #16912)
Reported by: michaelevdokimov
Modified:
trunk/include/asterisk/slin.h
Modified: trunk/include/asterisk/slin.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/slin.h?view=diff&rev=267862&r1=267861&r2=267862
==============================================================================
--- trunk/include/asterisk/slin.h (original)
+++ trunk/include/asterisk/slin.h Thu Jun 3 21:58:55 2010
@@ -33,7 +33,7 @@
0xb0, 0x03, 0x50, 0xff, 0xc0, 0xfa, 0xd0, 0xf7, 0xd8, 0xf6, 0x88, 0xf8, 0x50, 0xfc, 0x48, 0x01,
0x48, 0x06, 0x70, 0x09, 0xe0, 0x09, 0x50, 0x07, 0xa8, 0x02, 0xe0, 0xfc, 0x20, 0xf7, 0xf0, 0xf3,
0x68, 0xf5, 0xf8, 0xf9, 0x10, 0x00, 0x78, 0x06, 0x70, 0x0b, 0x00, 0x0d, 0xd8, 0x0a, 0xa8, 0x05,
-};
+} __attribute__ ((aligned (2)));
static uint8_t ex_slin16[] = {
0x00, 0x00, 0x60, 0x00, 0x68, 0x00, 0x48, 0x00, 0xc8, 0xff, 0xa8, 0xff, 0xc8, 0xff, 0x40, 0x00,
@@ -56,7 +56,7 @@
0x88, 0x08, 0xe8, 0xff, 0x78, 0xf7, 0xb8, 0xf1, 0xa0, 0xef, 0x40, 0xf2, 0xd8, 0xf8, 0x80, 0x02,
0x60, 0x0b, 0xc0, 0x10, 0xa0, 0x11, 0x78, 0x0d, 0x70, 0x05, 0x30, 0xfb, 0x98, 0xf2, 0x20, 0xee,
0x28, 0xef, 0x20, 0xf5, 0x48, 0xfe, 0xf8, 0x07, 0x28, 0x0f, 0xd0, 0x11, 0x18, 0x0e, 0x18, 0x06,
-};
+} __attribute__ ((aligned (2)));
static inline struct ast_frame *slin8_sample(void)
{
More information about the asterisk-commits
mailing list