From 83807cf93ef362098d6fea6030646653cc62e37f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 27 Sep 2011 21:04:54 +0200 Subject: Add vst folder. --- vst/Makefile | 2 +- vst/drumgizmo_vst.cc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vst/Makefile b/vst/Makefile index 5400acd..b6d1a10 100644 --- a/vst/Makefile +++ b/vst/Makefile @@ -29,7 +29,7 @@ EXPAT_BASE = expat EXPAT_FLAGS = -I${EXPAT_BASE}/Source/lib -L${EXPAT_BASE}/Bin -lexpat SNDFILE_BASE = libsndfile -SNDFILE_FLAGS = -I${SNDFILE_BASE}\include -L${SNDFILE_BASE}/bin -lsndfile-1 +SNDFILE_FLAGS = -I${SNDFILE_BASE}\include -L${SNDFILE_BASE}/bin -lsndfile-1 -static SRC = \ drumgizmo_vst.cc \ diff --git a/vst/drumgizmo_vst.cc b/vst/drumgizmo_vst.cc index 8e29f2d..33c0a9d 100644 --- a/vst/drumgizmo_vst.cc +++ b/vst/drumgizmo_vst.cc @@ -58,8 +58,8 @@ DrumGizmoVst::DrumGizmoVst(audioMasterCallback audioMaster) setNumOutputs(NUM_OUTPUTS); canProcessReplacing(); isSynth(); - char id[] = "DGv1"; // Four bytes typecasted into an unsigned integer - setUniqueID((unsigned int)*id); + char id[] = "BLOP"; // Four bytes typecasted into an unsigned integer + setUniqueID(*(unsigned int*)id); } initProcess(); @@ -208,19 +208,19 @@ bool DrumGizmoVst::getProgramNameIndexed(VstInt32 category, VstInt32 index, bool DrumGizmoVst::getEffectName(char* name) { - vst_strncpy(name, "DrumGizmo", kVstMaxEffectNameLen); + vst_strncpy(name, "DrumGizmoSKU", kVstMaxEffectNameLen); return true; } bool DrumGizmoVst::getVendorString(char* text) { - vst_strncpy(text, "Aasimon.org", kVstMaxVendorStrLen); + vst_strncpy(text, "Aasimon.org-yeah", kVstMaxVendorStrLen); return true; } bool DrumGizmoVst::getProductString(char* text) { - vst_strncpy(text, "Vst Synth", kVstMaxProductStrLen); + vst_strncpy(text, "Vst Synthdims", kVstMaxProductStrLen); return true; } @@ -233,7 +233,7 @@ VstInt32 DrumGizmoVst::canDo(char* text) { if(!strcmp(text, "receiveVstEvents")) return 1; if(!strcmp(text, "receiveVstMidiEvent")) return 1; - if(!strcmp(text, "midiProgramNames")) return 1; + //if(!strcmp(text, "midiProgramNames")) return 1; return -1; // explicitly can't do; 0 => don't know } -- cgit v1.2.3