From 428806256328220836f6833c7b0fea5bc7157eac Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 17 Mar 2005 04:57:22 +0000 Subject: clean handling of plugin deletion (potentially open editor window etc.) workarounds for Waves5 bundle svn path=/trunk/; revision=2631 --- externals/grill/vst/src/vsthost.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'externals/grill/vst/src/vsthost.h') diff --git a/externals/grill/vst/src/vsthost.h b/externals/grill/vst/src/vsthost.h index 0b1adef0..d4365e97 100644 --- a/externals/grill/vst/src/vsthost.h +++ b/externals/grill/vst/src/vsthost.h @@ -67,7 +67,7 @@ private: public: bool Is() const { return effect != NULL; } - long GetVersion() const { return effect?effect->version:0; } + long GetVersion() const { return effect->version; } bool IsSynth() const { return HasFlags(effFlagsIsSynth); } bool IsReplacing() const { return HasFlags(effFlagsCanReplacing); } @@ -77,8 +77,10 @@ public: const char *GetVendorName() const { return vendorname; } const char *GetDllName() const { return dllname.c_str(); } - int GetNumInputs() const { return effect?effect->numInputs:0; } - int GetNumOutputs() const { return effect?effect->numOutputs:0; } + long UniqueID() const { return effect->uniqueID; } + + int GetNumInputs() const { return effect->numInputs; } + int GetNumOutputs() const { return effect->numOutputs; } void ListPlugs(const t_symbol *sym) const; -- cgit v1.2.1