changeset 1768:def887eae029 trunk

[svn] - remove some old debugging notices - reset audio output if fmt does not match the fmt we already negotiated (for instance, LE->BE conversion requested)
author nenolod
date Mon, 02 Oct 2006 01:56:53 -0700
parents ea802d0c9ac4
children 8a926dec916f
files ChangeLog audacious/output.c
diffstat 2 files changed, 9 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Oct 02 01:52:12 2006 -0700
+++ b/ChangeLog	Mon Oct 02 01:56:53 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-02 08:52:12 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2471]
+  - remove an artifact of the bmp -> audacious transition
+  
+  trunk/rename.sh |    7 -------
+  1 file changed, 7 deletions(-)
+
+
 2006-10-02 08:46:59 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2469]
   - always zero-out stack variables, as stack memory may be dirty on x86 and friends
--- a/audacious/output.c	Mon Oct 02 01:52:12 2006 -0700
+++ b/audacious/output.c	Mon Oct 02 01:56:53 2006 -0700
@@ -92,7 +92,6 @@
 #if 0
     playing = bmp_playback_get_playing();
     if (playing) {
-
         /* FIXME: we do all on our own here */
         
         guint min = 0, sec = 0, params, time, pos;
@@ -233,7 +232,7 @@
 
     /* Is our output port already open? */
     if ((op_state.rate != 0 && op_state.nch != 0) &&
-	(op_state.rate == rate && op_state.nch == nch))
+	(op_state.rate == rate && op_state.nch == nch && op_state.fmt == fmt))
     {
 	/* Yes, and it's the correct sampling rate. Reset the counter and go. */
 	op->flush(0);
@@ -282,15 +281,6 @@
     if (op == NULL)
         return;
 
-#if 0
-    g_print("Requirements to close audio output have been met:\n"
-	"ip_data.stop = %d\n"
-	"playlist_get_position_nolock() = %d\n"
-	"playlist_get_length_nolock() - 1 = %d\n",
-	ip_data.stop, playlist_get_position_nolock(),
-	playlist_get_length_nolock() - 1);
-#endif
-
     op->close_audio();
 
     /* Reset the op_state. */