set getchunk setchunk
This commit is contained in:
parent
9f67aa682a
commit
fc309c54c7
@ -226,6 +226,7 @@ pdvst::pdvst(audioMasterCallback audioMaster)
|
|||||||
// {JYG see pdvst::setProgram below for explanation
|
// {JYG see pdvst::setProgram below for explanation
|
||||||
timeFromStartup=GetTickCount();
|
timeFromStartup=GetTickCount();
|
||||||
// JYG }
|
// JYG }
|
||||||
|
programsAreChunks(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
pdvst::~pdvst()
|
pdvst::~pdvst()
|
||||||
@ -600,6 +601,18 @@ bool pdvst::getOutputProperties(VstInt32 index, VstPinProperties* properties)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VstInt32 pdvst::getChunk (void** data, bool isPreset)
|
||||||
|
{
|
||||||
|
strcpy ((char *)*data, "hello world");
|
||||||
|
return 11;
|
||||||
|
}
|
||||||
|
|
||||||
|
VstInt32 pdvst::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||||
|
{
|
||||||
|
//strcpy ((char *)data, "hello world");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
VstInt32 pdvst::canDo(char* text)
|
VstInt32 pdvst::canDo(char* text)
|
||||||
{
|
{
|
||||||
//if (isASynth)
|
//if (isASynth)
|
||||||
|
@ -105,6 +105,9 @@ public:
|
|||||||
LPTSTR displayString;//= new TCHAR[MAXSTRINGSIZE];
|
LPTSTR displayString;//= new TCHAR[MAXSTRINGSIZE];
|
||||||
|
|
||||||
HWND pdGui;
|
HWND pdGui;
|
||||||
|
|
||||||
|
virtual VstInt32 getChunk (void** data, bool isPreset);
|
||||||
|
virtual VstInt32 setChunk (void* data, VstInt32 byteSize, bool isPreset);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static int referenceCount;
|
static int referenceCount;
|
||||||
@ -170,6 +173,7 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
// JYG }
|
// JYG }
|
||||||
|
void programsAreChunks (bool) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user