示例#1
0
bool DiffuseGControl::eventFilter(QObject* watched, QEvent* event)
{
    int s = getSliderIndex(watched, event);
    if (s != -1)
       emit (gainChanged(groups.at(s)->slider->value()));
    return false;
}
示例#2
0
bool CoeffEnhancControl::eventFilter(QObject* watched, QEvent* event)
{
    int s;
    if ((s = getSliderIndex(watched, event)) != -1)
        emit (gainChanged(groups.at(s)->slider->value()));
    return false;
}
示例#3
0
void MasterSynthesizer::setGain(float f)
{
    if (_gain != f) {
        _gain = f;
        emit gainChanged(_gain);
    }
}
示例#4
0
void MasterSynthesizer::setGain(float f)
      {
      printf("setGain %f\n", f);
      if (_gain != f) {
            _gain = f;
            emit gainChanged(_gain);
            }
      }
void QDeclarativeAudioListener::setGain(qreal gain)
{
#ifdef DEBUG_AUDIOENGINE
    qDebug() << "QDeclarativeAudioListener::setGain";
#endif
    m_engine->engine()->setListenerGain(gain);
    emit gainChanged();
}
示例#6
0
void PlayerWidget::analyseGainFinished()
{
    qDebug() << Q_FUNC_INFO << ":" << objectName();
    // got gain factor -> emit
    if (trackanalyser->gainDB() != TrackAnalyser::GAIN_INVALID) {
        Q_EMIT gainChanged(trackanalyser->gainFactor());
    }
    if (m_CurrentTrack) {
        setPositionMarkers();
        updateTimeAndPositionDisplay();
    }
}
示例#7
0
int UnsharpMControl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: gainChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 1;
    }
    return _id;
}
示例#8
0
void DockInputCtl::readSettings(QSettings *settings)
{
    bool conv_ok;

    setFreqCorr(settings->value("input/corr_freq", 0).toInt(&conv_ok));
    emit freqCorrChanged(ui->freqCorrSpinBox->value());

    setIqSwap(settings->value("input/swap_iq", false).toBool());
    emit iqSwapChanged(ui->iqSwapButton->isChecked());

    setDcCancel(settings->value("input/dc_cancel", false).toBool());
    emit dcCancelChanged(ui->dcCancelButton->isChecked());

    setIqBalance(settings->value("input/iq_balance", false).toBool());
    emit iqBalanceChanged(ui->iqBalanceButton->isChecked());

    qint64 lnb_lo = settings->value("input/lnb_lo", 0).toLongLong(&conv_ok);
    setLnbLo((double)lnb_lo/1.0e6);
    emit lnbLoChanged(ui->lnbSpinBox->value());

    bool ignore_limits = settings->value("input/ignore_limits", false).toBool();
    setIgnoreLimits(ignore_limits);
    emit ignoreLimitsChanged(ignore_limits);

    double gain = settings->value("input/gain", -1).toDouble(&conv_ok);
    setGain(gain);
    emit gainChanged(gain);

    // Ignore antenna selection if there is only one option
    if (ui->antSelector->count() > 1)
    {
        QString ant = settings->value("input/antenna", "").toString();
        setAntenna(ant);
    }

}
示例#9
0
/*! \brief Manual gain value has changed. */
void DockInputCtl::on_gainSlider_valueChanged(int value)
{
    double gain = (double)value/100.0;

    emit gainChanged(gain);
}
示例#10
0
void SynthControl::gainChanged(double val, int)
{
    emit gainChanged(val);
}
示例#11
0
void AtemAudioGainCommand::setGain(float gain)
{
    this->gain = gain;
    emit gainChanged(this->gain);
}