summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/streamer.c b/streamer.c
index 3cfb5ce4..3739ee02 100644
--- a/streamer.c
+++ b/streamer.c
@@ -108,7 +108,7 @@ streamer_thread (uintptr_t ctx) {
streambuffer_fill += bytesread;
}
streamer_unlock ();
- usleep (3000);
+ usleep (2000);
//printf ("fill: %d \r", streambuffer_fill);
}
@@ -290,3 +290,8 @@ streamer_read (char *bytes, int size) {
streamer_unlock ();
return sz;
}
+
+int
+streamer_get_fill_level (void) {
+ return streambuffer_fill / (STREAM_BUFFER_SIZE / 100);
+}