Fix an error that prevented it from reporting delay correctly.
This commit is contained in:
+1
-8
@@ -229,14 +229,7 @@ static void onmove_cb(void *arg, int delta) {
|
||||
|
||||
static int delay(long *_delay) {
|
||||
pthread_mutex_lock(&sndio_mutex);
|
||||
// debug(1,"Frames written %u, played %u.",written/framesize,played);
|
||||
|
||||
//if (played > (written / framesize)) {
|
||||
/* _delay is in frames */
|
||||
*_delay = (written / framesize) - played;
|
||||
// } else {
|
||||
// *_delay = 0;
|
||||
// }
|
||||
*_delay = (written / framesize) - played;
|
||||
pthread_mutex_unlock(&sndio_mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user