add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / freeverb / Components / allpass.cpp
1 // Allpass filter implementation\r
2 //\r
3 // Written by Jezar at Dreampoint, June 2000\r
4 // http://www.dreampoint.co.uk\r
5 // This code is public domain\r
6 \r
7 #include "allpass.hpp"\r
8 \r
9 allpass::allpass()\r
10 {\r
11         bufidx = 0;\r
12 }\r
13 \r
14 void allpass::setbuffer(float *buf, int size) \r
15 {\r
16         buffer = buf; \r
17         bufsize = size;\r
18 }\r
19 \r
20 void allpass::mute()\r
21 {\r
22         for (int i=0; i<bufsize; i++)\r
23                 buffer[i]=0;\r
24 }\r
25 \r
26 void allpass::setfeedback(float val) \r
27 {\r
28         feedback = val;\r
29 }\r
30 \r
31 float allpass::getfeedback() \r
32 {\r
33         return feedback;\r
34 }\r
35 \r
36 //ends\r
37 \r
38 \r
39 \r
40 \r
41 \r
42 \r
43 \r