esound r505 - trunk



Author: jmouette
Date: Tue Nov 18 19:48:46 2008
New Revision: 505
URL: http://svn.gnome.org/viewvc/esound?rev=505&view=rev

Log:
        * proto.c: (esd_proto_stream_recorder): replace the 1 s sleeps,
        which are here to work around a bug in the kernel, by 100 Âs
        ones, which will be enough.


Modified:
   trunk/ChangeLog
   trunk/proto.c

Modified: trunk/proto.c
==============================================================================
--- trunk/proto.c	(original)
+++ trunk/proto.c	Tue Nov 18 19:48:46 2008
@@ -337,14 +337,14 @@
 	/* let the device know we want to record */
 	ESDBG_TRACE( printf( "closing audio for a sec...\n" ); );
 	esd_audio_close();
-	sleep(1);
+	usleep(100);
 	esd_audio_format |= ESD_RECORD;
 	ESDBG_TRACE( printf( "reopening audio to record...\n" ); );
 	if (esd_audio_open() < 0) {
             /* Failed to record */
             free_player( recorder );
             esd_audio_format &= ~ESD_RECORD;
-            sleep(1);
+            usleep(100);
             /* If we fail here, we have a oops */
             esd_audio_open();
             return 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]