Skip to content
Snippets Groups Projects
Commit a386ac04 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix timestamps in binary format

parent 483f7f3b
No related branches found
No related tags found
No related merge requests found
......@@ -501,13 +501,16 @@ void BinaryRecording::writeData(int writeChannel, int realChannel, const float*
m_DataFiles[m_fileIndexes[writeChannel]]->writeChannel(getTimestamp(writeChannel)-m_startTS[writeChannel],m_channelIndexes[writeChannel],m_intBuffer.getData(),size);
int64 baseTS = getTimestamp(writeChannel);
//Let's hope that the compiler is smart enough to vectorize this.
for (int i = 0; i < size; i++)
if (m_channelIndexes[writeChannel] == 0)
{
m_tsBuffer[i] = (baseTS + i);
int64 baseTS = getTimestamp(writeChannel);
//Let's hope that the compiler is smart enough to vectorize this.
for (int i = 0; i < size; i++)
{
m_tsBuffer[i] = (baseTS + i);
}
m_dataTimestampFiles[m_fileIndexes[writeChannel]]->writeData(m_tsBuffer, size*sizeof(int64));
}
m_dataTimestampFiles[m_fileIndexes[writeChannel]]->writeData(m_tsBuffer, size*sizeof(int64));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment