/[svn]/linuxsampler/trunk/src/Sampler.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/Sampler.cpp

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

revision 2503 by schoenebeck, Sat Jan 11 14:05:17 2014 UTC revision 4021 by schoenebeck, Wed Jan 5 16:11:04 2022 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 - 2014 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2022 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 198  namespace LinuxSampler { Line 198  namespace LinuxSampler {
198                  static_cast<uint>(pPort->GetDevice()->MidiInputDeviceID()),                  static_cast<uint>(pPort->GetDevice()->MidiInputDeviceID()),
199                  pPort->GetPortNumber()                  pPort->GetPortNumber()
200              };              };
201              for (int i = this->vMidiInputs.size() - 1; i >= 0; --i) {              for (ssize_t i = this->vMidiInputs.size() - 1; i >= 0; --i) {
202                  if (this->vMidiInputs[i] == c)                  if (this->vMidiInputs[i] == c)
203                      this->vMidiInputs.erase(this->vMidiInputs.begin() + i);                      this->vMidiInputs.erase(this->vMidiInputs.begin() + i);
204                  // no break or return here, for safety reasons                  // no break or return here, for safety reasons
# Line 379  namespace LinuxSampler { Line 379  namespace LinuxSampler {
379      }      }
380    
381      uint Sampler::SamplerChannels() {      uint Sampler::SamplerChannels() {
382          return mSamplerChannels.size();          return (uint) mSamplerChannels.size();
383      }      }
384    
385      void Sampler::AddChannelCountListener(ChannelCountListener* l) {      void Sampler::AddChannelCountListener(ChannelCountListener* l) {
# Line 672  namespace LinuxSampler { Line 672  namespace LinuxSampler {
672      }      }
673    
674      uint Sampler::AudioOutputDevices() {      uint Sampler::AudioOutputDevices() {
675          return AudioOutputDeviceFactory::Devices().size();          return (uint) AudioOutputDeviceFactory::Devices().size();
676      }      }
677    
678      uint Sampler::MidiInputDevices() {      uint Sampler::MidiInputDevices() {
679          return MidiInputDeviceFactory::Devices().size();          return (uint) MidiInputDeviceFactory::Devices().size();
680      }      }
681    
682      std::map<uint, AudioOutputDevice*> Sampler::GetAudioOutputDevices() {      std::map<uint, AudioOutputDevice*> Sampler::GetAudioOutputDevices() {
# Line 857  namespace LinuxSampler { Line 857  namespace LinuxSampler {
857          }          }
858    
859          // unload all instrument editor DLLs          // unload all instrument editor DLLs
860    /* FIXME: disabled for now as it caused an LSCP "RESET" command to unload the
861     *        editor DLLs and (probably due to a race) prevented them from reloading
862     *        subsequently (see comments in ClosePlugins())
863     *        https://sourceforge.net/p/linuxsampler/mailman/message/37411956/
864          InstrumentEditorFactory::ClosePlugins();          InstrumentEditorFactory::ClosePlugins();
865     */
866      }      }
867    
868      bool Sampler::EnableDenormalsAreZeroMode() {      bool Sampler::EnableDenormalsAreZeroMode() {

Legend:
Removed from v.2503  
changed lines
  Added in v.4021

  ViewVC Help
Powered by ViewVC