Welcome to %s forums

BrainModular Users Forum

Login Register

sdk chunk system

Create your own modules in C++
Post Reply
sm_jamieson
Member
Posts: 551
Contact:

Unread post by sm_jamieson » 18 Feb 2018, 10:38

I have not used the chunk system before. I have overloaded onGetChunkLen, onGetChunk and onSetChunk, and onGetChunkLen returns the size in bytes. On closing the onGetChunk is called, and I save the workspace. But for some reason when reloading, onSetChunk is never called.
Is there a trick to get it working ?
Simon.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Feb 2018, 14:22

mm strange, not that i remember. didn't trace but i get datas backs so its working here. maybe redrop a new module in fresh empty workspace when they have been implemented

sm_jamieson
Member
Posts: 551
Contact:

Unread post by sm_jamieson » 20 Feb 2018, 11:40

After dropping it again on an empty patch, it seems to be working. However I really need the chunk before Usine queries the parameters so I'm working on another way of saving the module config ...
I have put in a suggestion for a fast chunk access controlled by a flag.

Post Reply

Who is online

Users browsing this forum: No registered users and 60 guests