Determining the length of a file using aRts

Charles Samuels charles at kde.org
Mon Sep 16 03:47:08 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sunday 15 September 2002 07:43 pm, skrev Jason Wood:
> Hi,
>
> My application needs to be able to determine the length of an audio/movie
> clip as quickly as possible, but I am having trouble determining the best
> way to do this.
>
> The only method I have using aRts at present is to open a play object, wait
> for it to start playing, test it in various ways to discover when the
> overallTime() function is returning a valid value, and then to stop and
> close the playobject again. This is not a method I can use in my
> application.

You don't need to wait for it to start playing.  Just until after you open it.

- -- 
Charles Samuels <charles at kde.org>
### <charles at altair.dhs.org> is obsolete, please update your addressbook.
 "The world is my circuit board, and I am the electron."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9hUYuWS4Pv66UcxkRAojAAKDN2DusGnckBbuBpGa3N0t3NulgJQCg28Mx
1kQOpLhO6wXRd/mVL1vEfvs=
=O55/
-----END PGP SIGNATURE-----



More information about the kde-multimedia mailing list