summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-13 20:16:27 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-13 20:16:27 +0200
commit7a6d5e2a410208539ec42efca38eed1f2372b357 (patch)
tree0c144c1232a9c8515f68e02a1a81097694091424 /streamer.c
parentccaf593e039b0a19aa3cf4601ae283fe438224cd (diff)
fixed several critical drag and drop bugs
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);
+}