[PlanetCCRMA] Re: jack_fst - Library requirements
Mark Knecht
markknecht at gmail.com
Mon Nov 29 12:21:27 PST 2004
On Tue, 30 Nov 2004 06:20:00 +1100, Shayne O'Connor
<forums at machinehasnoagenda.com> wrote:
> hi mark
>
> just want to confirm - i comment out all of this:
>
>
>
>
> > struct VstFileType
> > {
> > if (_name)
> > strcpy (name, _name);
> > if (_macType)
> > strcpy (macType, _macType);
> > if (_dosType)
> > strcpy (dosType, _dosType);
> > if (_unixType)
> > strcpy (unixType, _unixType);
> > if (_mimeType1)
> > strcpy (mimeType1, _mimeType1);
> > if (_mimeType2)
> > strcpy (mimeType2, _mimeType2);
> > }
> >
> > char name[128];
> > char macType[8];
> > char dosType[8];
> > char unixType[8];
> > char mimeType1[128];
> > char mimeType2[128];
> > };
>
> is that right?
>
> shayne
>
>
Yes, that's how I did it:
enum VstModifierKey
{
MODIFIER_SHIFT = 1<<0, // Shift
MODIFIER_ALTERNATE = 1<<1, // Alt
MODIFIER_COMMAND = 1<<2, // Control on Mac
MODIFIER_CONTROL = 1<<3 // Ctrl on PC, Apple on Mac
};
//---Used by audioMasterOpenFileSelector-----------
/* if (_name)
struct VstFileType
{
VstFileType (char* _name, char *_macType, char *_dosType, char
*_unixType = 0, char *_mimeType1 = 0, char *_mimeType2 = 0)
{
strcpy (name, _name);
if (_macType)
strcpy (macType, _macType);
if (_dosType)
strcpy (dosType, _dosType);
if (_unixType)
strcpy (unixType, _unixType);
if (_mimeType1)
strcpy (mimeType1, _mimeType1);
if (_mimeType2)
strcpy (mimeType2, _mimeType2);
}
char name[128];
char macType[8];
char dosType[8];
char unixType[8];
char mimeType1[128];
char mimeType2[128];
};
*/
struct VstFileSelect
{
long command; // see enum kVstFileLoad....
long type; // see enum kVstFileType...
long macCreator; // optional: 0 = no creator
long nbFileTypes; // nb of fileTypes to used
struct VstFileType *fileTypes; // list of fileTypes
More information about the PlanetCCRMA
mailing list