# HG changeset patch # User Matti Hamalainen # Date 1192304502 -10800 # Node ID ac3207cb728ae5b91be5df9eea7cda2f8a636e44 # Parent 997c71881e5b20aa9e0de5f859a875251b42e852 Use g_usleep() diff -r 997c71881e5b -r ac3207cb728a src/cdaudio-ng/cdaudio-ng.c --- a/src/cdaudio-ng/cdaudio-ng.c Sat Oct 13 22:41:28 2007 +0300 +++ b/src/cdaudio-ng/cdaudio-ng.c Sat Oct 13 22:41:42 2007 +0300 @@ -900,7 +900,7 @@ gint bytecount = CDIO_CD_FRAMESIZE_RAW <= remainingbytes ? CDIO_CD_FRAMESIZE_RAW : remainingbytes; /* wait until the output buffer has enough room */ while (pdae_params->pplayback->playing && pdae_params->pplayback->output->buffer_free() < bytecount && pdae_params->seektime == -1) - usleep(1000); + g_usleep(1000); /* play the sound :) */ if (pdae_params->pplayback->playing && pdae_params->seektime == -1) pdae_params->pplayback->pass_audio(pdae_params->pplayback, FMT_S16_LE, 2,