diff options
Diffstat (limited to 'vst')
-rw-r--r-- | vst/drumgizmo_vst.cc | 9 | ||||
-rw-r--r-- | vst/input_vst.h | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/vst/drumgizmo_vst.cc b/vst/drumgizmo_vst.cc index 4d3ce9f..8a24a0f 100644 --- a/vst/drumgizmo_vst.cc +++ b/vst/drumgizmo_vst.cc @@ -132,8 +132,13 @@ DrumGizmoVst::DrumGizmoVst(audioMasterCallback audioMaster) canProcessReplacing(); isSynth(); - char id[] = "DGV5"; // Four bytes typecasted into an unsigned integer - setUniqueID(*(unsigned int*)id); + union { + char cid[4]; + unsigned int iid; + } id; + + memcpy(id.cid, "DGV5", 4); // Four bytes typecasted into an unsigned integer + setUniqueID(id.iid); // setUniqueID((unsigned int)time(NULL)); diff --git a/vst/input_vst.h b/vst/input_vst.h index e8378c8..668f39c 100644 --- a/vst/input_vst.h +++ b/vst/input_vst.h @@ -35,7 +35,7 @@ class InputVST : public AudioInputEngine { public: InputVST(); - ~InputVST(); + virtual ~InputVST(); bool init(Instruments &instruments); |