changeset 4230:b3e82a1eb129

Experimental patch to fix pulseaudio deficencies by sleeping 10000us.
author William Pitcock <nenolod@atheme.org>
date Fri, 01 Feb 2008 13:15:05 -0600
parents c399e0fa9791
children 254ec9932b37
files src/audacious/output.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/output.c	Mon Jan 28 00:33:23 2008 +0200
+++ b/src/audacious/output.c	Fri Feb 01 13:15:05 2008 -0600
@@ -490,7 +490,7 @@
             GTimeVal pb_abs_time;
 
             g_get_current_time(&pb_abs_time);
-            g_time_val_add(&pb_abs_time, (cfg.output_buffer_size / 2) * 1000);
+            g_time_val_add(&pb_abs_time, 10000);
 
             if (going && !*going)              /* thread stopped? */
                 return;                        /* so finish */
@@ -499,14 +499,9 @@
                 return;                        /* yes, so finish */
 
             /* else sleep for retry */
-#ifndef GDK_WINDOWING_QUARTZ
             g_mutex_lock(playback->pb_change_mutex);
             g_cond_timed_wait(playback->pb_change_cond, playback->pb_change_mutex, &pb_abs_time);
             g_mutex_unlock(playback->pb_change_mutex);
-#else
-            /* Darwin threading sucks. */
-            g_usleep(10000);
-#endif
         }
 
         if (ip_data.stop)