r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / plugins / freeverb / Components / allpass.cpp
blobec6b1fc6a9fe467b0922e380a63e2f97006ec578
1 // Allpass 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 "allpass.hpp"
9 allpass::allpass()
11 bufidx = 0;
14 void allpass::setbuffer(float *buf, int size)
16 buffer = buf;
17 bufsize = size;
20 void allpass::mute()
22 for (int i=0; i<bufsize; i++)
23 buffer[i]=0;
26 void allpass::setfeedback(float val)
28 feedback = val;
31 float allpass::getfeedback()
33 return feedback;
36 //ends