mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
minor cleanups
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1028 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9f59b4e1cd
commit
6eabab6e2b
1 changed files with 2 additions and 2 deletions
|
|
@ -136,12 +136,12 @@ int main(int argc, char *argv[]) {
|
||||||
pa_gettimeofday(&now);
|
pa_gettimeofday(&now);
|
||||||
|
|
||||||
rtc = pa_timeval_diff(&now, &start);
|
rtc = pa_timeval_diff(&now, &start);
|
||||||
printf("%i\t%llu\t%llu\t%llu\t%llu\t%u\n", k, rtc, t, rtc-old_rtc, t-old_t, changed*2000000);
|
printf("%i\t%llu\t%llu\t%llu\t%llu\t%u\n", k, rtc, t, rtc-old_rtc, t-old_t, changed);
|
||||||
old_t = t;
|
old_t = t;
|
||||||
old_rtc = rtc;
|
old_rtc = rtc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Spin loop, eerks but normal usleep is just to badly grained */
|
/* Spin loop, ugly but normal usleep() is just too badly grained */
|
||||||
|
|
||||||
tv = now;
|
tv = now;
|
||||||
while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000)
|
while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue