117 |
|
|
118 |
// Set the new one... |
// Set the new one... |
119 |
m_pChannel = pChannel; |
m_pChannel = pChannel; |
120 |
|
|
121 |
// Stabilize this around. |
// Stabilize this around. |
122 |
updateChannelInfo(); |
updateChannelInfo(); |
123 |
|
|
171 |
pLabel->setPaletteBackgroundPixmap(pm); |
pLabel->setPaletteBackgroundPixmap(pm); |
172 |
delete pList; |
delete pList; |
173 |
} |
} |
174 |
|
|
175 |
// And this standalone too. |
// And this standalone too. |
176 |
StreamVoiceCountTextLabel->setPaletteBackgroundPixmap(pm); |
StreamVoiceCountTextLabel->setPaletteBackgroundPixmap(pm); |
177 |
} |
} |
281 |
{ |
{ |
282 |
if (m_pChannel == NULL) |
if (m_pChannel == NULL) |
283 |
return false; |
return false; |
284 |
|
|
285 |
// Check for error limit/recycle... |
// Check for error limit/recycle... |
286 |
if (m_iErrorCount > QSAMPLER_ERROR_LIMIT) |
if (m_iErrorCount > QSAMPLER_ERROR_LIMIT) |
287 |
return true; |
return true; |
343 |
// This only makes sense on fully loaded channels... |
// This only makes sense on fully loaded channels... |
344 |
if (m_pChannel->instrumentStatus() < 100) |
if (m_pChannel->instrumentStatus() < 100) |
345 |
return false; |
return false; |
346 |
|
|
347 |
// Get current channel voice count. |
// Get current channel voice count. |
348 |
int iVoiceCount = ::lscp_get_channel_voice_count(m_pChannel->client(), m_pChannel->channelID()); |
int iVoiceCount = ::lscp_get_channel_voice_count(m_pChannel->client(), m_pChannel->channelID()); |
349 |
// Get current stream count. |
// Get current stream count. |
356 |
// Update the GUI elements... |
// Update the GUI elements... |
357 |
StreamUsageProgressBar->setProgress(iStreamUsage); |
StreamUsageProgressBar->setProgress(iStreamUsage); |
358 |
StreamVoiceCountTextLabel->setText(QString("%1 / %2").arg(iStreamCount).arg(iVoiceCount)); |
StreamVoiceCountTextLabel->setText(QString("%1 / %2").arg(iStreamCount).arg(iVoiceCount)); |
359 |
|
|
360 |
// We're clean. |
// We're clean. |
361 |
return true; |
return true; |
362 |
} |
} |
390 |
{ |
{ |
391 |
if (m_pChannel == NULL) |
if (m_pChannel == NULL) |
392 |
return; |
return; |
393 |
|
|
394 |
// We'll just show up the main form's edit menu (thru qsamplerChannel). |
// We'll just show up the main form's edit menu (thru qsamplerChannel). |
395 |
m_pChannel->contextMenuEvent(pEvent); |
m_pChannel->contextMenuEvent(pEvent); |
396 |
} |
} |
397 |
|
|
398 |
|
|
399 |
|
// Error count hackish accessors. |
400 |
|
void qsamplerChannelStrip::resetErrorCount (void) |
401 |
|
{ |
402 |
|
m_iErrorCount = 0; |
403 |
|
} |
404 |
|
|
405 |
|
|
406 |
// end of qsamplerChannelStrip.ui.h |
// end of qsamplerChannelStrip.ui.h |