Added module management system

This commit is contained in:
Ryzerth
2021-05-05 04:31:37 +02:00
parent 85b9649a9a
commit 1b27916c24
20 changed files with 191 additions and 33 deletions

View File

@ -88,6 +88,28 @@ public:
}
~RecorderModule() {
// Stop recording
if (recording) {
if (recMode == 1) {
audioSplit.unbindStream(&audioHandlerStream);
audioHandler.stop();
audioWriter->close();
delete audioWriter;
}
else {
sigpath::signalPath.unbindIQStream(&basebandStream);
basebandHandler.stop();
basebandWriter->close();
delete basebandWriter;
}
}
vol.stop();
audioSplit.stop();
meter.stop();
gui::menu.removeEntry(name);
delete[] wavSampleBuf;
}