[MPlayer-G2-dev] Darwin port
Arpi
arpi at thot.banki.hu
Sat May 10 01:58:41 CEST 2003
Hi,
> --- ./osdep/timer-macosx.c Wed Feb 19 18:22:02 2003
> +++ ../g2-pre20/osdep/timer-macosx.c Wed May 7 19:50:08 2003
> @@ -4,13 +4,22 @@
> * (C) 2003 Dan Christiansen
> *
> * Released into the public domain.
> + *
> + * Changelog:
> + * 07/05/2003 sleep_accurate() merged from timer-lx.c
> + * updated to mplayer-g2
> + *
> */
I guess (hope) darwin isn't as lame as linux is about usleep(), ie it can do
at least 1ms accurate delay (linux's usleep() is +-20ms "accurate" only),
at least afaik freebsd can.
So, for non-linux systems it should be imho:
float sleep_accurate(float x){
usec_sleep(x*1000000.0);
return 0;
}
could you test if it's accurate enough (A-V: 0.000 cosntant for mpeg files),
and teh delay number in the () after V: is constant (usually 0.040), too?
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-G2-dev
mailing list