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

List:       kde-multimedia
Subject:    Re: mpeglib into KDE/CVS ?
From:       Martin Vogt <mvogt () rhrk ! uni-kl ! de>
Date:       2000-07-02 21:32:11
[Download RAW message or body]

> > 
> > on a currentTime call we calculate the new current time
> > out of the starttime and the played bytes.
> > 
> >   AudioTime* audioTime=outputStream->getAudioTime();
> >   float currentTime=audioTime->getTime()+(float)startTime;
> >   time.seconds=(long)(currentTime+startTime);
should be:

time.seconds=(long)(currentTime)

startTime added twice.


> >   time.ms=(long) (1000.0*(currentTime-(float)time.seconds));

this should be ok.

Martin

> >   return time;
_______________________________________________
Kde-multimedia mailing list
Kde-multimedia@master.kde.org
http://master.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