> or better
Huh, to not loose the last position in the tlabel ?
Yes, but it is done just after button is released by the audio thread.
But ok, it is better ;-)
Now the test:
Perfect, smooth, direct, no delay, no "scratch".
So, this works perfectly:
- audio thread event to TSlider:
if
On Monday 02 October 2017 16:23:20 Martin Schreiber wrote:
>
> Use tslider.scrollbar.onafterevent and
> "
> procedure tmainfo.aftereventev(const sender: tcustomscrollbar;
>const akind: scrolleventty; const avalue: Real);
> begin
> if akind = sbe_thumbposition then begin
> :=
On Monday 02 October 2017 15:44:32 fredvs wrote:
> > >Sorry, I still do not catch ;-(
> >
> > And I don^t understand what you want to achieve
>
> OK, we are both then. :-).
>
> Imagine that a song is playing.
>
> So the audio thread sent, at each reading of the buffer, some data to the
> main
> >Sorry, I still do not catch ;-(
> And I don^t understand what you want to achieve
OK, we are both then. :-).
Imagine that a song is playing.
So the audio thread sent, at each reading of the buffer, some data to the
main thread, like position in the sound.
Then there is a synchro: the
On Sunday 01 October 2017 17:45:33 fredvs wrote:
> > The purpose of "accept" is to reject a value. Set it to false if you
> > don't
>
> accept the value.
>
> Sorry, I still do not catch ;-(
>
And I don^t understand what you want to achieve. :-)
Please explain the goal.
Martin
> The purpose of "accept" is to reject a value. Set it to false if you don't
accept the value.
Sorry, I still do not catch ;-(
Concretely, what must I change in code ?
What Tslider event?
And ainfo.eventkind = ek_buttonrelease, what Tslider event gives ainfo data?
Thanks.
Fre;D
--
Sent
On Sunday 01 October 2017 12:26:19 fredvs wrote:
>
> I want to assign a event only when the button is released.
>
> I did try with this tslider.onsetvalue:
>
> procedure tsongplayer2fo.changepos(const Sender: TObject; var avalue:
> realty; var accept: boolean);
> begin
> if accept then
>
7 matches
Mail list logo