[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: Determining the length of a file using aRts
From:       Charles Samuels <charles () kde ! org>
Date:       2002-09-16 2:47:08
[Download RAW message or body]

-----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@kde.org>
### <charles@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-----

_______________________________________________
kde-multimedia mailing list
kde-multimedia@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic