Administrator
|
Hello Jon.
>How do I remove the initial dialog asking about library paths, please?
Not sure to understand.
Are you talking about the initial dialog of the SimplePlayer demo?
If so, it was done by design, so people can use custom compiled-libraries.
But if you dont want it, take a look at all consolexxx demos, they dont have dialogs.
>I tried revise the code so that clicking on the progress bar (rather than dragging it) would move to a different part of the audio clip, but I guess I don't understand how to do that correctly. I tried the following (I have no idea what the "tag" does, obviously: I was flailing):
Sorry but I dont know well how LCL-Lazarus works maybe you may ask at Lazarus-forum how progress bar works.
But the principle is this: get the ratio of the position of the progress bar, for example ratio = 0.333 ( end position = 1 ).
And to set the position of the song, use:
uos_InputSeek(theplayer, InputIndex, ratio * uos_InputLength(PlayerIndex, InputIndex))
|