Skip to content

Commit

Permalink
Fix AudioMonitor channels param
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Jul 26, 2023
1 parent 7c26ee6 commit c841443
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Processors/AudioMonitor/AudioMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void AudioMonitor::updateSettings()
for (auto stream : dataStreams)
{

Array<var>* activeChannels = stream->getParameter("Channels")->getValue().getArray();
Array<var>* activeChannels = stream->getParameter("channels")->getValue().getArray();

if (activeChannels->size() > 0)
{
Expand Down Expand Up @@ -176,7 +176,7 @@ void AudioMonitor::parameterValueChanged(Parameter* param)

LOGD("Audio Monitor: Value changed for ", param->getName(), ": ", (int)param->getValue());

if (param->getName().equalsIgnoreCase("Channels"))
if (param->getName().equalsIgnoreCase("channels"))
{

selectedStream = param->getStreamId();
Expand Down Expand Up @@ -273,7 +273,7 @@ void AudioMonitor::handleBroadcastMessage(String msg)
Array<var> ch;
ch.add(localChannel);

stream->getParameter("Channels")->setNextValue(ch);
stream->getParameter("channels")->setNextValue(ch);
}
}
}
Expand Down Expand Up @@ -306,7 +306,7 @@ void AudioMonitor::process (AudioBuffer<float>& buffer)
AudioSampleBuffer* overflowBuffer;
AudioSampleBuffer* backupBuffer;

Array<var>* activeChannels = stream->getParameter("Channels")->getValue().getArray();
Array<var>* activeChannels = stream->getParameter("channels")->getValue().getArray();

for (int i = 0; i < activeChannels->size(); i++)
{
Expand Down

0 comments on commit c841443

Please sign in to comment.