changeset 354:dc6cb365ace4

Always use dynamic audio buffer
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 01 Nov 2005 02:25:03 +0000
parents e39e83c3d3c1
children 26079ab52fc3
files src/xmms-sid.c
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmms-sid.c	Mon Oct 31 22:47:01 2005 +0000
+++ b/src/xmms-sid.c	Tue Nov 01 02:25:03 2005 +0000
@@ -305,11 +305,7 @@
  gboolean audioOpen = FALSE, doPlay = FALSE, isFound = FALSE;
  gboolean playedTune[XS_STIL_MAXENTRY + 1];
  gint audioGot, songLength, i;
-#ifdef XS_BUF_DYNAMIC
  gchar *audioBuffer = NULL, *oversampleBuffer = NULL;
-#else
- gchar audioBuffer[XS_AUDIOBUF_SIZE], oversampleBuffer[(XS_AUDIOBUF_SIZE * XS_MAX_OVERSAMPLE)];
-#endif
 
  (void)argPointer;
  
@@ -321,10 +317,8 @@
  XS_MUTEX_UNLOCK(xs_status);
 
  xs_memset(&playedTune, 0, sizeof(playedTune));
- audioBuffer = oversampleBuffer = NULL;
 
  /* Allocate audio buffer */
-#ifdef XS_BUF_DYNAMIC
  audioBuffer = (gchar *) g_malloc(XS_AUDIOBUF_SIZE);
  if (audioBuffer == NULL)
  	{
@@ -341,7 +335,6 @@
 		goto xs_err_exit;
  		}
 	}
-#endif
 
  /*
   * Main player loop: while not stopped, loop here - play subtunes
@@ -537,10 +530,8 @@
 	xs_plugin_ip.output->close_audio();
 	}
 
-#ifdef XS_BUF_DYNAMIC
  g_free(audioBuffer);
  g_free(oversampleBuffer);
-#endif
 
  /* Set playing status to false (stopped), thus when
   * XMMS next calls xs_get_time(), it can return appropriate