From aa1f83aac624a2a9beee21de0e9608e43a6a94a5 Mon Sep 17 00:00:00 2001 From: Torben Hohn Date: Tue, 31 Mar 2009 17:46:19 +0200 Subject: [PATCH] report ringbuffer readspace as latency. --- flashsupport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flashsupport.c b/flashsupport.c index b6f84e7..a88bf1c 100644 --- a/flashsupport.c +++ b/flashsupport.c @@ -1229,7 +1229,8 @@ static int FPX_SoundOutput_Close(void *ptr) { static int FPX_SoundOutput_Latency(void *ptr) { // heh ? jack has no latency :P - return 0; + struct jack_output_data *p = ptr; + return jack_ringbuffer_read_space( p->buffer ) / 4; } #endif -- 2.11.4.GIT