diff --git a/src/asciireader.cpp b/src/asciireader.cpp --- a/src/asciireader.cpp +++ b/src/asciireader.cpp @@ -24,12 +24,12 @@ /// If set to this value number of channels is determined from input #define NUMOFCHANNELS_AUTO (0) -AsciiReader::AsciiReader(QIODevice* device, ChannelManager* channelMan, QObject *parent) : - AbstractReader(device, channelMan, parent) +AsciiReader::AsciiReader(QIODevice* device, ChannelManager* channelMan, + DataRecorder* recorder, QObject* parent) : + AbstractReader(device, channelMan, recorder, parent) { paused = false; discardFirstLine = true; - sampleCount = 0; _numOfChannels = _settingsWidget.numOfChannels(); autoNumOfChannels = (_numOfChannels == NUMOFCHANNELS_AUTO); @@ -155,9 +155,7 @@ void AsciiReader::onDataReady() } // commit data - _channelMan->addData(channelSamples, _numOfChannels); - sampleCount += numReadChannels; - emit dataAdded(); + addData(channelSamples, _numOfChannels); delete[] channelSamples; }