Skip to content
Snippets Groups Projects
Commit 7986d2fc authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Add some needed methods to the record subsystem

parent e5a5000b
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,8 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(EventQueue);
};
//NOTE: Events are sent as midimessages while spikes as spike objects due to the difference on how they are passed to the record node.
//Once the probe system is implemented, this will be normalized
typedef EventQueue<MidiMessage> EventMsgQueue;
typedef EventQueue<SpikeEvent> SpikeMsgQueue;
typedef ReferenceCountedObjectPtr<AsyncEventMessage<MidiMessage>> EventMessagePtr;
......
......@@ -103,6 +103,11 @@ int RecordEngine::getNumRecordedChannels() const
return channelMap.size();
}
int RecordEngine::getNumRecordedEvents() const
{
return AccessClass::getProcessorGraph()->getRecordNode()->getTotalEventChannels();
}
void RecordEngine::registerSpikeSource (const GenericProcessor* processor) {}
int RecordEngine::getNumRecordedProcessors() const
......
......@@ -156,6 +156,7 @@ protected:
/** Gets the specified channel from the channel array stored in RecordNode */
const DataChannel* getDataChannel (int index) const;
/** Gets the specified event channel from the channel array stored in RecordNode */
const EventChannel* getEventChannel(int index) const;
/** Gets the specified channel group info structure from the array stored in RecordNode */
......@@ -173,6 +174,12 @@ protected:
/** Gets the number of recorded channels */
int getNumRecordedChannels() const;
/** Gets the number of recorded event channels
(right now all channels are recorded) */
int getNumRecordedEvents() const;
/** TODO: to fill when the probe system is implemented*/
//int getNumRecordedSpikes() const;
/** Gets the number of processors being recorded
*/
......
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