Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main(audioMaster: TAudioMasterCallbackFunc): PAEffect; cdecl; export;
- begin
- // get vst version
- if audioMaster(nil, audioMasterVersion, 0, 0, nil, 0) = 0 then
- begin
- Result := nil;
- Exit; // Old version
- end;
- effect := AExampleEffect.Create(audioMaster, 0, 0);
- if not Assigned(effect) then
- begin
- Result := nil;
- Exit;
- end;
- if oome then
- begin
- Effect.Free;
- Result := nil;
- Exit;
- end;
- Result := effect.getAeffect;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement