COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 02-11-2017, 07:58 AM   #1
SaschArt
Human being with feelings
 
SaschArt's Avatar
 
Join Date: Aug 2013
Posts: 166
Default Process for activation/deactivation

Can I check if the plugin is activated ?

For example in Reaper near plugin list is a checkbox for activation/deactivation, can to check the state of this from plugin ?

I test void OnActivate(bool active) with no success.
__________________
Audio VST plugins http://vst.saschart.com
SaschArt is offline   Reply With Quote
Old 02-11-2017, 02:22 PM   #2
earlevel
Human being with feelings
 
Join Date: Dec 2015
Posts: 164
Default

Quote:
Originally Posted by SaschArt View Post
I test void OnActivate(bool active) with no success.
Not sure exactly what you want to do, but OnActivate is of return type void, so it's not a test. The comments make it clear it's not for what you think it's for, and the default, essentially null implementation is not overriden:

Code:
  // Not usually needed ... Reset is called on activate regardless of whether this is implemented.
  // Also different hosts have different interpretations of "activate".
  // Implementations should set a mutex lock like in the no-op!
  virtual void OnActivate(bool active) { TRACE;  IMutexLock lock(this); }
earlevel is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:26 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.