Sunday, 2017-04-30

*** trebmuh has quit IRC00:16
*** Yruama_Lairba has quit IRC02:16
*** JLye has quit IRC04:28
*** deva has joined #lv206:54
*** m4l3z has joined #lv207:53
*** trebmuh has joined #lv209:13
*** m4l3z has quit IRC10:56
*** rncbc has joined #lv211:16
*** m4l3z has joined #lv213:27
*** edogawa has joined #lv213:29
*** Yruama_Lairba has joined #lv214:14
*** digidog has joined #lv214:21
*** vktec has joined #lv215:38
vktecThe instantiate function here uses malloc, so shouldn't that mean that the plugin can't use lv2:hardRTCapable? http://lv2plug.in/book/#_amp_c15:39
ventosusvktec: 'run', 'connect_port' must not block to be rt-safe, 'instantiate', 'cleanup' are fine to block15:44
*** digidog has quit IRC15:44
vktecAhhh, okay15:45
vktecThat makes sense. Thanks15:45
ventosusyou can read up on the difference of 'instantiattion' vs 'audio' class function here: http://lv2plug.in/ns/lv2core/15:46
vktecThanks15:47
vktecAnother quick question: Why does the amp example's instantiate function malloc, then assign that to a pointer and then cast the pointer before returning? Why not just `return malloc(sizeof(Amp));`?15:50
vktecIs it just for documentation reasons, so you have a template in which you can set properties, etc. later on?15:51
vktec(Also, there's no need to cast malloc. It returns void *, which is compatible with all pointer types)15:52
ventosusvktec: you're right of course, maybe it is for documentation purposes, maybe it has been written by someone used to C++, don't know15:58
*** edogawa_ has joined #lv215:58
*** edogawa has quit IRC15:58
ventosusbut yes, usually you want to set some properties in your newly instantiated chunk of memory...15:59
vktecOkay15:59
vktecThanks for the help, ventosus15:59
ventosusy/w16:00
*** JLye has joined #lv216:14
*** yann-kaelig has joined #lv216:21
*** edogawa_ is now known as edogawa16:54
*** UgJkA has quit IRC18:17
*** ugjka_ has joined #lv218:17
*** ugjka_ is now known as ugjka18:19
*** ugjka is now known as UgJkA18:20
*** UgJkA is now known as ugjka18:20
*** ugjka is now known as UgJkA18:24
*** JLye has quit IRC19:15
vktec> The extension_data() function returns any extension data supported by the plugin.19:19
vktecWhat is "extension data"?19:19
ColaEuphoriavktec, http://lv2plug.in/doc/html/group__lv2core.html#ae907a7668d6579f099ac08c134b2e63419:22
ColaEuphoriait's stuff that the plugin communicates with the host for any additional functionality. iirc it's used in the UI extension19:23
ColaEuphoriaif your plugin is standard and not using a UI you can just return NULL19:23
ColaEuphoriaYeah, it's used in the UI extension. So if you look at "Simple Oscilloscope" in the LV2 book it's used to tell the host about your UI functions19:24
vktecI found that page already, but I still don't really understand. Is there a description of what an "extension" is? I'm still very new to the inner workings of LV219:24
vktecAh, I'll take a look19:24
ColaEuphoriaAn extension is just an arbitrary extension to the LV2 standard. It's used for communicating extra data to the host19:25
ventosusvktec: LV2 has been designed to be extendable, so pretty much anything but the core of LV2 is an extension19:25
vktecSo an extension has to be supported by both the host and the plugin?19:26
ColaEuphoriaBecause in the most basic form, the only thing a plugin tells the host about is the LV2_Descriptor, which may not be enough if you have extra stuff going on19:26
ColaEuphoriavktec, yes19:26
ventosusfor the DSP part of the plugin, extension_data is used to 'register' structures for e.g. the host to run a worker thread or save/restore arbitrary state for the plugin19:26
vktecOkay. I think I understand a little better now. Thanks for the clarification!19:27
ventosusvktec: the sampler plugin in the LV2 book uses a worker thread and 'registers' via 'extension_data'19:28
*** jmagnusj has quit IRC19:39
*** JLye has joined #lv220:11
*** deva has quit IRC20:24
*** yann-kaelig has quit IRC20:44
*** tytel has joined #lv220:52
*** m4l3z has quit IRC21:23
*** edogawa has quit IRC21:34
*** rncbc has quit IRC22:33

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!