From: James Courtier-D. <Ja...@su...> - 2001-09-01 23:36:16
|
> > I think it helped a lot when I made the change to the audio sync code. > > Long standing bugs in the metronom were discovered and finally fixed. > > metronom bugs? huh, I didn't notice that :> The metronom "unixscr_get_current" used to introduce errors into the timer. It would gettimeofday, and then set the this->cur_time to it, after working out this->cur_pts. The problem was that a rounding error (difference between accuracy of PTS and tv_usec) was introduced each time the this->cur_time was reset. The new method never resets this->cur_time, so the error is never introduced. The error is only introduced each time someone changes the speed of the stream. See the unixscr_set_speed and the new unixscr_set_pivot function. Cheers James |