error VST

Started by Salvo, 4 Nov '23 - 10:18

Salvo

This simple error code compiles to 64 bits.
While it works at 32 BIT.
Why ?

    if BASS_Init(0, 44100, 0,0, nil) then
    begin
      ch := BASS_StreamCreate(44100, 2,BASS_SAMPLE_FLOAT, nil, nil);
      dsp := BASS_VST_ChannelSetDSP(ch, PChar(FileName), BASS_UNICODE, 0);
      BASS_StreamFree(ch);  ---->>>> ERROR
    end;
 

Chris

do you have 64Bit Libs ?
because on 64Bit Win you will need the 64 Bit Libs (e.g x64 directories of bass;bass_vst ZipFiles)

by the way you can try this to check if the error comes from bass or Bass_Vst
 if BASS_Init(0, 44100, 0,0, nil) then
    begin
      ch := BASS_StreamCreate(44100, 2,BASS_SAMPLE_FLOAT, nil, nil);
      if ch <> 0 then
      begin
         dsp := BASS_VST_ChannelSetDSP(ch, PChar(FileName), BASS_UNICODE, 0);
         if dsp = 0 then
           ShowMessage(' VST-Error Nr  ,'+Bass_ErrorGetCode().tostring);
          if ch <> 0 then
            BASS_StreamFree(ch);
      end
      else
      ShowMessage(' Bass-Error Nr  ,'+Bass_ErrorGetCode().tostring);
    end;

Quick Reply

Warning: this topic has not been posted in for at least 365 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview