Skip to content
Snippets Groups Projects
Commit cc1b41a2 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#5814: Test using more unbalanced signals

parent 207c5d77
Branches
Tags
No related merge requests found
...@@ -156,16 +156,16 @@ int SpeexEchoCancel::process (SFLDataFormat *inputData, SFLDataFormat *outputDat ...@@ -156,16 +156,16 @@ int SpeexEchoCancel::process (SFLDataFormat *inputData, SFLDataFormat *outputDat
micProcessFile->write(reinterpret_cast<char *>(_tmpMic), byteSize); micProcessFile->write(reinterpret_cast<char *>(_tmpMic), byteSize);
spkrProcessFile->write(reinterpret_cast<char *>(_tmpSpkr), byteSize); spkrProcessFile->write(reinterpret_cast<char *>(_tmpSpkr), byteSize);
// int32_t tmp; int32_t tmp;
// for(int i = 0; i < nbSamples; i++) { for(int i = 0; i < nbSamples; i++) {
// tmp = _tmpSpkr[i] * 2; tmp = _tmpSpkr[i] * 3;
// if(tmp > SHRT_MAX) { if(tmp > SHRT_MAX) {
// tmp = SHRT_MAX; tmp = SHRT_MAX;
// } }
// _tmpSpkr[i] = (int16_t)tmp; _tmpSpkr[i] = (int16_t)tmp;
//
// _tmpMic[i] /= 2; _tmpMic[i] /= 3;
// } }
// Processed echo cancellation // Processed echo cancellation
...@@ -174,9 +174,9 @@ int SpeexEchoCancel::process (SFLDataFormat *inputData, SFLDataFormat *outputDat ...@@ -174,9 +174,9 @@ int SpeexEchoCancel::process (SFLDataFormat *inputData, SFLDataFormat *outputDat
echoFile->write(reinterpret_cast<char *>(_tmpOut), byteSize); echoFile->write(reinterpret_cast<char *>(_tmpOut), byteSize);
// for(int i = 0; i < nbSamples; i++) { for(int i = 0; i < nbSamples; i++) {
// _tmpOut[i] *= 2; _tmpOut[i] *= 3;
// } }
memcpy (outputData, _tmpOut, byteSize); memcpy (outputData, _tmpOut, byteSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment