@@ -791,7 +791,6 @@ bool RecordNode::stopAcquisition()
791791// called by GenericProcessor::setRecording() and CoreServices::setRecordingStatus()
792792void RecordNode::startRecording ()
793793{
794-
795794 Array<int > chanProcessorMap;
796795 Array<int > chanOrderinProc;
797796 OwnedArray<RecordProcessorInfo> procInfo;
@@ -878,7 +877,7 @@ void RecordNode::startRecording()
878877 {
879878 DataQueue* queue = new DataQueue (bufferSize, DATA_BUFFER_NBLOCKS);
880879 queue->setChannelCount (recordedChannelsPerStream[i]);
881- queue->setTimestampStreamCount (1 ); // Each queue has one timestamp stream
880+ queue->setTimestampStreamCount (1 ); // Each queue has one timestamp stream
882881 dataQueues.add (queue);
883882
884883 // Pre-compute source channel array for this stream
@@ -929,8 +928,7 @@ void RecordNode::startRecording()
929928 }
930929
931930 recordThread->setFileComponents (rootFolder, experimentNumber, recordingNumber);
932- recordThread->startThread (Thread::Priority::highest);
933- isRecording = true ;
931+ recordThread->startThread (Thread::Priority::highest);
934932
935933 if (settingsNeeded)
936934 {
@@ -946,6 +944,14 @@ void RecordNode::startRecording()
946944 }
947945}
948946
947+ void RecordNode::notifyRecordThreadFilesOpened ()
948+ {
949+ MessageManager::callAsync ([this ]()
950+ {
951+ if (recordThread->isThreadRunning ())
952+ isRecording = true ; });
953+ }
954+
949955// called by GenericProcessor::setRecording() and CoreServices::setRecordingStatus()
950956void RecordNode::stopRecording ()
951957{
@@ -1155,7 +1161,7 @@ void RecordNode::process (AudioBuffer<float>& buffer)
11551161 dataQueues[streamIndex]->writeSynchronizedTimestamps (
11561162 first,
11571163 second - first,
1158- 0 , // timestamp stream index within this queue
1164+ 0 , // timestamp stream index within this queue
11591165 numSamples);
11601166 }
11611167
0 commit comments