[Clam-devel] AudioFileMemoryLoader patch
David García Garzón
dgarcia at iua.upf.edu
Sun Jun 15 11:10:37 PDT 2008
On Diumenge 15 Juny 2008, Pau Arumí Albó wrote:
> El dg 15 de 06 de 2008 a les 18:14 +0200, en/na Pawel Bartkiewicz va
>
> escriure:
> > However, I have no
> > idea how to test the InControl without a special widget. Maybe the
> > position should be updated only when the InControl's value change and
> > otherwise it would play like a normal MonoAudioFileReader?
>
> That is the idea.
> When checking for updated values remember that equality of float vars is
> tricky -- should be abs(a-b)>small_delta
The duration of a sample can give you a good order of magnitude for the delta.
No need of an special (feedback) widget. Whenever the slider change it should
jump. Or just change the number on the editbox and press return.
Thinking on controls we should cope with the following problem. Given a
different file, the slider or the progress bar should have a different range.
One solution, convenient for the short term, would be sending or receiving a
percent besides of time. We can keep the time control that will be needed for
time dependant processings. Francisco work on Typed Controls will give us
more options on what information to send. We could send a "33s of 240s" pair
(TimeProgress?).
In summary, let's add a second control to send the percent until we get typed
controls.
David.
--
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080615/35938a1a/attachment-0001.sig>
More information about the clam-devel
mailing list