commit bd9d66cb86f17747fea4a75e9cd2e9c1c830a684
parent d6ba364505a17e1759b7ee40486bf21fa0004f87
Author: paulnasca <paulnasca>
Date: Sun, 5 Dec 2004 10:45:47 +0000
*** empty log message ***
Diffstat:
4 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -740,4 +740,6 @@
- Corectata o eroare la egalizator care facea ca sa se aplice si la el par. D/W
29 Nov 2004 - Marita zona de valori la adaptive harmonics power din OscilGen
- Adaugata posibilitate de a post-procesa la adaptive harmonics(adica a adauga sau a amplifica anumite armonice)
+05 Dec 2004 - Corectata o eroare care facea ca functiile getChunk si setChunk sa fie supraincarcate in loc de suprascrise (dar nu am testat)
+ - Corectata o eroare care returna gresit la canDo in vst (netestat)
diff --git a/src/Output/VSTaudiooutput.C b/src/Output/VSTaudiooutput.C
@@ -37,8 +37,8 @@ void VSTSynth::processReplacing (float **inputs, float **outputs, long samplefra
};
long int VSTSynth::canDo(char *txt){
- if (strcmp(txt,"receiveVstEvents")!=0) return (1);
- if (strcmp(txt,"receiveVstMidiEvent")!=0) return (1);
+ if (strcmp(txt,"receiveVstEvents")==0) return (1);
+ if (strcmp(txt,"receiveVstMidiEvent")==0) return (1);
return(-1);
};
diff --git a/src/Output/VSTaudiooutput.h b/src/Output/VSTaudiooutput.h
@@ -43,8 +43,8 @@ class VSTSynth:public AudioEffectX{
virtual bool getProductString(char *txt);
virtual void resume();
- virtual long getChunk(void** data);
- virtual void setChunk(void *data,long size);
+ virtual long getChunk(void** data,bool isPreset=false);
+ virtual void setChunk(void *data,long size,bool isPreset=false);
MasterUI *ui;
int Pexitprogram;
diff --git a/src/main.C b/src/main.C
@@ -679,13 +679,13 @@ long VSTSynth::processEvents(VstEvents *events){
return(1);
};
-long VSTSynth::getChunk(void** data){
+long VSTSynth::getChunk(void** data,bool isPreset=false){
int size=0;
size=vmaster->getalldata((char **)data);
- return(size);
+ return((long)size);
};
-void VSTSynth::setChunk(void *data,long size){
+void VSTSynth::setChunk(void *data,long size,bool isPreset=false){
vmaster->putalldata((char*)data,size);
};
#endif