Friday, 2017-08-04

*** artfwo has quit IRC00:18
*** arguy has joined #lv201:21
*** arguy has quit IRC02:32
*** arguy has joined #lv202:51
*** http_GK1wmSU has joined #lv203:05
*** http_GK1wmSU has left #lv203:08
*** arguy has quit IRC03:29
*** dsheeler has quit IRC07:01
*** dsheeler has joined #lv207:08
*** m4l3z has joined #lv207:24
*** m4l3z has quit IRC07:54
*** m4l3z has joined #lv208:51
*** falktx has quit IRC08:54
*** falktx has joined #lv208:54
*** m4l3z has quit IRC09:30
*** oofus_lt has joined #lv210:28
*** Yruama_Lairba has joined #lv210:35
*** oofus_lt has quit IRC12:35
*** arguy has joined #lv212:49
johmuefalktx: How would I make use of lv2 inline display from a DISTRHO plugin?12:52
falktxyou don't12:54
falktxinline display does graphics stuff in DSP side, goes against the vision of DPF12:55
*** m4l3z has joined #lv213:09
*** artfwo has joined #lv213:17
rgareusfalktx: it doesn't do graphics stuff in the DSP side.   render_inline() is called from a GUI thread13:21
rgareushowever, the host does pass the  LV2_Handle instance to it. implicit instance access.13:22
falktxI would have to add some graphics stuff in the DSP side. for my plugins that's a no13:26
rgareusand since DPF has various targets, this would only apply to LV213:28
rgareusfalktx: but don't you do that for VST already? that's always mixed DSP + GUI.13:28
rgareusAudioUnit doesn't have this separation, either13:29
falktxrgareus: I do that, but only because the target requires it13:34
falktxsame for jack standalones13:34
falktxbut UI and DSP are clearly separated13:34
falktxmaybe I can add a macro for it, but then provide only ARGB buffer13:35
*** arguy has quit IRC13:55
johmueThanks. So I have to decide between inline display and targeting LV2 and VST with the same plugin.14:02
*** arguy has joined #lv214:41
*** rncbc has joined #lv214:43
*** oofus_lt has joined #lv215:27
*** arguy has quit IRC15:48
*** oofus_lt has quit IRC15:48
*** arguy has joined #lv215:58
*** rgareus has quit IRC16:38
*** rgareus has joined #lv216:38
*** m4l3z has quit IRC17:02
*** arguy has quit IRC17:40
*** arguy has joined #lv217:43
*** arguy has quit IRC17:58
*** arguy has joined #lv218:20
*** grejppi has quit IRC18:25
*** grejppi has joined #lv218:25
*** deva has joined #lv218:26
*** edo_pc has joined #lv219:28
*** deva has quit IRC19:36
arguyHey everybody! I was wondering what is your opinion in using macros for lv2 plugins. Do you see them as bad code?19:47
ssj71IMHO if it makes it more readable, its fine19:51
ssj71its preprocessor stuff, so it really shouldn't affect the resulting binary19:51
*** Yruama_Lairba1 has joined #lv220:08
*** Yruama_Lairba has quit IRC20:10
rgareusarguy: it's mostly a style question.   Macros can help to abstract parts and reduce code duplication.20:15
arguyrgareus, ssj71: right and are you ok with gnu c code standart? I'm trying to improve noise repellent codebase and making it more readable. Reading the gnu standart I might change some things20:50
*** NickSB2 has joined #lv220:51
ssj71sounds fine with me. I'm not exactly a great example of coding style myself. I just try to make it readable, and that can mean many different styles20:52
ssj71or I mean, its possible to have readable code independent of style20:53
arguyssj71: ok so i'm doing fine then. Thanks!20:56
rgareusas for standard, noise-repellent is C,  ANSI C99 is pretty sane and makes things portable. (also gcc's default)20:56
arguyrgareus: it's more a question of coding style. C is perfect for what i want bit to note what you guys that are experienced think of this21:01
arguyI mean interesting to note what you guys think21:02
ssj71you'll find that there's as many opinions as there are developers :)21:03
arguyI have already experienced that but it's good to learn from the best ;)21:05
rgareusnot directly relevant but there's  https://ardour.org/styleguide.html   I learned to like #4  (really helps to avoid mistakes)21:07
rgareusfor plugin code  #16  "Use const wherever possible" is also a good idea21:07
rgareus#15 "variables have names like a_pleasant_name"  is really nice when you compare it to e.g. fons' code  which reads like  a = b2 * c - d; and you have no idea what b,c,d area.21:09
ssj71true21:10
rgareusnrepel.c already uses variable names like that, so that's great21:10
ssj71I should probably be more verbose in my variable naming21:10
rgareusit's a compromise..  concise naming is hard.21:11
arguyYeah i tried to be concise from the beginning but it's hard to track everything21:13
*** rncbc has quit IRC21:52
*** arguy has quit IRC22:00
*** arguy has joined #lv222:22

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