Skip to content

Commit 343d1b6

Browse files
committed
Fix displayBuffers not being cleared and initialized properly
1 parent c4e0d65 commit 343d1b6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Plugins/LfpDisplayNode/LfpDisplayNode.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ void LfpDisplayNode::updateSettings()
8181

8282
numSubprocessors = numChannelsInSubprocessor.size();
8383

84-
displayBuffers.resize(numSubprocessors, std::make_shared<AudioSampleBuffer> (8, 100));
84+
displayBuffers.clear();
85+
86+
for (int i = 0; i < numSubprocessors; i++)
87+
displayBuffers.push_back(std::make_shared<AudioSampleBuffer> (8, 100));
8588

8689
displayBufferIndices.resize(numSubprocessors);
8790

0 commit comments

Comments
 (0)