diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-17 23:45:54 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-17 23:45:54 +0000 |
commit | de453f905b7c2fb6de9f31e95c7e0a4d78d58b36 (patch) | |
tree | 25c0bffc7b0c2917fdfdfb776fb45d5779409ac2 | |
parent | d2da493b7b7a188a9747337ea1137ab26fe4453e (diff) |
remove latency hack
git-svn-id: file:///home/lennart/svn/public/xmms-pulse/trunk@23 ef929aba-56e2-0310-84e0-b7573d389508
-rw-r--r-- | src/plugin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugin.c b/src/plugin.c index 5312c15..5138442 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -224,6 +224,8 @@ static void latency_callback(struct pa_stream *s, const struct pa_latency_info* if (i) { current_request->latency = i->buffer_usec + i->sink_usec + i->transport_usec; current_request->value = i->playing; + +/* g_message("%0.0f latency", (double) current_request->latency); */ } finish_request(!!i); } @@ -506,7 +508,7 @@ static int polyp_get_written_time(void) { static int polyp_get_output_time(void) { int t, ms; struct request r; - + r.message = MESSAGE_LATENCY; execute_request(&r); @@ -516,7 +518,7 @@ static int polyp_get_output_time(void) { t = polyp_get_written_time(); ms = (int) r.latency/1000; - return ms > t ? 0 : t-ms+100; + return ms > t ? 0 : t-ms; } static void polyp_flush(int time) { |