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 01-24-2018, 10:10 PM   #1
Guod3
Human being with feelings
 
Guod3's Avatar
 
Join Date: Jan 2008
Posts: 506
Default When does Serialize/UnserializeState get called?

I have debug messages printed in each of these methods and I see that apart from several times during the DAW loading phase, they don't seem to get called after this.
I would have expected to see SerializeState to be called when a project file of the DAW is saved and UnserializeState when a project file is loaded?
I have the name of a device driver stored and restored in a string as per recent threads on this topic. So it seems the string gets set in the gui but never gets serialized?
Guod3 is offline   Reply With Quote
Old 01-25-2018, 09:07 PM   #2
Guod3
Human being with feelings
 
Guod3's Avatar
 
Join Date: Jan 2008
Posts: 506
Default

Just tested IPlugChunks (as VST2 plugin, which is what I'm on) and predictably, SerializeState is called when I save the project in Reaper.
Question is now, why is it not called with my plugin when I save the project?
Guod3 is offline   Reply With Quote
Old 01-26-2018, 03:20 AM   #3
Guod3
Human being with feelings
 
Guod3's Avatar
 
Join Date: Jan 2008
Posts: 506
Default Solved!

Had
#define PLUG_DOES_STATE_CHUNKS 0 (in resource.h)
but with
#define PLUG_DOES_STATE_CHUNKS 1
SerializeState gets called when the project is saved in DAW as expected!
Guod3 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 01:49 AM.


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