diff options
author | Wei Jia <wjia@google.com> | 2016-01-13 23:07:29 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-13 23:07:29 +0000 |
commit | 29433d8e7afc574efa243a32fb9bd506f5095cc4 (patch) | |
tree | ea0c2324ad03a5bdbc9b7f3fc2e6ef72d1cf38dd | |
parent | 4088acf0dce52979d1a6b712d2fbc497c126b192 (diff) | |
parent | 13c48e13f9118cedefd36fcdef870daac68ad415 (diff) | |
download | android_external_sonivox-29433d8e7afc574efa243a32fb9bd506f5095cc4.tar.gz android_external_sonivox-29433d8e7afc574efa243a32fb9bd506f5095cc4.tar.bz2 android_external_sonivox-29433d8e7afc574efa243a32fb9bd506f5095cc4.zip |
Sonivox: add SafetyNet log. am: 24d7c408c5 am: f3f1da3028 am: 95a4f1d4af am: 629255407a
am: 13c48e13f9
* commit '13c48e13f9118cedefd36fcdef870daac68ad415':
Sonivox: add SafetyNet log.
-rw-r--r-- | arm-wt-22k/lib_src/eas_wtengine.c | 7 | ||||
-rw-r--r-- | arm-wt-22k/lib_src/eas_wtsynth.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arm-wt-22k/lib_src/eas_wtengine.c b/arm-wt-22k/lib_src/eas_wtengine.c index e7263fd..854d4b4 100644 --- a/arm-wt-22k/lib_src/eas_wtengine.c +++ b/arm-wt-22k/lib_src/eas_wtengine.c @@ -33,6 +33,7 @@ *------------------------------------ */ #include "log/log.h" +#include <cutils/log.h> #include "eas_types.h" #include "eas_math.h" @@ -92,6 +93,7 @@ void WT_VoiceGain (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) numSamples = pWTIntFrame->numSamples; if (numSamples <= 0) { ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); return; } pMixBuffer = pWTIntFrame->pMixBuffer; @@ -190,6 +192,7 @@ void WT_Interpolate (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) numSamples = pWTIntFrame->numSamples; if (numSamples <= 0) { ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); return; } pOutputBuffer = pWTIntFrame->pAudioBuffer; @@ -287,6 +290,7 @@ void WT_InterpolateNoLoop (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) numSamples = pWTIntFrame->numSamples; if (numSamples <= 0) { ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); return; } pOutputBuffer = pWTIntFrame->pAudioBuffer; @@ -379,6 +383,7 @@ void WT_VoiceFilter (S_FILTER_CONTROL *pFilter, S_WT_INT_FRAME *pWTIntFrame) numSamples = pWTIntFrame->numSamples; if (numSamples <= 0) { ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); return; } pAudioBuffer = pWTIntFrame->pAudioBuffer; @@ -446,6 +451,7 @@ void WT_VoiceFilter (S_FILTER_CONTROL *pFilter, S_WT_INT_FRAME *pWTIntFrame) numSamples = pWTIntFrame->numSamples; if (numSamples <= 0) { ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); return; } pOutputBuffer = pWTIntFrame->pAudioBuffer; @@ -593,6 +599,7 @@ void WT_InterpolateMono (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame) numSamples = pWTIntFrame->numSamples; if (numSamples <= 0) { ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); return; } pMixBuffer = pWTIntFrame->pMixBuffer; diff --git a/arm-wt-22k/lib_src/eas_wtsynth.c b/arm-wt-22k/lib_src/eas_wtsynth.c index 4626637..9fcda7b 100644 --- a/arm-wt-22k/lib_src/eas_wtsynth.c +++ b/arm-wt-22k/lib_src/eas_wtsynth.c @@ -29,6 +29,7 @@ // includes #include "log/log.h" +#include <cutils/log.h> #include "eas_data.h" #include "eas_report.h" @@ -471,6 +472,7 @@ EAS_BOOL WT_CheckSampleEnd (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame, E } if (pWTIntFrame->numSamples < 0) { ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); pWTIntFrame->numSamples = 0; } |