Bass_VST and Delphi

Started by mamekid123,

mamekid123

Hello everyone,

I'm a hobbyist programmer, so please go easy on me. 😊
I'm currently trying to use Bass_VST with Delphi VCL app, and I'm running into a number of compiler errors.

The trouble begins as soon as I add the Bass_VST unit to the uses clause in my Audio unit, even before calling any of its functions, Delphi immediately throws several errors such as:

[dcc32 Error] bass_vst.pas(58): E2029 '..' expected but ';' found 
[dcc32 Error] bass_vst.pas(64): E2029 '(' expected but ';' found 
[dcc32 Error] bass_vst.pas(65): E2026 Constant expression expected 

I'm not sure if the issue is related to using a newer version of Delphi or if I'm simply missing something in the setup.

Ultimately, I would like to use Bass_VST to apply VST effects to audio files such as MP3s, FLACs, etc.

If anyone has successfully used Bass_VST in Delphi or has any tips or example code, I'd be very grateful!

Ian @ un4seen

It looks like a "const" is missing from the BASS_VST.PAS file. Please try adding that here:

const
{$IFDEF MSWINDOWS}
  bass_vstdll = 'bass_vst.dll';
{$ENDIF}

mamekid123

Quote from: Ian @ un4seenIt looks like a "const" is missing from the BASS_VST.PAS file. Please try adding that here:

const
{$IFDEF MSWINDOWS}
  bass_vstdll = 'bass_vst.dll';
{$ENDIF}


Thank you, I did get the unit working.

{$IFDEF MSWINDOWS}
bass_vstdll = 'bass_vst.dll';
{$ENDIF}

was present in the unit, but it needed to be moved above the type declarations to avoid compiler errors