r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / plugins / freeverb / Components / comb.cpp
blob40dcef5c62e733517c716501c75b1014eb10bbe5
1 // Comb filter implementation
2 //
3 // Written by Jezar at Dreampoint, June 2000
4 // http://www.dreampoint.co.uk
5 // This code is public domain
7 #include "comb.hpp"
9 comb::comb()
11 filterstore = 0;
12 bufidx = 0;
15 void comb::setbuffer(float *buf, int size)
17 buffer = buf;
18 bufsize = size;
21 void comb::mute()
23 for (int i=0; i<bufsize; i++)
24 buffer[i]=0;
27 void comb::setdamp(float val)
29 damp1 = val;
30 damp2 = 1-val;
33 float comb::getdamp()
35 return damp1;
38 void comb::setfeedback(float val)
40 feedback = val;
43 float comb::getfeedback()
45 return feedback;
48 // ends