[pulseaudio-commits] r1955 - in /branches/lennart/src/pulsecore: rtclock.c rtclock.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Oct 27 05:58:25 PDT 2007


Author: lennart
Date: Sat Oct 27 14:58:24 2007
New Revision: 1955

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1955&root=pulseaudio&view=rev
Log:
add pa_rtclock_usec() API

Modified:
    branches/lennart/src/pulsecore/rtclock.c
    branches/lennart/src/pulsecore/rtclock.h

Modified: branches/lennart/src/pulsecore/rtclock.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/rtclock.c?rev=1955&root=pulseaudio&r1=1954&r2=1955&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/rtclock.c (original)
+++ branches/lennart/src/pulsecore/rtclock.c Sat Oct 27 14:58:24 2007
@@ -93,3 +93,9 @@
 
 #endif
 }
+
+pa_usec_t pa_rtclock_usec(void) {
+    struct timeval tv;
+
+    return pa_timeval_load(pa_rtclock_get(&tv));
+}

Modified: branches/lennart/src/pulsecore/rtclock.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/rtclock.h?rev=1955&root=pulseaudio&r1=1954&r2=1955&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/rtclock.h (original)
+++ branches/lennart/src/pulsecore/rtclock.h Sat Oct 27 14:58:24 2007
@@ -31,6 +31,9 @@
 /* Something like pulse/timeval.h but based on CLOCK_MONOTONIC */
 
 struct timeval *pa_rtclock_get(struct timeval *ts);
+
+pa_usec_t pa_rtclock_usec(void);
+
 pa_usec_t pa_rtclock_age(const struct timeval *tv);
 pa_bool_t pa_rtclock_hrtimer(void);
 




More information about the pulseaudio-commits mailing list