From bf9523d0f232dc39ddf0b5d1985e93d431100c13 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sun, 13 Mar 2005 05:02:28 +0000 Subject: fixed bug with param method minimal updated for new flext function naming feedback attribute for parameter reporting added event processing (like Midi in) svn path=/trunk/; revision=2626 --- externals/grill/vst/src/vstmaster.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'externals/grill/vst/src/vstmaster.cpp') diff --git a/externals/grill/vst/src/vstmaster.cpp b/externals/grill/vst/src/vstmaster.cpp index 863b57f9..108d8079 100644 --- a/externals/grill/vst/src/vstmaster.cpp +++ b/externals/grill/vst/src/vstmaster.cpp @@ -78,11 +78,12 @@ long VSTPlugin::Master(AEffect *effect, long opcode, long index, long value, voi switch (opcode) { case audioMasterAutomate: // 0 -#ifdef FLEXT_LOGGING - post("Automate index=%li value=%li opt=%f",index,value,opt); -#endif - // index, value given - //! \todo set effect parameter + if(th && th->feedback && th->responder) { + t_atom lst[2]; + SetInt(lst[0],index); + SetFloat(lst[1],opt); + th->responder->Respond(sym_param,2,lst); + } return 0; case audioMasterVersion: // 1 @@ -123,6 +124,7 @@ long VSTPlugin::Master(AEffect *effect, long opcode, long index, long value, voi if(th->transchg) { time.flags |= kVstTransportChanged; th->transchg = false; } if(th->playing) time.flags |= kVstTransportPlaying; if(th->looping) time.flags |= kVstTransportCycleActive; +// if(th->feedback) time.flags |= kVstAutomationWriting; time.sampleRate = th->samplerate; time.samplePos = th->samplepos; @@ -188,6 +190,10 @@ long VSTPlugin::Master(AEffect *effect, long opcode, long index, long value, voi // return thread state return flext::GetThreadId() == flext::GetSysThreadId()?2:1; + case audioMasterGetAutomationState: // 24 +// return th?(th->feedback?2:1):0; + return 0; + case audioMasterGetVendorString: // 32 strcpy((char*)ptr,vendor); return 0; -- cgit v1.2.1