--- qsampler/trunk/src/qsamplerMainForm.ui.h 2007/01/10 19:39:00 1018 +++ qsampler/trunk/src/qsamplerMainForm.ui.h 2007/01/12 21:21:16 1025 @@ -899,7 +899,8 @@ // Sampler channel mapping. QWidgetList wlist = m_pWorkspace->windowList(); for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) { - qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel); + qsamplerChannelStrip *pChannelStrip + = static_cast (wlist.at(iChannel)); if (pChannelStrip) { qsamplerChannel *pChannel = pChannelStrip->channel(); if (pChannel) { @@ -951,6 +952,37 @@ << " " << midiInstrumentMap[pChannel->midiMap()] << endl; } #endif +#ifdef CONFIG_FXSEND + int iChannelID = pChannel->channelID(); + int *piFxSends = ::lscp_list_fxsends(m_pClient, iChannelID); + for (int iFxSend = 0; + piFxSends && piFxSends[iFxSend] >= 0; + iFxSend++) { + lscp_fxsend_info_t *pFxSendInfo = ::lscp_get_fxsend_info( + m_pClient, iChannelID, piFxSends[iFxSend]); + if (pFxSendInfo) { + ts << "CREATE FX_SEND " << iChannel + << " " << pFxSendInfo->midi_controller; + if (pFxSendInfo->name) + ts << " '" << pFxSendInfo->name << "'"; + ts << endl; + int *piRouting = pFxSendInfo->audio_routing; + for (int iAudioSrc = 0; + piRouting && piRouting[iAudioSrc] >= 0; + iAudioSrc++) { + ts << "SET FX_SEND AUDIO_OUTPUT_CHANNEL " + << iChannel + << " " << iFxSend + << " " << iAudioSrc + << " " << piRouting[iAudioSrc] << endl; + } + } // Check for errors... + else if (::lscp_client_get_errno(m_pClient)) { + appendMessagesClient("lscp_get_fxsend_info"); + iErrors++; + } + } +#endif ts << endl; } } @@ -1499,6 +1531,16 @@ sText += tr("Sampler channel Mute/Solo support disabled."); sText += "
"; #endif +#ifndef CONFIG_AUDIO_ROUTING + sText += ""; + sText += tr("LSCP (liblscp) audio_routing support disabled."); + sText += "
"; +#endif +#ifndef CONFIG_FXSEND + sText += ""; + sText += tr("Sampler channel Effect Sends support disabled."); + sText += "
"; +#endif #ifndef CONFIG_MIDI_INSTRUMENT sText += ""; sText += tr("MIDI instrument mapping support disabled.");