-
Notifications
You must be signed in to change notification settings - Fork 7
/
decimate.h
34 lines (27 loc) · 898 Bytes
/
decimate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _DFX_DECIMATE_H
#define _DFX_DECIMATE_H
#include "audioeffectx.h"
class Decimate : public AudioEffectX {
public:
Decimate(audioMasterCallback audioMaster);
~Decimate();
virtual void process(float **inputs, float **outputs, long sampleFrames);
virtual void processReplacing(float **inputs,
float **outputs, long sampleFrames);
virtual void setProgramName(char *name);
virtual void getProgramName(char *name);
virtual void setParameter(long index, float value);
virtual float getParameter(long index);
virtual void getParameterLabel(long index, char *label);
virtual void getParameterDisplay(long index, char *text);
virtual void getParameterName(long index, char *text);
protected:
float bitres;
float destruct;
char programName[32];
float bit1, bit2;
int samplesleft;
float samplehold;
float bigdivisor;
};
#endif