Skip to content
Snippets Groups Projects
Commit adb49a62 authored by Aarón Cuevas López's avatar Aarón Cuevas López
Browse files

Merge pull request #309 from fpbattaglia/fix_LfpNode_bufferindex

Fixed the value of bufferIndex, line 173 and following, as previous v…
parents 9369075b 5be77101
Branches
Tags
No related merge requests found
......@@ -171,6 +171,10 @@ void LfpDisplayNode::handleEvent(int eventType, MidiMessage& event, int sampleNu
// << channelForEventSource[eventSourceNode] << std::endl;
////
int bufferIndex = (displayBufferIndex[channelForEventSource[eventSourceNodeId]] + eventTime - nSamples) % displayBuffer->getNumSamples();
bufferIndex = bufferIndex >= 0 ? bufferIndex :
displayBuffer->getNumSamples() + bufferIndex;
if (eventId == 1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment