|
37 | 37 | BinaryRecording::BinaryRecording() |
38 | 38 | { |
39 | 39 | m_bufferSize = MAX_BUFFER_SIZE; |
40 | | - m_scaledBuffer.malloc (MAX_BUFFER_SIZE); |
41 | 40 | m_intBuffer.malloc (MAX_BUFFER_SIZE); |
42 | 41 | m_sampleNumberBuffer.malloc (MAX_BUFFER_SIZE); |
43 | 42 |
|
@@ -606,7 +605,6 @@ void BinaryRecording::closeFiles() |
606 | 605 | m_spikeChannelIndexes.clear(); |
607 | 606 | m_spikeFileIndexes.clear(); |
608 | 607 |
|
609 | | - m_scaledBuffer.malloc (MAX_BUFFER_SIZE); |
610 | 608 | m_intBuffer.malloc (MAX_BUFFER_SIZE); |
611 | 609 | m_sampleNumberBuffer.malloc (MAX_BUFFER_SIZE); |
612 | 610 | m_bufferSize = MAX_BUFFER_SIZE; |
@@ -648,7 +646,6 @@ void BinaryRecording::writeContinuousData (int writeChannel, |
648 | 646 | if (size > m_bufferSize) //shouldn't happen, but if does, this prevents crash... |
649 | 647 | { |
650 | 648 | LOGE ("BinaryRecording::writeContinuousData: Write buffer overrun, resizing from: ", m_bufferSize, " to: ", size); |
651 | | - m_scaledBuffer.malloc (size); |
652 | 649 | m_intBuffer.malloc (size); |
653 | 650 | m_sampleNumberBuffer.malloc (size); |
654 | 651 | m_bufferSize = size; |
@@ -761,7 +758,6 @@ void BinaryRecording::writeSpike (int electrodeIndex, const Spike* spike) |
761 | 758 | { |
762 | 759 | LOGE ("BinaryRecording::writeSpike: Write buffer overrun, resizing to ", totalSamples); |
763 | 760 | m_bufferSize = totalSamples; |
764 | | - m_scaledBuffer.malloc (totalSamples); |
765 | 761 | m_intBuffer.malloc (totalSamples); |
766 | 762 | } |
767 | 763 |
|
@@ -805,7 +801,7 @@ void BinaryRecording::writeContinuousDataBatch (const int* writeChannels, |
805 | 801 | int newSamples = jmax (numSamples, m_batchBufferSamples); |
806 | 802 | int newChannels = jmax (numChannels, m_batchBufferChannels); |
807 | 803 |
|
808 | | - LOGD ("BinaryRecording::writeContinuousDataBatch: Resizing batch buffer to ", |
| 804 | + LOGC ("BinaryRecording::writeContinuousDataBatch: Resizing batch buffer to ", |
809 | 805 | newChannels, " channels x ", newSamples, " samples"); |
810 | 806 |
|
811 | 807 | m_batchIntBuffer.malloc (newSamples * newChannels); |
|
0 commit comments