/[svn]/linuxsampler/trunk/src/engines/gig/Voice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/Voice.cpp

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

revision 246 by schoenebeck, Sun Sep 19 14:12:55 2004 UTC revision 247 by senkov, Sun Sep 19 23:44:23 2004 UTC
# Line 255  namespace LinuxSampler { namespace gig { Line 255  namespace LinuxSampler { namespace gig {
255                  CrossfadeVolume = 1.0f;                  CrossfadeVolume = 1.0f;
256          }          }
257    
258          PanLeft  = float(RTMath::Max(pDimRgn->Pan, 0)) / -64.0f;          const float fpan = float(RTMath::Max(RTMath::Min(pDimRgn->Pan, 63), -64)) / 64.0f;
259          PanRight = float(RTMath::Min(pDimRgn->Pan, 0)) /  63.0f;          PanLeft  = 1.0f - fpan;
260            PanRight = 1.0f + fpan;
261    
262          pSample = pDimRgn->pSample; // sample won't change until the voice is finished          pSample = pDimRgn->pSample; // sample won't change until the voice is finished
263    

Legend:
Removed from v.246  
changed lines
  Added in v.247

  ViewVC Help
Powered by ViewVC