X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fplugins%2Ffreeverb%2FComponents%2Fallpass.hpp;fp=cinelerra-5.0%2Fplugins%2Ffreeverb%2FComponents%2Fallpass.hpp;h=0000000000000000000000000000000000000000;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=35e56e718b31f47f9cfac2f8839f3b17b716eaf1;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/plugins/freeverb/Components/allpass.hpp b/cinelerra-5.0/plugins/freeverb/Components/allpass.hpp deleted file mode 100644 index 35e56e71..00000000 --- a/cinelerra-5.0/plugins/freeverb/Components/allpass.hpp +++ /dev/null @@ -1,53 +0,0 @@ -// Allpass filter declaration -// -// Written by Jezar at Dreampoint, June 2000 -// http://www.dreampoint.co.uk -// This code is public domain - -#ifndef _allpass_ -#define _allpass_ -#include "denormals.h" - -class allpass -{ -public: - allpass(); - void setbuffer(float *buf, int size); - inline float process(float inp); - void mute(); - void setfeedback(float val); - float getfeedback(); -// private: - float feedback; - float *buffer; - int bufsize; - int bufidx; -}; - - -// Big to inline - but crucial for speed - -inline float allpass::process(float input) -{ - float output; - float bufout; - - bufout = buffer[bufidx]; - undenormalise(bufout); - - output = -input + bufout; - buffer[bufidx] = input + (bufout*feedback); - - if(++bufidx>=bufsize) bufidx = 0; - - return output; -} - -#endif//_allpass - -//ends - - - - -