50 |
// m_sInstrumentFile = m_sInstrumentName; |
// m_sInstrumentFile = m_sInstrumentName; |
51 |
m_iInstrumentNr = -1; |
m_iInstrumentNr = -1; |
52 |
m_iInstrumentStatus = -1; |
m_iInstrumentStatus = -1; |
53 |
m_sMidiDriver = "Alsa"; // DEPRECATED. |
m_sMidiDriver = "ALSA"; |
54 |
m_iMidiDevice = -1; |
m_iMidiDevice = -1; |
55 |
m_iMidiPort = -1; |
m_iMidiPort = -1; |
56 |
m_iMidiChannel = -1; |
m_iMidiChannel = -1; |
57 |
m_sAudioDriver = "Alsa"; // DEPRECATED. |
m_sAudioDriver = "ALSA"; |
58 |
m_iAudioDevice = -1; |
m_iAudioDevice = -1; |
59 |
m_fVolume = 0.0; |
m_fVolume = 0.0; |
60 |
|
|
131 |
m_iChannelID = -1; |
m_iChannelID = -1; |
132 |
} |
} |
133 |
} |
} |
134 |
|
|
135 |
// Return whether we've removed the channel... |
// Return whether we've removed the channel... |
136 |
return (m_iChannelID < 0); |
return (m_iChannelID < 0); |
137 |
} |
} |
168 |
return false; |
return false; |
169 |
if (m_iInstrumentStatus == 100 && m_sEngineName == sEngineName) |
if (m_iInstrumentStatus == 100 && m_sEngineName == sEngineName) |
170 |
return true; |
return true; |
171 |
|
|
172 |
if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) { |
if (::lscp_load_engine(client(), sEngineName.latin1(), m_iChannelID) != LSCP_OK) { |
173 |
appendMessagesClient("lscp_load_engine"); |
appendMessagesClient("lscp_load_engine"); |
174 |
return false; |
return false; |
221 |
|
|
222 |
appendMessages(QObject::tr("Instrument: \"%1\" (%2).") |
appendMessages(QObject::tr("Instrument: \"%1\" (%2).") |
223 |
.arg(sInstrumentFile).arg(iInstrumentNr)); |
.arg(sInstrumentFile).arg(iInstrumentNr)); |
224 |
|
|
225 |
return setInstrument(sInstrumentFile, iInstrumentNr); |
return setInstrument(sInstrumentFile, iInstrumentNr); |
226 |
} |
} |
227 |
|
|
472 |
m_sInstrumentFile = QString::null; |
m_sInstrumentFile = QString::null; |
473 |
m_sInstrumentName = QString::null; |
m_sInstrumentName = QString::null; |
474 |
} |
} |
475 |
|
|
476 |
// FIXME: DEPRECATED... |
// Time for device info grabbing... |
477 |
lscp_device_info_t *pDeviceInfo; |
lscp_device_info_t *pDeviceInfo; |
478 |
const QString sNone = QObject::tr("(none)"); |
const QString sNone = QObject::tr("(none)"); |
479 |
// Audio device driver type. |
// Audio device driver type. |
520 |
bool bResult = false; |
bool bResult = false; |
521 |
|
|
522 |
appendMessages(QObject::tr("setup...")); |
appendMessages(QObject::tr("setup...")); |
523 |
|
|
524 |
qsamplerChannelForm *pChannelForm = new qsamplerChannelForm(pParent); |
qsamplerChannelForm *pChannelForm = new qsamplerChannelForm(pParent); |
525 |
if (pChannelForm) { |
if (pChannelForm) { |
526 |
pChannelForm->setup(this); |
pChannelForm->setup(this); |