Feature Request #718
extract TTValue from a TTValue array
|Assignee:||Tim Place||% Done:|
I would need to get the TTValue from an array containing
I think the best way is to show you my code (for readability I attached files):
In TTDeviceManager.cpp is a callback method (when en attr is modified) that has to extract needed args from the baton and sendMessage with.
The "ListenAnswer" method in TTDevice.cpp is then called and has to decompose the array.
I perfectly get the 2 first Symbols but the TTValue is lost.
As you can see i tried to get it by casting with (TTPtr*) but the TTValue is empty...
By adding a TTValue::get(TTUInt16, TTValue&) wouldn't that work better, or simply did I forget something ?
#1 Updated by Tim Place over 8 years ago
I think having a
seems very sensible. If you'd like to add it, please feel free to do so!
On a related note I've created a placeholder for a wiki page @ http://redmine.jamoma.org/projects/foundation/wiki about possibly re-writing the TTValue class. I'm not convinced it is doing things the best way. Maybe it's fine though? If you have any thoughts or ideas about this, please share them!
Hope you are well,
#2 Updated by Laurent Garnier over 8 years ago
Thanks for your answer.
Sensible you think ? Do you have an idea why ?
Oh yes I'm going to try add it because I've no solution to do it with existing get methods,
...maybe except refunding TTValue class :p
So you plan to do that ? I've no better idea to implement it for now but i'm going to think about it.
But the wiki page access is 404.
Have a nice day,