summaryrefslogtreecommitdiffstats
path: root/polyp/pacat-simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/pacat-simple.c')
-rw-r--r--polyp/pacat-simple.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/polyp/pacat-simple.c b/polyp/pacat-simple.c
index f5b696a8..956728fb 100644
--- a/polyp/pacat-simple.c
+++ b/polyp/pacat-simple.c
@@ -56,6 +56,17 @@ int main(int argc, char*argv[]) {
uint8_t buf[BUFSIZE];
ssize_t r;
+#if 0
+ pa_usec_t latency;
+
+ if ((latency = pa_simple_get_playback_latency(s, &error)) == (pa_usec_t) -1) {
+ fprintf(stderr, __FILE__": pa_simple_get_playback_latency() failed: %s\n", pa_strerror(error));
+ goto finish;
+ }
+
+ fprintf(stderr, "%0.0f usec \r", (float)latency);
+#endif
+
/* Read some data ... */
if ((r = read(STDIN_FILENO, buf, sizeof(buf))) <= 0) {
if (r == 0) /* EOF */