Sunday, 2017-12-03

*** Yruama_Lairba has quit IRC01:27
*** son0p has joined #lv201:36
*** son0p has quit IRC01:37
*** ssj71 has quit IRC02:03
*** deva has joined #lv208:41
*** NickSB2 has joined #lv210:59
*** m4l3z has joined #lv211:37
*** Yruama_Lairba has joined #lv215:11
*** Yruama_Lairba1 has joined #lv215:44
*** Yruama_Lairba has quit IRC15:55
*** Yruama_Lairba has joined #lv215:59
Yruama_Lairbahello,does somebody knows an IRC channel to ask help about C/C++ ?15:59
rgareusI don't really, but google + stackoverflow.com are usually very helpful16:00
rgareus#lad (linux audio dev) occasionally discusses implementation issues.16:01
Yruama_Lairbai prefer IRC channel because it faster, particularly for stupid beginner question16:03
Yruama_Lairbamaybe i ca ask you16:07
Yruama_Lairbai have a warning "initialization discards const qualifier from pointer type"16:10
Yruama_Lairbai'm trying to do "float* const delay_buffer = echo->delay_buffer;" where "echo->delay-buffer" is an array16:11
rgareusperhaps you mean    float const * delay_buffer;   not  float * const; ?16:14
rgareusconstant pointer to non-const data   vs  variable-pointer to constant data.16:14
rgareusperhaps  https://stackoverflow.com/questions/2316387/initialization-discards-qualifiers-from-pointer-target-type  helps?16:16
Yruama_Lairbai try this but i'm not convinced16:16
Yruama_Lairbawhat ??? it removes my error, but it's not coherent with what i lerned about const keyword o_O16:17
rgareusYruama_Lairba: hard to say without a bit more context. (is the method "const", what is "echo"..)16:19
Yruama_Lairbafor me, "const" is applied to keyword on the left of it16:19
rgareusyep16:20
rgareusperhaps "echo" itself is const?16:21
rgareusin which case   echo->delay_buffer  would also be const.16:23
rgareusand you can use       float * const * delay_buffer = echo->delay_buffer; // if you don't modify the pointer itself16:23
Yruama_Lairbaouch, you are right, echo is const, i didn't see16:24
rgareusvoid foo (Echo const * echo) { ... }16:25
rgareuswould explain this16:25
Yruama_Lairbai removed the "const" :p, no more warning16:28
*** NickSB2 has quit IRC16:40
*** NickSB2 has joined #lv216:57
Yruama_Lairbawow, just discovered something weird, i can't define a const from another const when compiling with gcc19:03
Yruama_Lairbaconst int a = 1; const int b = a; give me an error o_O19:04
Yruama_Lairbahow do you do to debug a plugin ?19:36
Yruama_Lairbai'm unable to run my plugin using jalv and gdb19:36
*** NickSB2 has quit IRC19:47
*** NickSB2 has joined #lv220:23
*** Yruama_Lairba has quit IRC20:46
*** Yruama_Lairba has joined #lv220:46
*** deva has quit IRC21:01
*** m4l3z has quit IRC21:24
ventosusYruama_Lairba: jackd -ddummy; jalv <URI>21:36
Yruama_Lairbaventosus, thank, but it wasn't really my question21:42
Yruama_Lairbamy question was how to use gdb to debug a plugin21:42
ventosusah, there's a word missing in the command :(21:43
ventosusjackd -ddummy; gdb --args jalv <URI>21:43
ventosusgdb and real time execution is a bad idea, so start jack with its non-realtime dummy backend21:44
ventosusand then run jalv in gdb21:44
Yruama_Lairbawow, i was usinf gdb jalv --args21:44
ventosuswell, you need to give jalv your plugin's URI in any case21:45
ventosusso it knows what plugin to load in the first place21:45
Yruama_Lairbain fact i solved my problems without using gdb.21:48
Yruama_Lairbai'm a very beginner with gdb, i need to learn everything21:49
*** NickSB2 has quit IRC22:13
*** NickSB2 has joined #lv222:13
*** NickSB2 has quit IRC23:04

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