audacious-plugins/audacious-plugins-2.2-jack-0.118.0.patch

40 lines
1.2 KiB
Diff

diff -Nru audacious-plugins-2.2.orig/src/jack/jack.c audacious-plugins-2.2/src/jack/jack.c
--- audacious-plugins-2.2.orig/src/jack/jack.c 2009-11-22 23:49:53.000000000 +0100
+++ audacious-plugins-2.2/src/jack/jack.c 2010-01-16 06:58:24.000000000 +0100
@@ -235,35 +235,6 @@
}
-/* Return the amount of data that can be written to the device */
-static gint jack_free(void)
-{
- unsigned long return_val = JACK_GetBytesFreeSpace(driver);
- unsigned long tmp;
-
- /* adjust for frequency differences, otherwise xmms could send us */
- /* as much data as we have free, then we go to convert this to */
- /* the output frequency and won't have enough space, so adjust */
- /* by the ratio of the two */
- if(effect.frequency != output.frequency)
- {
- tmp = return_val;
- return_val = (return_val * effect.frequency) / output.frequency;
- TRACE("adjusting from %ld to %ld free bytes to compensate for frequency differences\n", tmp, return_val);
- }
-
- if(return_val > G_MAXINT)
- {
- TRACE("Warning: return_val > G_MAXINT\n");
- return_val = G_MAXINT;
- }
-
- TRACE("free space of %ld bytes\n", return_val);
-
- return return_val;
-}
-
-
/* Close the device */
static void jack_close(void)
{