/[svn]/qsampler/trunk/src/qsamplerMainForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.ui.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1023 by capela, Wed Jan 10 19:39:00 2007 UTC revision 1024 by capela, Fri Jan 12 10:56:31 2007 UTC
# Line 896  bool qsamplerMainForm::saveSessionFile ( Line 896  bool qsamplerMainForm::saveSessionFile (
896          }          }
897  #endif  // CONFIG_MIDI_INSTRUMENT  #endif  // CONFIG_MIDI_INSTRUMENT
898    
899    #ifdef CONFIG_FXSEND
900            int iFxSend = 0;
901    #endif
902          // Sampler channel mapping.          // Sampler channel mapping.
903      QWidgetList wlist = m_pWorkspace->windowList();      QWidgetList wlist = m_pWorkspace->windowList();
904      for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) {      for (int iChannel = 0; iChannel < (int) wlist.count(); iChannel++) {
905          qsamplerChannelStrip *pChannelStrip = (qsamplerChannelStrip *) wlist.at(iChannel);          qsamplerChannelStrip *pChannelStrip
906                            = static_cast<qsamplerChannelStrip *> (wlist.at(iChannel));
907          if (pChannelStrip) {          if (pChannelStrip) {
908              qsamplerChannel *pChannel = pChannelStrip->channel();              qsamplerChannel *pChannel = pChannelStrip->channel();
909              if (pChannel) {              if (pChannel) {
# Line 951  bool qsamplerMainForm::saveSessionFile ( Line 955  bool qsamplerMainForm::saveSessionFile (
955                                                  << " " << midiInstrumentMap[pChannel->midiMap()] << endl;                                                  << " " << midiInstrumentMap[pChannel->midiMap()] << endl;
956                                  }                                  }
957  #endif  #endif
958    #ifdef CONFIG_FXSEND
959                                    int iChannelID = pChannel->channelID();
960                                    int *piFxSends = ::lscp_list_fxsends(m_pClient, iChannelID);
961                                    for (int iFx = 0; piFxSends && piFxSends[iFx] >= 0; iFx++) {
962                                            lscp_fxsend_info_t *pFxSendInfo
963                                                    = ::lscp_get_fxsend_info(m_pClient, iChannelID, piFxSends[iFx]);
964                                            if (pFxSendInfo) {
965                                                    ts << "CREATE FX_SEND " << iChannel
966                                                            << " " << pFxSendInfo->midi_controller;
967                                                    if (pFxSendInfo->name)
968                                                            ts << " '" << pFxSendInfo->name << "'";
969                                                    ts << endl;
970                                                    int *piRouting = pFxSendInfo->audio_routing;
971                                                    for (int i = 0; piRouting && piRouting[i] >= 0; i++) {
972                                                            ts << "SET FX_SEND AUDIO_OUTPUT_CHANNEL " << iChannel
973                                                                    << " " << iFxSend
974                                                                    << " " << i     << " " << piRouting[i] << endl;
975                                                    }
976                                                    // Increment logical FX send identifier...
977                                                    iFxSend++;
978                                            }       // Check for errors...
979                                            else if (::lscp_client_get_errno(m_pClient)) {
980                                                    appendMessagesClient("lscp_get_fxsend_info");
981                                                    iErrors++;
982                                            }
983                                    }
984    #endif
985                  ts << endl;                  ts << endl;
986              }              }
987          }          }
# Line 1499  void qsamplerMainForm::helpAbout (void) Line 1530  void qsamplerMainForm::helpAbout (void)
1530      sText += tr("Sampler channel Mute/Solo support disabled.");      sText += tr("Sampler channel Mute/Solo support disabled.");
1531      sText += "</font></small><br />";      sText += "</font></small><br />";
1532  #endif  #endif
1533    #ifndef CONFIG_AUDIO_ROUTING
1534        sText += "<small><font color=\"red\">";
1535        sText += tr("LSCP (liblscp) audio_routing support disabled.");
1536        sText += "</font></small><br />";
1537    #endif
1538    #ifndef CONFIG_FXSEND
1539        sText += "<small><font color=\"red\">";
1540        sText += tr("Sampler channel Effect Sends support disabled.");
1541        sText += "</font></small><br />";
1542    #endif
1543  #ifndef CONFIG_MIDI_INSTRUMENT  #ifndef CONFIG_MIDI_INSTRUMENT
1544      sText += "<small><font color=\"red\">";      sText += "<small><font color=\"red\">";
1545      sText += tr("MIDI instrument mapping support disabled.");      sText += tr("MIDI instrument mapping support disabled.");

Legend:
Removed from v.1023  
changed lines
  Added in v.1024

  ViewVC Help
Powered by ViewVC