Skip to content

Commit 01caaca

Browse files
committed
[FileReader] Use channel name and bitvolts values from the FileSource
1 parent 7b95479 commit 01caaca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Source/Processors/FileReader/FileReader.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ void FileReader::setActiveRecording (int index)
320320
bufferCacheWindow = 0;
321321
loopCount = 0;
322322

323+
channelInfo.clear();
324+
323325
for (int i = 0; i < currentNumChannels; ++i)
324326
{
325327
channelInfo.add (input->getChannelInfo (index, i));
@@ -401,10 +403,10 @@ void FileReader::updateSettings()
401403
ContinuousChannel::Settings channelSettings
402404
{
403405
ContinuousChannel::Type::ELECTRODE,
404-
"CH" + String(i + 1),
406+
channelInfo[i].name,
405407
"description",
406408
"filereader.stream",
407-
0.195f, // BITVOLTS VALUE
409+
channelInfo[i].bitVolts, // BITVOLTS VALUE
408410
dataStreams.getLast()
409411
};
410412

0 commit comments

Comments
 (0)