/[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 3053 by schoenebeck, Sat Jan 11 14:05:17 2014 UTC revision 3054 by schoenebeck, Thu Dec 15 12:47:45 2016 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 - 2016 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() {

Legend:
Removed from v.3053  
changed lines
  Added in v.3054

  ViewVC Help
Powered by ViewVC