Hello,
everything works with the VST, but...
I display the VST. I modify the value of a potentiometer. The value of "param1" or "param2" remains the same.
Even if I modify another potentiometer.
I think I do not receive the parameter number or its value.
How to do it?
What does "param2" and "param2" transmit?
Thank you
hVSTProc = New VSTPROC(AddressOf VSTproc)
BassVst.BASS_VST_SetCallback(hVSThandle, hVSTProc, IntPtr.Zero)
Private Function VSTproc(hVSThandle As Integer, action As BASSVSTAction, param1 As Integer, param2 As Integer, user As IntPtr) As Integer
Select Case action
Case BASSVSTAction.BASS_VST_PARAM_CHANGED
Me.LabelVST.Text = param2.ToString
Case BASSVSTAction.BASS_VST_EDITOR_RESIZED
' the editor window requests a new size,
' maybe we should resize the window the editor is embedded in?
' the new width/height can be found in param1/param2
Case BASSVSTAction.BASS_VST_AUDIO_MASTER
' this is only for people familiar with the VST SDK,
' param1 is a pointer to a BASS_VST_AUDIO_MASTER_PARAM structure
' which contains all information needed
End Select
Return 0
End Function