*** artfwo has quit IRC | 01:30 | |
*** diqidoq_ has joined #lv2 | 03:23 | |
*** diqidoq has quit IRC | 03:23 | |
ventosus | yes, I see that. I just have to make extra rounds because there's no ui thread in my host | 06:01 |
---|---|---|
ventosus | and no connection between worker thread and ui process | 06:01 |
ventosus | only connectinos I have are: worker <=> dsp <=> ui | 06:02 |
ventosus | whereby worker and dsp are in a process and ui in a separate one | 06:02 |
ventosus | ARGB data needs to be messaged via atoms to the ui process | 06:03 |
ventosus | so it's not really 'available' on the ui side in my case, I have to actively get it in any case... | 06:04 |
*** sigma6 has joined #lv2 | 07:39 | |
*** oofus has joined #lv2 | 09:26 | |
*** artfwo has joined #lv2 | 10:19 | |
*** artfwo has quit IRC | 10:29 | |
*** yann-kaelig has joined #lv2 | 10:30 | |
*** artfwo has joined #lv2 | 11:42 | |
*** arguy has joined #lv2 | 12:36 | |
arguy | Hello everybody! Reading recent discussions of self containment of lv2 plugins, is it safe to use fftw? I didn't had any problems with mine in any distro so far but I hadn't tried in other platforms | 12:38 |
arguy | What do you guys think? | 12:39 |
rgareus | arguy: it is safe with fftw 3.3.5 or later | 13:01 |
rgareus | which does have a thread-safe planner | 13:01 |
arguy | rgareus: I didn't know that. Thanks! I guess I'm fine then. | 13:02 |
rgareus | arguy: but it's also relatively easy to just statically link against fftw | 13:04 |
arguy | rgareus: I should do that instead of hoping users to have an updated library. Man I got to work my compiling I'm such a noob | 13:13 |
rgareus | arguy: depends how you distribute the plugin. | 13:19 |
rgareus | arguy: ardour binaries do include 3.3.5 (and ardour also calls fftwf_make_planner_thread_safe() to set things up) | 13:20 |
arguy | rgareus: I'm reading thread safety fftw wiki right now. I should uses that indeed | 13:30 |
rgareus | arguy: add 2 plugins to an ardour session which use fftw. save, quit, re-open session. When re-loading the session, the two plugins may call fftw_plan_... concurrently. | 13:33 |
rgareus | it's a race condition. happens sometimes (depending on number of CPU cores, buffersize/fftw-plan size etc) | 13:33 |
rgareus | recent fftw should be safe. ie a lock is taken only one plan at a time. | 13:34 |
arguy | rgareus: well then I will add that requirement for compilation (fftw >= 3.3.5) | 13:36 |
rgareus | if it's two instances of your own plugin, you can fix this (add a lock yourself a static global in your plugin). but if you mix plugins. no dice. | 13:36 |
rgareus | https://github.com/FFTW/fftw3/issues/16 has the full story | 13:36 |
arguy | rgareus: alright thanks for the info | 13:37 |
rgareus | https://github.com/x42/meters.lv2/commit/de1a53151b85 is what I've used in the past (before fftw-3.3.4) | 13:38 |
rgareus | that also shows a script I've used to compile a custom static version of fftw. | 13:39 |
arguy | rgareus: thanks Robin | 13:42 |
rgareus | arguy: no problem | 13:44 |
rgareus | it's a pity that things have to be complex sometimes. | 13:44 |
rgareus | yet OTOH we're lucky: FAUST & JUCE (DPF) do abstract a whole lot of it. | 13:46 |
*** edo_pc has joined #lv2 | 13:51 | |
arguy | rgareus: I took a look at dpf once It seemed the way to go | 13:53 |
arguy | rgareus: the some devs are recommending avtk | 13:53 |
arguy | *then | 13:54 |
arguy | I get dizzy quickly with this kind of stuff | 13:54 |
arguy | Since I'm not a real experienced programmer It's specially hard for me but I guess It's a matter of keeping doing it | 13:56 |
*** Yruama_Lairba has joined #lv2 | 13:59 | |
rgareus | arguy: yep. | 14:01 |
rgareus | as Confucius once said: When I am told, I forget. When I see, I remember. When I do, I understand. | 14:01 |
*** lucianodato has joined #lv2 | 14:02 | |
*** arguy has quit IRC | 14:04 | |
*** arguy has joined #lv2 | 14:07 | |
*** lucianodato has quit IRC | 14:11 | |
*** lucianodato has joined #lv2 | 14:21 | |
*** arguy has quit IRC | 14:22 | |
lucianodato | rgareus: :) | 14:40 |
*** lucianodato has quit IRC | 14:57 | |
*** arguy has joined #lv2 | 14:57 | |
*** lucianodato has joined #lv2 | 15:33 | |
*** arguy has quit IRC | 15:35 | |
*** lucianodato has quit IRC | 15:42 | |
*** arguy has joined #lv2 | 15:42 | |
*** lucianodato has joined #lv2 | 15:46 | |
*** arguy has quit IRC | 15:49 | |
*** diqidoq_ has quit IRC | 15:59 | |
*** lucianodato has quit IRC | 16:04 | |
*** arguy has joined #lv2 | 16:04 | |
*** deva has joined #lv2 | 16:07 | |
*** diqidoq has joined #lv2 | 16:15 | |
*** sigma6 has quit IRC | 16:16 | |
*** arguy has quit IRC | 16:28 | |
*** arguy has joined #lv2 | 16:28 | |
*** arguy has quit IRC | 16:33 | |
*** HarryHaaren has joined #lv2 | 17:34 | |
*** arguy has joined #lv2 | 18:19 | |
*** deva has quit IRC | 19:43 | |
*** HarryHaaren has quit IRC | 19:47 | |
*** stever_ has joined #lv2 | 20:17 | |
*** stever has quit IRC | 20:24 | |
*** stever_ is now known as stever | 20:24 | |
arguy | Rgareus: I'm not quite understanding if in recent versions of fftw is still necessary to wrap plans around mutex locking or not. Or is it only necessary to call fftw_make_planner_thread_safe()? | 20:30 |
arguy | Is there one of your more simple plugins updated so I could use your code as reference? | 20:31 |
*** edo_pc has quit IRC | 20:44 | |
*** yann-kaelig has quit IRC | 21:03 | |
ssj71 | arguy: IIUC recent versions don't need any mutex or special treatment. The plan function is thread safe already | 21:10 |
arguy | ssj71: ahh nice to know that. Then I will recommend users to compile against newer versions | 21:11 |
rgareus | what ssj71 said | 21:24 |
arguy | rgareus ssj71: thanks! | 21:25 |
*** ColaEuphoria has joined #lv2 | 22:03 | |
*** rncbc has quit IRC | 22:04 | |
*** rncbc has joined #lv2 | 22:04 | |
ColaEuphoria | I'm starting to think spending $20/yr on a fancy toplevel domain probably isn't worth it :/ | 22:07 |
ColaEuphoria | not that it's too expensive or anything | 22:07 |
ColaEuphoria | but I'm far less likely to renew it if it falls during a period where i don't feel like i particularly have much money... | 22:07 |
*** rncbc has quit IRC | 22:11 | |
*** arguy has quit IRC | 22:19 | |
*** arguy has joined #lv2 | 22:27 | |
*** NickSB has joined #lv2 | 22:56 | |
*** Yruama_Lairba has quit IRC | 23:30 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!