COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 03-27-2017, 07:24 AM   #1
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default creating more than one preset doesn't work (anymore) (SOLVED)

edit:
I'm stupid, see below.
I leave this here in case someone also stumbles over it.


=== original post ===

This is a continue from my post here (to not spam Y's thread):

http://forum.cockos.com/showpost.php...0&postcount=31

To verfiy this issue, I've started over from scratch, downloaded latest WDL-OL (master branch), latest VST SDK (3.6.7), set up everything and build the IPlugEffect.

Only changes to source I did are (in the constructor):



As can be seen, only first (default) preset is contained in the plugin.

When I set a breakpoint at MakePreset() I observe this in IPlugBase.cpp (notice the error in the output):



So I tend to think there's a bug somewhere (I don't fully understand how this works though), can anyone shed some light ?

Help greatly appreciated, thanks.

Last edited by nofish; 03-27-2017 at 12:09 PM.
nofish is offline   Reply With Quote
Old 03-27-2017, 11:01 AM   #2
random_id
Human being with feelings
 
random_id's Avatar
 
Join Date: May 2012
Location: PA, USA
Posts: 356
Default

What if you change the kNumPrograms in line 6 to something greater than 1? This should determine the total number of presets.
__________________
Website: LVC-Audio
random_id is offline   Reply With Quote
Old 03-27-2017, 12:02 PM   #3
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Well, it works.

*slaps forehead* uh feels a little embarrassing now, but I haven't done anything with WDL/iPlug for some time so I totally missed this variable.

Seriously, thanks so much.
nofish is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.