-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathC700VST.h
More file actions
73 lines (59 loc) · 2.21 KB
/
C700VST.h
File metadata and controls
73 lines (59 loc) · 2.21 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* C700VST.h
* C700
*
* Created by osoumen on 12/10/13.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#pragma once
#include "audioeffectx.h"
#include "C700Kernel.h"
#include "C700Edit.h"
#include "EfxAccess.h"
#include "ChunkReader.h"
class C700VST : public AudioEffectX
{
friend class EfxAccess;
public:
C700VST(audioMasterCallback audioMaster);
virtual ~C700VST();
virtual void open();
virtual void close();
virtual void suspend();
virtual void resume();
virtual void processReplacing(float **inputs, float **outputs, int sampleframes);
virtual VstInt32 processEvents(VstEvents* events);
virtual void setProgram(VstInt32 program);
virtual void setProgramName(char *name);
virtual void getProgramName(char *name);
virtual void setParameter(VstInt32 index, float value);
virtual float getParameter(VstInt32 index);
virtual void getParameterLabel(VstInt32 index, char *label);
virtual void getParameterDisplay(VstInt32 index, char *text);
virtual void getParameterName(VstInt32 index, char *text);
virtual void setSampleRate(float sampleRate);
virtual void setBlockSize(VstInt32 blockSize);
virtual bool getOutputProperties (VstInt32 index, VstPinProperties* properties);
// virtual bool getProgramNameIndexed (long category, VstInt32 index, char* text);
virtual bool copyProgram (long destination);
virtual bool getEffectName (char* name);
virtual bool getVendorString (char* text);
virtual bool getProductString (char* text);
// long getVendorVersion () {return 1;}
virtual VstIntPtr vendorSpecific (VstInt32 lArg, VstIntPtr lArg2, void* ptrArg, float floatArg);
virtual VstInt32 canDo(char* text);
virtual VstInt32 getChunk(void** data, bool isPreset = false); // returns byteSize
virtual VstInt32 setChunk(void* data, VstInt32 byteSize, bool isPreset = false);
static void PropertyNotifyFunc(int propID, void* userData);
static void ParameterSetFunc(int paramID, float value, void* userData);
private:
float expandParam( int index, float value );
float shrinkParam( int index, float value );
C700Edit *mEditor;
EfxAccess *efxAcc;
double mTempo;
C700Kernel *mEfx;
ChunkReader *mSaveChunk;
std::map<int, PropertyDescription> mPropertyParams;
};