Esempio n. 1
0
uchar OutputMap::grandMasterValue()
{
    UniverseArray* ua = claimUniverses();
    uchar value = ua->gMValue();
    releaseUniverses(false);
    return value;
}
Esempio n. 2
0
void OutputMap::setGrandMasterValue(uchar value)
{
    bool changed = false;

    UniverseArray* ua = claimUniverses();
    if (ua->gMValue() != value)
    {
        ua->setGMValue(value);
        changed = true;
    }
    releaseUniverses(changed);

    if (changed == true)
        emit grandMasterValueChanged(value);
}