Skip to content

Commit

Permalink
Connect RecordNode to new chan param
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Oct 11, 2023
1 parent c5367e9 commit 065be79
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Source/Processors/RecordNode/RecordNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ void RecordNode::updateSettings()

fifoUsage[streamId] = 0.0f;

/*
if (recordContinuousChannels[streamId].empty()) // this ID has not been seen yet
{
for (auto channel : stream->getContinuousChannels())
Expand Down Expand Up @@ -477,6 +478,7 @@ void RecordNode::updateSettings()
}
}
*/

}

Expand Down Expand Up @@ -636,9 +638,9 @@ void RecordNode::startRecording()
lastSourceNodeId = stream->getSourceNodeId();
}

for (auto channel : stream->getContinuousChannels())
for (auto channelRecordState : ((MaskChannelsParameter*)stream->getParameter("channels"))->getChannelStates())
{
if (channel->isRecorded)
if (channelRecordState)
{
channelMap.add(channelIndexInRecordNode);
localChannelMap.add(channelIndexInStream++);
Expand Down Expand Up @@ -868,10 +870,10 @@ void RecordNode::process(AudioBuffer<float>& buffer)

}

for (auto channel : stream->getContinuousChannels())
for (auto channelRecordState : ((MaskChannelsParameter*)stream->getParameter("channels"))->getChannelStates())
{

if (channel->isRecorded)
if (channelRecordState)
{

channelIndex++;
Expand Down

0 comments on commit 065be79

Please sign in to comment.