/[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 470 by capela, Wed Mar 16 22:07:14 2005 UTC revision 484 by capela, Tue Mar 22 12:55:29 2005 UTC
# Line 666  bool qsamplerMainForm::saveSessionFile ( Line 666  bool qsamplerMainForm::saveSessionFile (
666          piDeviceIDs = qsamplerDevice::getDevices(m_pClient, qsamplerDevice::Audio);          piDeviceIDs = qsamplerDevice::getDevices(m_pClient, qsamplerDevice::Audio);
667          for (iDevice = 0; piDeviceIDs && piDeviceIDs[iDevice] >= 0; iDevice++) {          for (iDevice = 0; piDeviceIDs && piDeviceIDs[iDevice] >= 0; iDevice++) {
668                  ts << endl;                  ts << endl;
669                  qsamplerDevice device(m_pClient, qsamplerDevice::Audio, piDeviceIDs[iDevice]);                  qsamplerDevice device(this, qsamplerDevice::Audio, piDeviceIDs[iDevice]);
670                  // Audio device specification...                  // Audio device specification...
671                  ts << "# " << device.deviceTypeName() << " " << device.driverName()                  ts << "# " << device.deviceTypeName() << " " << device.driverName()
672                     << " " << tr("Device") << " " << iDevice << endl;                     << " " << tr("Device") << " " << iDevice << endl;
# Line 676  bool qsamplerMainForm::saveSessionFile ( Line 676  bool qsamplerMainForm::saveSessionFile (
676                                  deviceParam != device.params().end();                                  deviceParam != device.params().end();
677                                          ++deviceParam) {                                          ++deviceParam) {
678                          const qsamplerDeviceParam& param = deviceParam.data();                          const qsamplerDeviceParam& param = deviceParam.data();
679                          if (!param.fix && !param.value.isEmpty())                          if (param.value.isEmpty()) ts << "# ";
680                                  ts << " " << deviceParam.key() << "='" << param.value << "'";                          ts << " " << deviceParam.key() << "='" << param.value << "'";
681                  }                  }
682                  ts << endl;                  ts << endl;
683                  // Audio channel parameters...                  // Audio channel parameters...
# Line 690  bool qsamplerMainForm::saveSessionFile ( Line 690  bool qsamplerMainForm::saveSessionFile (
690                                          portParam != pPort->params().end();                                          portParam != pPort->params().end();
691                                                  ++portParam) {                                                  ++portParam) {
692                                  const qsamplerDeviceParam& param = portParam.data();                                  const qsamplerDeviceParam& param = portParam.data();
693                                  if (!param.fix && !param.value.isEmpty()) {                                  if (param.fix || param.value.isEmpty()) ts << "# ";
694                                          ts << "SET AUDIO_OUTPUT_CHANNEL_PARAMETER " << iDevice                                  ts << "SET AUDIO_OUTPUT_CHANNEL_PARAMETER " << iDevice
695                                             << " " << iPort << " " << portParam.key()                                     << " " << iPort << " " << portParam.key()
696                                             << "='" << param.value << "'" << endl;                                     << "='" << param.value << "'" << endl;
                                 }  
697                          }                          }
698                  }                  }
699                  // Audio device index/id mapping.                  // Audio device index/id mapping.
# Line 707  bool qsamplerMainForm::saveSessionFile ( Line 706  bool qsamplerMainForm::saveSessionFile (
706          piDeviceIDs = qsamplerDevice::getDevices(m_pClient, qsamplerDevice::Midi);          piDeviceIDs = qsamplerDevice::getDevices(m_pClient, qsamplerDevice::Midi);
707          for (iDevice = 0; piDeviceIDs && piDeviceIDs[iDevice] >= 0; iDevice++) {          for (iDevice = 0; piDeviceIDs && piDeviceIDs[iDevice] >= 0; iDevice++) {
708                  ts << endl;                  ts << endl;
709                  qsamplerDevice device(m_pClient, qsamplerDevice::Midi, piDeviceIDs[iDevice]);                  qsamplerDevice device(this, qsamplerDevice::Midi, piDeviceIDs[iDevice]);
710                  // MIDI device specification...                  // MIDI device specification...
711          ts << "# " << device.deviceTypeName() << " " << device.driverName()          ts << "# " << device.deviceTypeName() << " " << device.driverName()
712                     << " " << tr("Device") << " " << iDevice << endl;                     << " " << tr("Device") << " " << iDevice << endl;
# Line 717  bool qsamplerMainForm::saveSessionFile ( Line 716  bool qsamplerMainForm::saveSessionFile (
716                                  deviceParam != device.params().end();                                  deviceParam != device.params().end();
717                                          ++deviceParam) {                                          ++deviceParam) {
718                          const qsamplerDeviceParam& param = deviceParam.data();                          const qsamplerDeviceParam& param = deviceParam.data();
719                          if (!param.fix && !param.value.isEmpty())                          if (param.value.isEmpty()) ts << "# ";
720                                  ts << " " << deviceParam.key() << "='" << param.value << "'";                          ts << " " << deviceParam.key() << "='" << param.value << "'";
721                  }                  }
722                  ts << endl;                  ts << endl;
723                  // MIDI port parameters...                  // MIDI port parameters...
# Line 731  bool qsamplerMainForm::saveSessionFile ( Line 730  bool qsamplerMainForm::saveSessionFile (
730                                          portParam != pPort->params().end();                                          portParam != pPort->params().end();
731                                                  ++portParam) {                                                  ++portParam) {
732                                  const qsamplerDeviceParam& param = portParam.data();                                  const qsamplerDeviceParam& param = portParam.data();
733                                  if (!param.fix && !param.value.isEmpty()) {                                  if (param.fix || param.value.isEmpty()) ts << "# ";
734                                          ts << "SET MIDI_INPUT_CHANNEL_PARAMETER " << iDevice                                  ts << "SET MIDI_INPUT_PORT_PARAMETER " << iDevice
735                                             << " " << iPort << " " << portParam.key()                                     << " " << iPort << " " << portParam.key()
736                                             << "='" << param.value << "'" << endl;                                     << "='" << param.value << "'" << endl;
                                 }  
737                          }                          }
738                  }                  }
739                  // MIDI device index/id mapping.                  // MIDI device index/id mapping.

Legend:
Removed from v.470  
changed lines
  Added in v.484

  ViewVC Help
Powered by ViewVC