#include "denormals.h"
+/**
+* Combination filter
+*Takes multiple audio channels and mix them for one ear
+*/
class comb
{
public:
inline float comb::process(float input)
{
+/* FIXME
+* comb::process is not really ear-friendly the tunning values must
+* be changed*/
float output;
- output = buffer[bufidx];
- undenormalise(output);
+ output = undenormalise( buffer[bufidx] );
- filterstore = (output*damp2) + (filterstore*damp1);
- undenormalise(filterstore);
+ filterstore = undenormalise(output*damp2);
- buffer[bufidx] = input + (filterstore*feedback);
+ buffer[bufidx] = input + filterstore*feedback;
if(++bufidx>=bufsize) bufidx = 0;