SNEX C++ Template template arguments
-
Yes I meant to write "template" twice....
I am trying to create a new scriptnode node. I created a new C++ file by selecting
File>Create C++ third party node template
in HISE, and have opened the template.I looked at a few of the built-in nodes for reference, and watched this video, both of which helped my general understanding of what is going on.
I noticed however in both the built in code and the video there are calls to a function
toChannelData(int channel)
on input of templated typeProcessData&
. Are we supposed to assume that the data being taken as a template argument is of a certain type with particular methods available? If so, what type is being assumed both in the video and the examples that we can calltoChannelData(ch)
on? Is there documentation somewhere that explains all of this.Thanks in advance!
-
Actually I think I may have found the answer in
hi_dsp_library/snex_basics/snex_ProcessDataTypes