File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1010 runs-on : ${{ matrix.os }}
1111 strategy :
1212 matrix :
13- os : [ubuntu-18 .04]
13+ os : [ubuntu-20 .04]
1414
1515 steps :
1616 - uses : actions/checkout@v1
Original file line number Diff line number Diff line change @@ -60,12 +60,16 @@ AudioProcessorEditor* MatlabInterface::createEditor()
6060void MatlabInterface::parameterValueChanged (Parameter* param)
6161{
6262 if (param->getName ().equalsIgnoreCase (" Channel" ))
63- {
64- int localIndex = (int )param->getValue ();
65- int globalIndex = getDataStream (param->getStreamId ())->getContinuousChannels ()[localIndex]->getGlobalIndex ();
66- setSelectedChannel (globalIndex);
67- }
68-
63+ {
64+ Array<var>* array = param->getValue ().getArray ();
65+
66+ if (array->size () > 0 )
67+ {
68+ int localIndex = int (array->getFirst ());
69+ int globalIndex = getDataStream (param->getStreamId ())->getContinuousChannels ()[localIndex]->getGlobalIndex ();
70+ setSelectedChannel (globalIndex);
71+ }
72+ }
6973}
7074
7175void MatlabInterface::process (AudioSampleBuffer& buffer)
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info)
3838{
3939 info->apiVersion = PLUGIN_API_VER;
4040 info->name = " Matlab Interface" ;
41- info->libVersion = " 0.2.0 " ;
41+ info->libVersion = " 0.2.1 " ;
4242 info->numPlugins = NUM_PLUGINS;
4343}
4444
You can’t perform that action at this time.
0 commit comments