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

Diff of /linuxsampler/trunk/src/common/RingBuffer.h

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

revision 1790 by persson, Sun Nov 2 12:05:00 2008 UTC revision 1895 by persson, Sun May 3 12:15:40 2009 UTC
# Line 73  public: Line 73  public:
73    
74              this->wrap_elements = wrap_elements;              this->wrap_elements = wrap_elements;
75    
76                // the write-with-wrap functions need wrap_elements extra
77                // space in the buffer to be able to copy the wrap space
78                sz += wrap_elements;
79    
80              for (power_of_two = 1;              for (power_of_two = 1;
81                   1<<power_of_two < sz;                   1<<power_of_two < sz;
82                   power_of_two++);                   power_of_two++);

Legend:
Removed from v.1790  
changed lines
  Added in v.1895

  ViewVC Help
Powered by ViewVC