aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vst/src/vsthost.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-03-25 04:55:11 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-03-25 04:55:11 +0000
commitb3cfaffbe0124254f5da70857f6c1cec59184897 (patch)
tree0be6278fc661be17a1fe0ca65238adaebecafcaa /externals/grill/vst/src/vsthost.h
parent7b21867fc1b9af84cd0f097b71f3bf456c9b5afd (diff)
small OSX things
experimenting a bit.... clean handling of plugin deletion (potentially open editor window etc.) svn path=/trunk/; revision=2646
Diffstat (limited to 'externals/grill/vst/src/vsthost.h')
-rw-r--r--externals/grill/vst/src/vsthost.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/externals/grill/vst/src/vsthost.h b/externals/grill/vst/src/vsthost.h
index 0b055d40..00225b62 100644
--- a/externals/grill/vst/src/vsthost.h
+++ b/externals/grill/vst/src/vsthost.h
@@ -216,7 +216,7 @@ public:
void AddPitchBend(int value)
{
- AddMIDI(MIDI_PITCHBEND+midichannel,((value>>7)&127),(value&127));
+ AddMIDI(MIDI_PITCHBEND+midichannel,(value&127),((value>>7)&127));
}
void AddAftertouch(int value)
@@ -291,21 +291,23 @@ private:
//////////////////////////////////////////////////////////////////////////////
public:
- void processReplacing(float **inputs,float **outputs,long sampleframes )
+ bool processReplacing(float **inputs,float **outputs,long sampleframes )
{
FLEXT_ASSERT(effect);
- effect->processReplacing(effect,inputs,outputs,sampleframes);
+ effect->processReplacing(effect,inputs,outputs,sampleframes);
if(playing) updatepos(sampleframes);
+ return true;
}
- void process(float **inputs,float **outputs,long sampleframes )
+ bool process(float **inputs,float **outputs,long sampleframes )
{
FLEXT_ASSERT(effect);
- effect->process(effect,inputs,outputs,sampleframes);
- if(playing) updatepos(sampleframes);
+ effect->process(effect,inputs,outputs,sampleframes);
+ return true;
}
private:
+
void updatepos(long frames);
//////////////////////////////////////////////////////////////////////////////