11#include " ViPER.h"
22#include < cstring>
3- #include < chrono >
4- #include " constants.h "
3+ #include < constants.h >
4+ #include < log.h >
55
66ViPER::ViPER () :
77 frameCount(0 ),
@@ -11,8 +11,8 @@ ViPER::ViPER() :
1111 iirFilter(IIRFilter(10 )),
1212 gainL(1.0 ),
1313 gainR(1.0 ) {
14- VIPER_LOGI (" Welcome to ViPER FX" );
15- VIPER_LOGI (" Current version is %d" , VIPER_VERSION);
14+ ALOGI (" Welcome to ViPER FX" );
15+ ALOGI (" Current version is %d" , VIPER_VERSION);
1616
1717 this ->convolver .SetEnable (false );
1818 this ->convolver .SetSamplingRate (this ->samplingRate );
@@ -94,7 +94,7 @@ void ViPER::process(std::vector<float>& buffer, uint32_t size) {
9494 uint32_t tmpBufSize;
9595
9696 if (this ->convolver .GetEnabled () || this ->vhe .GetEnabled ()) {
97- // VIPER_LOGD ("Convolver or VHE is enable, use wave buffer");
97+ // ALOGD ("Convolver or VHE is enable, use wave buffer");
9898
9999 if (!this ->waveBuffer .PushSamples (buffer.data (), size)) {
100100 this ->waveBuffer .Reset ();
@@ -119,7 +119,7 @@ void ViPER::process(std::vector<float>& buffer, uint32_t size) {
119119 tmpBuf = ptr;
120120 tmpBufSize = ret;
121121 } else {
122- // VIPER_LOGD ("Convolver and VHE are disabled, use adaptive buffer");
122+ // ALOGD ("Convolver and VHE are disabled, use adaptive buffer");
123123
124124 if (this ->adaptiveBuffer .PushFrames (buffer.data (), size)) {
125125 this ->adaptiveBuffer .SetBufferOffset (size);
@@ -132,7 +132,7 @@ void ViPER::process(std::vector<float>& buffer, uint32_t size) {
132132 }
133133 }
134134
135- // VIPER_LOGD ("Process buffer size: %d", tmpBufSize);
135+ // ALOGD ("Process buffer size: %d", tmpBufSize);
136136 if (tmpBufSize != 0 ) {
137137 this ->viperDdc .Process (tmpBuf, size);
138138 this ->spectrumExtend .Process (tmpBuf, size);
@@ -175,7 +175,7 @@ void ViPER::process(std::vector<float>& buffer, uint32_t size) {
175175
176176// void ViPER::DispatchCommand(int param, int val1, int val2, int val3, int val4, uint32_t arrSize,
177177// signed char *arr) {
178- // VIPER_LOGD ("Dispatch command: %d, %d, %d, %d, %d, %d, %p", param, val1, val2, val3, val4, arrSize, arr);
178+ // ALOGD ("Dispatch command: %d, %d, %d, %d, %d, %d, %p", param, val1, val2, val3, val4, arrSize, arr);
179179// switch (param) {
180180// case PARAM_SET_RESET_STATUS: {
181181// this->reset();
0 commit comments