Skip to content

Commit 7986d2f

Browse files
committed
Add some needed methods to the record subsystem
1 parent e5a5000 commit 7986d2f

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

Source/Processors/RecordNode/EventQueue.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ class EventQueue
130130

131131
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(EventQueue);
132132
};
133-
133+
//NOTE: Events are sent as midimessages while spikes as spike objects due to the difference on how they are passed to the record node.
134+
//Once the probe system is implemented, this will be normalized
134135
typedef EventQueue<MidiMessage> EventMsgQueue;
135136
typedef EventQueue<SpikeEvent> SpikeMsgQueue;
136137
typedef ReferenceCountedObjectPtr<AsyncEventMessage<MidiMessage>> EventMessagePtr;

Source/Processors/RecordNode/RecordEngine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ int RecordEngine::getNumRecordedChannels() const
103103
return channelMap.size();
104104
}
105105

106+
int RecordEngine::getNumRecordedEvents() const
107+
{
108+
return AccessClass::getProcessorGraph()->getRecordNode()->getTotalEventChannels();
109+
}
110+
106111
void RecordEngine::registerSpikeSource (const GenericProcessor* processor) {}
107112

108113
int RecordEngine::getNumRecordedProcessors() const

Source/Processors/RecordNode/RecordEngine.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class PLUGIN_API RecordEngine
156156
/** Gets the specified channel from the channel array stored in RecordNode */
157157
const DataChannel* getDataChannel (int index) const;
158158

159+
/** Gets the specified event channel from the channel array stored in RecordNode */
159160
const EventChannel* getEventChannel(int index) const;
160161

161162
/** Gets the specified channel group info structure from the array stored in RecordNode */
@@ -173,6 +174,12 @@ class PLUGIN_API RecordEngine
173174
/** Gets the number of recorded channels */
174175
int getNumRecordedChannels() const;
175176

177+
/** Gets the number of recorded event channels
178+
(right now all channels are recorded) */
179+
int getNumRecordedEvents() const;
180+
181+
/** TODO: to fill when the probe system is implemented*/
182+
//int getNumRecordedSpikes() const;
176183

177184
/** Gets the number of processors being recorded
178185
*/

0 commit comments

Comments
 (0)