Skip to content

Commit 6b14750

Browse files
committed
Allow toggling stream enable state while acqusition is active
Add `enable_stream` parameter to Filter processor streams only
1 parent 0067016 commit 6b14750

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

Source/Processors/Editors/StreamSelector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void StreamTableModel::cellClicked (int rowNumber, int columnId, const MouseEven
9191
bool streamState = owner->checkStream (streams[rowNumber]);
9292

9393
String enableText = (streamState ? "Disable" : "Enable") + String (" stream");
94-
m.addItem (1, enableText, ! CoreServices::getAcquisitionStatus());
94+
m.addItem (1, enableText);
9595

9696
int result = m.showMenu (PopupMenu::Options().withStandardItemHeight (20));
9797

Source/Processors/GenericProcessor/GenericProcessor.cpp

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,6 @@ GenericProcessor::GenericProcessor (const String& name, bool headlessMode_)
137137

138138
{
139139
latencyMeter = std::make_unique<LatencyMeter> (this);
140-
141-
addBooleanParameter (Parameter::STREAM_SCOPE,
142-
"enable_stream",
143-
"Enable",
144-
"Determines whether or not processing is enabled for a particular stream",
145-
true,
146-
true);
147140
}
148141

149142
GenericProcessor::~GenericProcessor()
@@ -1987,6 +1980,17 @@ void GenericProcessor::setCurrentChannel (int chan)
19871980
void GenericProcessor::setProcessorType (Plugin::Processor::Type processorType)
19881981
{
19891982
m_processorType = processorType;
1983+
1984+
// Add "enable_stream" parameter for filters only
1985+
if (processorType == Plugin::Processor::FILTER)
1986+
{
1987+
addBooleanParameter (Parameter::STREAM_SCOPE,
1988+
"enable_stream",
1989+
"Enable",
1990+
"Determines whether or not processing is enabled for a particular stream",
1991+
true,
1992+
false);
1993+
}
19901994
}
19911995

19921996
bool GenericProcessor::canSendSignalTo (GenericProcessor*) const { return true; }

0 commit comments

Comments
 (0)