commit b448a6a9da3a8d402b82e265405322b46545b1ee
parent 3812c13cd760a0e78c209ad5a0751cc46603b288
Author: paulnasca <paulnasca>
Date: Wed, 4 Aug 2004 14:45:18 +0000
*** empty log message ***
Diffstat:
4 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -677,4 +677,6 @@
02 Aug 2004 - Am pus din nou schimbarea schedule-ului la valoare corecta (l-am scos dintr-o greseala)
04 Aug 2004 - Am corectat niste erori la VST
- Merge VST, dar nu intotdeauna stabil (merge stabil pe vsthost.exe)
+ - Corectata eroare care facea ca sa nu mearga MIDI
+
diff --git a/src/Output/VSTaudiooutput.C b/src/Output/VSTaudiooutput.C
@@ -52,3 +52,8 @@ bool VSTSynth::getProductString(char *txt){
return(true);
};
+void VSTSynth::resume(){
+ wantEvents();
+};
+
+
diff --git a/src/Output/VSTaudiooutput.h b/src/Output/VSTaudiooutput.h
@@ -41,9 +41,12 @@ class VSTSynth:public AudioEffectX{
virtual long int canDo(char *txt);
virtual bool getVendorString(char *txt);
virtual bool getProductString(char *txt);
-
+ virtual void resume();
+
+
MasterUI *ui;
int Pexitprogram;
+
Master *vmaster;
pthread_t thr;
};
diff --git a/src/main.C b/src/main.C
@@ -553,7 +553,7 @@ VSTSynth::VSTSynth (audioMasterCallback audioMaster):AudioEffectX(audioMaster,1,
setUniqueID('zasfx');
canProcessReplacing();
// hasVu(false);
-// hasClip(false);
+// hasClip(false);
isSynth(true);
@@ -597,13 +597,15 @@ VSTSynth::~VSTSynth(){
long VSTSynth::processEvents(VstEvents *events){
for (int i=0;i<events->numEvents;i++){
+
+ //debug stuff
// FILE *a=fopen("events","a");
// fprintf(a,"%lx\n",events->events[i]->type);
// fflush(a);fclose(a);
if ((events->events[i])->type != kVstMidiType) continue;
VstMidiEvent *ev= (VstMidiEvent*) events->events[i];
- char *data=ev->midiData;
+ unsigned char *data= (unsigned char *)ev->midiData;
int status=data[0]/16;
int cmdchan=data[0]&0x0f;
int cntl;
@@ -624,6 +626,8 @@ long VSTSynth::processEvents(VstEvents *events){
pthread_mutex_unlock(&vmaster->mutex);
};
+
+return(1);
};
#endif