예제 #1
0
AddAuto::AddAuto(TTCP *ttcp, QWidget *parent) : QMainWindow(parent)
{
    setupUi(this);

    this->ttcp = ttcp;		// TTCP is need to update the autoselect data
    AutoModel *model = new AutoModel(this);

    view->setModel(model);

    connect(ttcp,
            SIGNAL( add_autoentry(QString, int, int, QString, QString, QString, QString, QString, QString, QString, QString)),
	    model,
            SLOT( add_autoentry(QString, int, int, QString, QString, QString, QString, QString, QString, QString, QString) )
	   );
    connect(view, SIGNAL(entered(QModelIndex)),
            this, SLOT(update_display(QModelIndex)));
    connect(Grab, SIGNAL(clicked()), this, SLOT(grabClicked()));
    connect(buttonOk, SIGNAL(clicked()), this, SLOT(setAuto()));
}
예제 #2
0
void YSE::CHANNEL::managerObject::changeChannelConf() {
  delete[] outputAngles;
  outputAngles = new aFlt[outputChannels.load()];
  switch (channelType.load()) {
    case CT_AUTO: setAuto(outputChannels); break;
    case CT_MONO: setMono(); break;
    case CT_STEREO: setStereo(); break;
    case CT_QUAD: setQuad(); break;
    case CT_51: set51(); break;
    case CT_51SIDE: set51Side(); break;
    case CT_61:	set61(); break;
    case CT_71:	set71(); break;
    case CT_CUSTOM: break; // we've set number of outputs. CT_CUSTOM expects the positions will be 
                           // set later
  }

  REVERB::Manager().setOutputChannels(outputChannels);
  
  for (auto i = inUse.begin(); i != inUse.end(); i++) {
    (*i)->setup();
  }
}