852 |
// MIDI instrument mapping... |
// MIDI instrument mapping... |
853 |
lscp_midi_instrument_t *pInstrs = ::lscp_list_midi_instruments(m_pClient); |
lscp_midi_instrument_t *pInstrs = ::lscp_list_midi_instruments(m_pClient); |
854 |
if (pInstrs) |
if (pInstrs) |
855 |
ts << "# " << tr("MIDI instrument mapping") << endl; |
ts << "# " << tr("MIDI instrument mapping") << endl; |
856 |
for (int iInstr = 0; pInstrs && pInstrs[iInstr].program >= 0; iInstr++) { |
for (int iInstr = 0; pInstrs && pInstrs[iInstr].program >= 0; iInstr++) { |
857 |
lscp_midi_instrument_info_t *pInstrInfo |
lscp_midi_instrument_info_t *pInstrInfo |
858 |
= ::lscp_get_midi_instrument_info(m_pClient, &pInstrs[iInstr]); |
= ::lscp_get_midi_instrument_info(m_pClient, &pInstrs[iInstr]); |
882 |
ts << " '" << pInstrInfo->name << "'"; |
ts << " '" << pInstrInfo->name << "'"; |
883 |
ts << endl; |
ts << endl; |
884 |
} |
} |
885 |
ts << endl; |
// Try to keep it snappy :) |
886 |
// Try to keep it snappy :) |
QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput); |
|
QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput); |
|
887 |
} |
} |
888 |
|
if (pInstrs) |
889 |
|
ts << endl; |
890 |
#endif // CONFIG_MIDI_INSTRUMENT |
#endif // CONFIG_MIDI_INSTRUMENT |
891 |
|
|
892 |
// Ok. we've wrote it. |
// Ok. we've wrote it. |