diff options
author | Steve Kondik <steve@cyngn.com> | 2016-03-10 18:16:12 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-03-10 18:16:12 -0800 |
commit | f3692bced672d78488d7753006d3e8e732fa0e42 (patch) | |
tree | 551fc67ee1879f0273d6ad5419b3532cdacb14fc /arm-wt-22k/lib_src/eas_wtsynth.c | |
parent | 7de711fdc11b1cf480e144bcee9d61678bca9487 (diff) | |
parent | 629255407ab28bef5e73f86113b3b76ffaa72c69 (diff) | |
download | android_external_sonivox-f3692bced672d78488d7753006d3e8e732fa0e42.tar.gz android_external_sonivox-f3692bced672d78488d7753006d3e8e732fa0e42.tar.bz2 android_external_sonivox-f3692bced672d78488d7753006d3e8e732fa0e42.zip |
Merge tag 'android-6.0.1_r22' of https://android.googlesource.com/platform/external/sonivox into cm-13.0staging/cm-13.0+r22
Android 6.0.1 release 22
Diffstat (limited to 'arm-wt-22k/lib_src/eas_wtsynth.c')
-rw-r--r-- | arm-wt-22k/lib_src/eas_wtsynth.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arm-wt-22k/lib_src/eas_wtsynth.c b/arm-wt-22k/lib_src/eas_wtsynth.c index 45cf4b1..9257951 100644 --- a/arm-wt-22k/lib_src/eas_wtsynth.c +++ b/arm-wt-22k/lib_src/eas_wtsynth.c @@ -28,6 +28,9 @@ */ // includes +#include "log/log.h" +#include <cutils/log.h> + #include "eas_data.h" #include "eas_report.h" #include "eas_host.h" @@ -467,6 +470,11 @@ EAS_BOOL WT_CheckSampleEnd (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame, E } else { pWTIntFrame->numSamples = numSamples; } + if (pWTIntFrame->numSamples < 0) { + ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); + pWTIntFrame->numSamples = 0; + } /* sound will be done this frame */ done = EAS_TRUE; |