Author Topic: BASS_VST change priority  (Read 354 times)

holmes

  • Posts: 10
BASS_VST change priority
« on: 24 Mar '19 - 05:17 »
Hello, I spent the last couple of days incorporating BASS_VST into my app. I have many mixers that plug into the main mixer and I have created effect bins for the mixers. Everything works fine, but I see that there is not a set priority for BASS_VST. Is there way to change the vst priority without destroying and recreating the vst handles?
Thanks.

Code: [Select]

vstHandle = BassVst.BASS_VST_ChannelSetDSP(mixer[i],
                        "C:\\VstPlugins\\DelayEditGUI.dll", BASSVSTDsp.BASS_VST_DEFAULT, 1)

BassVst.BASS_VST_ChannelRemoveDSP(mixer[i], vstHandle);

vstHandle = BassVst.BASS_VST_ChannelSetDSP(mixer[i],
                        "C:\\VstPlugins\\DelayEditGUI.dll", BASSVSTDsp.BASS_VST_DEFAULT, 2)
« Last Edit: 24 Mar '19 - 05:43 by holmes »

Ian @ un4seen

  • Administrator
  • Posts: 21987
Re: BASS_VST change priority
« Reply #1 on: 25 Mar '19 - 12:37 »
Despite the name, the BASS_FXSetPriority function can also be used on DSP handles (not only FX handles). You can get a VST effect's DSP handle from BASS_VST_GetInfo.

holmes

  • Posts: 10
Re: BASS_VST change priority
« Reply #2 on: 25 Mar '19 - 18:50 »
Hey thanks Ian,

Code: [Select]
  BASS_VST_INFO vstInfos = new BASS_VST_INFO();
  if (BassVst.BASS_VST_GetInfo(vstHandle[i], vstInfos))
{
   Bass.BASS_FXSetPriority(vstInfos.dspHandle, newPriority);
}