Determining the length of a file using aRts
charles at kde.org
Mon Sep 16 03:47:08 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Sunday 15 September 2002 07:43 pm, skrev Jason Wood:
> 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
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
-----END PGP SIGNATURE-----
More information about the kde-multimedia