summaryrefslogtreecommitdiff
path: root/arm-wt-22k
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2019-06-10 11:09:29 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-06-10 11:09:29 -0700
commit5e407ed9530acb0932d35588a812af79d6274bac (patch)
treebdba4bbeb95c479286124414540298e8f0466be8 /arm-wt-22k
parent41d0162ec71e6fc51f62625b4aabba6f6658f8e6 (diff)
parent2da98e28f86a63a2969310b30361d5d5f9c182c2 (diff)
downloadsonivox-5e407ed9530acb0932d35588a812af79d6274bac.tar.gz
Specify correct size for 16 bit wave table am: 3583b98a2d am: 89d4bdef4c
am: 2da98e28f8 Change-Id: I6b49393b900659cd1093cc68092c7db7f5dd8848
Diffstat (limited to 'arm-wt-22k')
-rw-r--r--arm-wt-22k/lib_src/wt_22khz.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arm-wt-22k/lib_src/wt_22khz.c b/arm-wt-22k/lib_src/wt_22khz.c
index 33c11e1..5091f74 100644
--- a/arm-wt-22k/lib_src/wt_22khz.c
+++ b/arm-wt-22k/lib_src/wt_22khz.c
@@ -14697,7 +14697,8 @@ const EAS_U32 eas_sampleOffsets[] =
0x00033c53, 0x00033c69, 0x00033c7e, 0x00033c93, 0x00033ca8, 0x00033cbd
};
#else //_16_BIT_SAMPLES
-const EAS_SAMPLE eas_samples[] =
+/* NOTE: this array should have size of at least eas_sampleOffsets[last_element] + eas_sampleLengths[last_element] */
+const EAS_SAMPLE eas_samples[0x00033cbd + 20] =
{
0, 0, -768, -1024, -1536, -2048, -2560, -3072, -3072, -2816, -2048, -768, 768, 1792, 2560, 3584,
4096, 4096, 3840, 3072, 2304, 1024, -1024, -3072, -4608, -5376, -5376, -4864, -4608, -3840, -2560, -768,