0
0

Okay I load a plug in.
[code:hjebe8vf]
result = FMOD_System_LoadPlugin(system, "C:\Program Files\Steinberg\VstPlugins\Final Master.dll", FMOD_PLUGINTYPE_DSP, 1)
ERRCHECK (result)

result = FMOD_System_CreateDSPByIndex(system, 1, vstEffect)
ERRCHECK (result)
result = FMOD_System_AddDSP(system, vstEffect)
ERRCHECK (result)
result = FMOD_DSP_SetActive(vstEffect, True)
[/code:hjebe8vf]
I know that this loads the plug in, because if I use one that came with Cubase SX (ie Reverb A.dll) I get a dialog box with an error (Sorry This PlugIn Requires Cubase SX). Fair Enuff (although Why can’t FMOD open an SX plugin?).

Now, why am I not hearing this plug-in when I play a stream (it is set to FMOD_SOFTWARE). What am I missing in thtat code to route sound through this plugin?

  • You must to post comments
0
0

any ideas? hint, anything!.. If it’s not an fmod problem, and a VB problem tell me what to research.

Ah maybe, Multi threading?

  • You must to post comments
0
0

Awesome Chenpo!… Thx.. If you’d like the example code I wrote, I can PM you a link.

  • You must to post comments
0
0

Hi Jay,

Apologies for the delays in resolving this.

Thanks for the repro. I’ve found the problem and there will be a fix for it in our next release which should be next Thursday.

  • You must to post comments
0
0

jayDC – these guys on these forums have been helpful before with my VB questions. It seems throughout your posts you have answered your own questions. The issue with the VU meters not updating could be that the PAINT event may not be getting triggered. This would make sense that as you change a control within the form a PAINT event is called. Anyways you could try to subclass the window handle you pass in order to manually fire off the PAINT event? At the root of all of this may be the VST itself. And as far as FMOD not being able to open CuBase VST plugins – I thought these plugins where written in such a way they could check where they were called from and look for the hardware dongle for CuBase. This may be an issue with those VST plugins and not FMOD. This is why when you purchase plugins with CuBase you have to update your dongle.

  • You must to post comments
0
0

Get a chance to take a look, chenpo?

  • You must to post comments
0
0

Great!.. Thanks, this should help a bunch of people.

  • You must to post comments
0
0

cxvjeff-
The cubase plugin shipped with cubase, they are not the ones you purchase after, which I believe you need the dongle update for.

I’m not worried about them working, I want to catch the error before the awful dialog box appears. That way you don’t see the dialog fire off 100 times while scanning the VST plugins directory to populate a list of available plugins.

I’m going to look into the PAINT event. thx!!!

  • You must to post comments
0
0

still nothing on this?

  • You must to post comments
0
0

can’t really find any info on that paint event subclasing you suggested.

  • You must to post comments
0
0

Hi,

Apologies for not taking a look at this last week. I hade some high priority tasks and wasn’t able to get to it.

Is it just this particular plugin that doesn’t load? What sort of problem are you having when trying to load the plugin?

I was able to load the plugin in my own testapp. It did take some head scratching though. I think the plugin has some type of anti-hacking security in it. I wasn’t able to load the plugin if I was running my app through the debugger (it would simply just close the whole app whenever the plugin was queried). However, it loaded okay outside of the ide/debugger.

  • You must to post comments
0
0

had an idea.
[code:3jkgqqow]
result = FMOD_DSP_GetNumParameters(vstEffect, numparam)
ERRCHECK (result)
[/code:3jkgqqow]
Using the plugin final master.dll numparam = 45
okay cool the plugin has 45 parameters. Maybe there is one that refreshes the plugin.
So I use this bit of code to get the parameter info
[code:3jkgqqow]
result = FMOD_DSP_GetParameterInfo(vstEffect, 1, name, Lbl, des, desLen, min, max)
ERRCHECK (result)
[/code:3jkgqqow]
Now a bigger problem arises I get en error "Run Time Error ‘458’. Variable uses Automation type not supported in Visual Basic".

EDIT: Wierd this error only happens when running it, if you compile it no errors, but the data never changes.

I think there some sort of bug, or that FMOD really doesn’t support VST in VB even though it says it does. Could someone look into this? I can provide the sample I’m working with.

  • You must to post comments
0
0

it’s not just with this plugin. I just used that plugin as an example.

The only plugins that update the screen are the plugin created with a program called synthmaker. Steinberg, TC works, Waldorf, Yamaha, Native Instrument Plugins load, but the screen does not update unless you are manipulating the controls. CVJeff and myself have not been able to find a way to force this screen update.

  • You must to post comments
0
0

jayDC – if you PM me I’ll send my email address. I’d like to look at your code as well as the VST you’re using to determine where the issue lies.

  • You must to post comments
0
0

anything?.

  • You must to post comments
0
0

Cool. I’ll pm you as soon as I pack up the code :)

  • You must to post comments
0
0

any word yet? :(

  • You must to post comments
0
0

This seems to work.

[code:3mzcuce4]
result = FMOD_System_LoadPlugin(system, "C:\Program Files\Steinberg\VstPlugins\Final Master.dll", FMOD_PLUGINTYPE_DSP, vstEffect) ‘Load plugin
ERRCHECK (result)
‘Create Plugin and add it to System
result = FMOD_System_CreateDSPByType(system, FMOD_DSP_TYPE_VSTPLUGIN, vstEffect)
ERRCHECK (result)
result = FMOD_System_AddDSP(system, vstEffect)
ERRCHECK (result)
result = FMOD_DSP_SetActive(vstEffect, True)
ERRCHECK (result)
‘Check to see if the Plugin is Active
result = FMOD_DSP_GetActive(vstEffect, Act)
ERRCHECK (result)
If Act = 1 Then
Label1.Caption = "True"
Else
Label1.Caption = "False"
End If
[/code:3mzcuce4]
Cool. That plugin loads and effects the system.

Still not sure why a plugin that shipped with SX would not work with FMOD.

Would there be a way to catch that "Sorry This PlugIn Requires Cubase SX" error, before it’s displayed?

That way I can code a function that checks which plugins will not be populated into the list of available plugins.

  • You must to post comments
0
0

Still nothing on this.. Any FMOD guys going to jump in?

  • You must to post comments
0
0

Chenpo,

care to share your test app?

  • You must to post comments
0
0

Okay by adding this bit of code:

[code:1v6wxbna]
result = FMOD_DSP_ShowConfigDialog(vstEffect, Hwnd, True)
ERRCHECK (result)
[/code:1v6wxbna]

it will show the VST Effects Config Dialog. IT looks really nice sitting there in the form. Major Problem is that the graphic do not update unless I’m touching one of the sliders or buttons (MOUSE DOWN). If I leave it alone the VU meters do not update. They are blank. How can I fix this.

EDIT: Also noticed that when you are holding mouse down on a control of a VST, the Clock from the play stream example stops.

So while the VST is graphically updating the other forms stop updating.

  • You must to post comments
Showing 1 - 20 of 28 results
Your Answer

Please first to submit.