summaryrefslogtreecommitdiffstats
path: root/polyp/pacat-simple.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-12 19:37:04 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-12 19:37:04 +0000
commitb772564a4eeab6d32ba9b7be9fb9beed1c12c999 (patch)
treef9a00e7c5d253cfdbfdc12edbfb7d31efce168f3 /polyp/pacat-simple.c
parentf05a4ac806d8d44ab1377ea2069abb1da7ab9d16 (diff)
update simple API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@193 fefdeb5f-60dc-0310-8127-8f9354f1896f
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 */