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

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

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

revision 2223 by iliev, Fri Jul 29 13:39:58 2011 UTC revision 2225 by iliev, Tue Aug 2 13:44:57 2011 UTC
# Line 92  namespace LinuxSampler { Line 92  namespace LinuxSampler {
92    
93                  uiLevel = 0;                  uiLevel = 0;
94              }              }
95                
96                /**
97                 * @param phase 0 to 360 degrees
98                 */
99                void setPhase(float phase) {
100                    if (phase < 0) phase = 0;
101                    if (phase > 360) phase = 360;
102                    phase /= 360.0f;
103                    const unsigned int intLimit = (unsigned int) -1; // all 0xFFFF...
104                    uiLevel = intLimit * phase;
105                }
106    
107          protected:          protected:
108              unsigned int uiLevel;              unsigned int uiLevel;

Legend:
Removed from v.2223  
changed lines
  Added in v.2225

  ViewVC Help
Powered by ViewVC