diff options
author | waker <wakeroid@gmail.com> | 2010-12-14 21:59:48 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-12-14 21:59:48 +0100 |
commit | 0e2f01f377362d85ec02cc4ce2b1d9eb67fd1845 (patch) | |
tree | 964ae8cd0857dc7733942ff97347891a0774b48e /streamer.c | |
parent | 9db617504e762c01a99fbfa7d66876501e353a67 (diff) |
better streamer timing tracing
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1107,12 +1107,12 @@ streamer_thread (void *ctx) { gettimeofday (&tm2, NULL); int ms = (tm2.tv_sec*1000+tm2.tv_usec/1000) - (tm1.tv_sec*1000+tm1.tv_usec/1000); + //trace (stderr, "slept %dms (alloc=%dms, bytespersec=%d, chan=%d, blocksize=%d), fill: %d/%d\n", alloc_time-ms, alloc_time, bytes_in_one_second, output->fmt.channels, blocksize, streambuffer_fill, STREAM_BUFFER_SIZE); alloc_time -= ms; if (!streamer_buffering && alloc_time > 0) { usleep (alloc_time * 1000); // usleep (1000); } -// trace ("fill: %d/%d\n", streambuffer_fill, STREAM_BUFFER_SIZE); } // stop streaming song |