Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-14 Thread Ru Vuott
> Problem may be here: > "sizeof (jack_default_audio_sample_t) * nframes);" > "memcpy(outp, inp, SizeOf(gb.Float) * nframes)" > > Is it really float, instead of single (in C float and double)? > > Jussi Hello Jussi, I tried with "gb.Single" and all of other type. nothing: Error 11 (S

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-14 Thread Jussi Lahtinen
Problem may be here: "sizeof (jack_default_audio_sample_t) * nframes);" "memcpy(outp, inp, SizeOf(gb.Float) * nframes)" Is it really float, instead of single (in C float and double)? Jussi On Mon, Jul 15, 2013 at 12:38 AM, Tobias Boege wrote: > On Sun, 14 Jul 2013, Ru Vuott wrote: > > Hello

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-14 Thread Tobias Boege
On Sun, 14 Jul 2013, Ru Vuott wrote: > Hello Jussi, > > > > but C code "jack_client_t *client;" creates pointer and allocation for the > > structure. > > But if I exclude the "callback" function, all the remaining works normally. > However I can try with allocation > > > > Also you did

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-14 Thread Ru Vuott
> Oops, what I was thinking... of > course the allocation is inside of the > library, not in pointer declaration... > So I think that is correct. > Jussi Ok Bye vuottt On Sun, Jul 14, 2013 at 5:41 PM, Jussi Lahtinen wrote: > Not sure this is thread issue, and anyway if it's the

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-14 Thread Ru Vuott
Hello Jussi, > but C code "jack_client_t *client;" creates pointer and allocation for the > structure. But if I exclude the "callback" function, all the remaining works normally. However I can try with allocation > Also you didn't mention how your code fails. I would expect SGN11. Yes

[Gambas-user] Two problems painting richtext

2013-07-14 Thread Tobias Boege
Hi, I want to paint richtext which is: a) fading in a RadialGradient (black towards transparency) and b) centered in a rectangle. I can achieve a) when using Paint.RichText() followed by Paint.Fill(). But with this code, the text is not centered (although I specified Align.Center as a parameter

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-14 Thread Jussi Lahtinen
Oops, what I was thinking... of course the allocation is inside of the library, not in pointer declaration... So I think that is correct. Jussi On Sun, Jul 14, 2013 at 5:41 PM, Jussi Lahtinen wrote: > Not sure this is thread issue, and anyway if it's the problem I think > jackd doesn't have to

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-14 Thread Jussi Lahtinen
Not sure this is thread issue, and anyway if it's the problem I think jackd doesn't have to be ran as realtime thread (but maybe you need it that way?). I don't think these are equal: "Private client As Pointer" and "jack_client_t *client;". Gambas code "Something As Pointer" creates void pointer