コード例 #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();
    }
}
コード例 #2
0
ファイル: midicontroller.cpp プロジェクト: DJChloe/mixxx
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;
}