From: João Paulo Rechi Vita Date: Fri, 15 Aug 2008 21:13:25 +0000 (-0300) Subject: Try to improve time estimation X-Git-Tag: 1.0_branch~2617 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c10b106d8836a18de3a4d7986dafdb426557669;p=profile%2Fivi%2Fpulseaudio.git Try to improve time estimation --- diff --git a/src/modules/module-bt-device.c b/src/modules/module-bt-device.c index 4c2a92f..1a231df 100644 --- a/src/modules/module-bt-device.c +++ b/src/modules/module-bt-device.c @@ -642,13 +642,13 @@ filled_up: * This is the best time to estimate the playback position of the server */ n = u->offset; -//#ifdef SIOCOUTQ -// { -// int l; -// if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0) -// n -= l; -// } -//#endif +#ifdef SIOCOUTQ + { + int l; + if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0) + n -= l; + } +#endif usec = pa_bytes_to_usec(n, &u->sink->sample_spec); if (usec > u->latency)