File tree Expand file tree Collapse file tree
Source/Processors/Editors Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -512,21 +512,24 @@ void GenericEditor::update()
512512
513513 // std::cout << "Editor for ";
514514
515- GenericProcessor* p = (GenericProcessor*) getProcessor ();
515+ GenericProcessor* p = (GenericProcessor*)getProcessor ();
516516
517517 // std::cout << p->getName() << " updating settings." << std::endl;
518518
519- int numChannels ;
519+ updateSettings () ;
520520
521- updateSettings ();
521+ int numChannels;
522+ if (!p->isSink ())
523+ {
524+ numChannels = p->getNumOutputs ();
525+ }
526+ else
527+ {
528+ numChannels = p->getNumInputs ();
529+ }
522530
523531 if (channelSelector != 0 )
524532 {
525- if (!p->isSink ())
526- numChannels = p->getNumOutputs ();
527- else
528- numChannels = p->getNumInputs ();
529-
530533 channelSelector->setNumChannels (numChannels);
531534
532535 for (int i = 0 ; i < numChannels; i++)
You can’t perform that action at this time.
0 commit comments