--===============0186205423== Content-Type: multipart/signed; boundary="nextPart1309141.ih8FCFdCDy"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1309141.ih8FCFdCDy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, first you should go to api.kde.org instead of developer.kde.org. The=20 documentation you were looking at was "Generated on Fri Oct 6 00:29:29 2006" Regarding your question: the current API is not meant for any exact timings= =20 (which is also impossible with xine at least). But if close to 3000ms/8000m= s=20 is good enough for you you can do the following: m_media =3D new MediaObject; AudioOutput *out =3D new AudioOutput(Phonon::MusicCategory, m_media); Phonon::createPath(m_media, out); m_media->setCurrentSource(...); m_media->pause(); m_media->seek(3000); m_media->play(); m_media->setTickInterval(100); connect(m_media, SIGNAL(tick(qint64)), SLOT(tick(qint64))); =2E =2E =2E void tick(qint64 position) { if (position > 7900) { m_media->stop(); } } On Friday 05 October 2007, Erik wrote: > I need to play a part of a sound file, for example from 3000 ms to 8000 > ms. I looked at the documentation at > [http://developer.kde.org/documentation/library/cvs-api/kdelibs-apidocs/p= ho >non/html/classPhonon_1_1AudioPlayer.html] without finding what I was looki= ng > for. There is "void seek (qint64 ms)", so I suppose I could call > "seek(3000); play()" but that does not tell it to stop at 8000 ms. =2D-=20 ________________________________________________________ Matthias Kretz (Germany) <>< http://Vir.homelinux.org/ MatthiasKretz@gmx.net, kretz@kde.org, Matthias.Kretz@urz.uni-heidelberg.de --nextPart1309141.ih8FCFdCDy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHBiJayg4WnCj6OIoRAl8WAKC9mfLPjNHqXu8UyljSIKmHbfa2RACg0rOe yV8jEan4/EGbqWuZ+xkJVqA= =ilnS -----END PGP SIGNATURE----- --nextPart1309141.ih8FCFdCDy-- --===============0186205423== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kde-multimedia mailing list kde-multimedia@kde.org https://mail.kde.org/mailman/listinfo/kde-multimedia --===============0186205423==--