Skip to content
Snippets Groups Projects
Commit daa1f278 authored by Stuart Layton's avatar Stuart Layton
Browse files

fixed bug where the max size of a spikebuffer was 256 bytes, this is too small...

fixed bug where the max size of a spikebuffer was 256 bytes, this is too small for tetrode spike, this value is not determined by a constant defined in SpikeObject.h
parent 4cf685c7
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ SpikeDetector::SpikeDetector() ...@@ -61,7 +61,7 @@ SpikeDetector::SpikeDetector()
electrodeCounter.add(0); electrodeCounter.add(0);
} }
spikeBuffer = new uint8_t[256]; spikeBuffer = new uint8_t[MAX_SPIKE_BUFFER_LEN]; // MAX_SPIKE_BUFFER_LEN defined in SpikeObject.h
} }
...@@ -414,6 +414,7 @@ void SpikeDetector::process(AudioSampleBuffer &buffer, ...@@ -414,6 +414,7 @@ void SpikeDetector::process(AudioSampleBuffer &buffer,
// } // end if channel is active // } // end if channel is active
} }
addSpikeEvent(&newSpike, events, peakIndex); addSpikeEvent(&newSpike, events, peakIndex);
......
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