/[svn]/linuxsampler/trunk/src/drivers/audio/AudioOutputDevice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/audio/AudioOutputDevice.cpp

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

revision 3053 by schoenebeck, Mon Feb 4 21:52:56 2013 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 - 2013 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2016 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program 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 267  namespace LinuxSampler { Line 267  namespace LinuxSampler {
267    
268      void AudioOutputDevice::AcquireChannels(uint Channels) {      void AudioOutputDevice::AcquireChannels(uint Channels) {
269          if (Channels > this->Channels.size()) {          if (Channels > this->Channels.size()) {
270              for (int c = this->Channels.size(); c < Channels; c++) {              for (size_t c = this->Channels.size(); c < Channels; c++) {
271                  this->Channels.push_back(CreateChannel(c));                  this->Channels.push_back(CreateChannel(uint(c)));
272              }              }
273          }          }
274      }      }
275    
276      uint AudioOutputDevice::ChannelCount() {      uint AudioOutputDevice::ChannelCount() {
277          return Channels.size();          return (uint) Channels.size();
278      }      }
279    
280      std::map<String,DeviceCreationParameter*> AudioOutputDevice::DeviceParameters() {      std::map<String,DeviceCreationParameter*> AudioOutputDevice::DeviceParameters() {
# Line 313  namespace LinuxSampler { Line 313  namespace LinuxSampler {
313      }      }
314    
315      uint AudioOutputDevice::SendEffectChainCount() const {      uint AudioOutputDevice::SendEffectChainCount() const {
316          return vEffectChains.size();          return (uint) vEffectChains.size();
317      }      }
318    
319      // TODO: to be removed      // TODO: to be removed

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

  ViewVC Help
Powered by ViewVC