/[svn]/linuxsampler/trunk/src/engines/common/SignalUnit.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/SignalUnit.h

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

revision 2381 by iliev, Fri Dec 9 15:04:55 2011 UTC revision 2382 by persson, Sun Dec 2 16:30:42 2012 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2011 Grigor Iliev                                       *   *   Copyright (C) 2011 - 2012 Grigor Iliev                                *
6   *                                                                         *   *                                                                         *
7   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
8   *   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 316  namespace LinuxSampler { Line 316  namespace LinuxSampler {
316              }              }
317                            
318              /** Should return value in the range [0, 127] (L <-> R) */              /** Should return value in the range [0, 127] (L <-> R) */
319              virtual uint8_t CaluclatePan(uint8_t pan) {              virtual uint8_t CalculatePan(int pan) {
320                  int p = pan + GetPan() * 0.63;                  int p = pan + GetPan() * 0.63;
321                  if (p < 0) return 0;                  if (p < 0) return 0;
322                  if (p > 127) return 127;                  if (p > 127) return 127;

Legend:
Removed from v.2381  
changed lines
  Added in v.2382

  ViewVC Help
Powered by ViewVC