Mercurial > audlegacy
changeset 3680:6615978ca88c
Instead of waiting 10ms, wait half the time of the period buffer.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 01 Oct 2007 14:16:13 -0500 |
parents | eadc001add02 |
children | 7865f8395437 |
files | src/audacious/output.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/output.c Mon Oct 01 13:42:37 2007 -0500 +++ b/src/audacious/output.c Mon Oct 01 14:16:13 2007 -0500 @@ -492,7 +492,9 @@ if (ip_data.stop) /* has a stop been requested? */ return; /* yes, so finish */ - g_usleep(10000); /* else sleep for retry */ + /* else sleep for retry */ + g_print("sleeping for %d msec\n", (cfg.output_buffer_size / 2) * 1000); + g_usleep((cfg.output_buffer_size / 2) * 1000); } if (ip_data.stop)