From 065be79540e9add3f9f94fc7ca099a8e28feac4f Mon Sep 17 00:00:00 2001 From: Pavel Kulik Date: Wed, 11 Oct 2023 16:59:43 -0700 Subject: [PATCH] Connect RecordNode to new chan param --- Source/Processors/RecordNode/RecordNode.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Processors/RecordNode/RecordNode.cpp b/Source/Processors/RecordNode/RecordNode.cpp index 8056231d8..94c879a56 100755 --- a/Source/Processors/RecordNode/RecordNode.cpp +++ b/Source/Processors/RecordNode/RecordNode.cpp @@ -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()) @@ -477,6 +478,7 @@ void RecordNode::updateSettings() } } + */ } @@ -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++); @@ -868,10 +870,10 @@ void RecordNode::process(AudioBuffer& buffer) } - for (auto channel : stream->getContinuousChannels()) + for (auto channelRecordState : ((MaskChannelsParameter*)stream->getParameter("channels"))->getChannelStates()) { - if (channel->isRecorded) + if (channelRecordState) { channelIndex++;