Open aykutkilic opened 12 years ago
Take a look at this test in ext.components: test.ex.ext.components.interfaceTypes
Does this do what you need?
By the way: I don't know if this helps, but it is also possible to rewire required ports at runtime. Maybe this is an alternative to using "pointers"?
The one in test passes interface as a parameter, What I need is passing the pointer to the function of the interface. This reduces the amount of code to write.
Out of the scope of this issue but, also it is not possible to refer to a runnable with the : operator.
I've pushed the not working version to aynth git repo.
In case I have a required c/s interface:
I would like to be able to refer to it as a function pointer for callback functions case like below:
where:
int32 jack_set_buffer_size_callback(jack_client_t* client, JackBufferSizeCallback bufsize_callback, void* arg);
and:typedef (jack_nframes_t, void*)⇒(int) as JackBufferSizeCallback;