Skip to content

Instantly share code, notes, and snippets.

@nikreiman
Created December 10, 2010 08:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikreiman/735987 to your computer and use it in GitHub Desktop.
Save nikreiman/735987 to your computer and use it in GitHub Desktop.
Code snippits for a VST plugin written for Windows
#define IDB_BITMAP1 1
#define IDB_BITMAP2 2
#include "YourProjectName.h"
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {
return new YourProjectName(audioMaster);
}
YourProjectName::YourProjectName(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 0, NUM_PARAMS) {
}
YourProjectName::~YourProjectName() {
}
void YourProjectName::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames) {
}
LIBRARY YOURPROJECTNAME
EXPORTS
VSTPluginMain
main=VSTPluginMain
#include "audioeffectx.h"
#define NUM_PARAMS 0
class YourProjectName : public AudioEffectX {
public:
YourProjectName(audioMasterCallback audioMaster);
~YourProjectName();
void processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames);
};
IDB_BITMAP1 PNG DISCARDABLE "../resources/bmp10001.png"
IDB_BITMAP2 PNG DISCARDABLE "../resources/bmp10002.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment