ggwave-gui : UI improvements

This commit is contained in:
Georgi Gerganov
2020-12-03 21:43:26 +02:00
parent 2b76af15fb
commit 43863e440e
3 changed files with 231 additions and 22 deletions

View File

@@ -124,6 +124,11 @@ GGWave::GGWave(
init(0, "");
}
GGWave::~GGWave() {
if (rsData) delete rsData;
if (rsLength) delete rsLength;
}
bool GGWave::setParameters(
int aParamFreqDelta,
int aParamFreqStart,
@@ -556,6 +561,8 @@ void GGWave::receive(const CBDequeueAudio & CBDequeueAudio) {
std::string s((char *) rxData.data(), decodedLength);
printf("Received sound data successfully: '%s'\n", s.c_str());
}
hasNewRxData = true;
lastRxDataLength = decodedLength;
framesToRecord = 0;
isValid = true;
}