Ejemplo n.º 1
0
void MidiController::applyPreset(QList<QString> scriptPaths) {
    // Handles the engine
    Controller::applyPreset(scriptPaths);

    // Only execute this code if this is an output device
    if (isOutputDevice()) {
        if (m_outputs.count() > 0) {
            destroyOutputHandlers();
        }
        createOutputHandlers();
        updateAllOutputs();
    }
}
Ejemplo n.º 2
0
bool MidiController::applyPreset(QList<QString> scriptPaths, bool initializeScripts) {
    // Handles the engine
    bool result = Controller::applyPreset(scriptPaths, initializeScripts);

    // Only execute this code if this is an output device
    if (isOutputDevice()) {
        if (m_outputs.count() > 0) {
            destroyOutputHandlers();
        }
        createOutputHandlers();
        updateAllOutputs();
    }
    return result;
}