changeset 259:88b38e2414a1 trunk

[svn] First attempt at porting the crossfade plugin; patches from bug #363 applied, GThreadified, includes fixed. Will most probably not compile as of yet.
author chainsaw
date Sun, 04 Dec 2005 15:58:55 -0800
parents f4a57eac3ba3
children 4b1c9d1a469b
files Plugins/Output/crossfade/Makefile.am Plugins/Output/crossfade/callbacks.c Plugins/Output/crossfade/callbacks.h Plugins/Output/crossfade/convert.c Plugins/Output/crossfade/convert.h Plugins/Output/crossfade/crossfade.c Plugins/Output/crossfade/crossfade.h Plugins/Output/crossfade/debug.c Plugins/Output/crossfade/debug.h Plugins/Output/crossfade/effect.c Plugins/Output/crossfade/effect.h Plugins/Output/crossfade/export.sym Plugins/Output/crossfade/fft.c Plugins/Output/crossfade/format.c Plugins/Output/crossfade/format.h Plugins/Output/crossfade/interface-2.0.glade Plugins/Output/crossfade/interface-2.0.gladep Plugins/Output/crossfade/interface.c Plugins/Output/crossfade/interface.glade Plugins/Output/crossfade/interface.h Plugins/Output/crossfade/monitor.c Plugins/Output/crossfade/monitor.h Plugins/Output/crossfade/rate.c Plugins/Output/crossfade/rate.h Plugins/Output/crossfade/support.c Plugins/Output/crossfade/support.h Plugins/Output/crossfade/timing.c Plugins/Output/crossfade/timing.h Plugins/Output/crossfade/volume.c Plugins/Output/crossfade/volume.h
diffstat 30 files changed, 20350 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/Makefile.am	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,49 @@
+lib_LTLIBRARIES = libcrossfade.la
+
+gtk_sources = \
+	interface-2.0.c \
+	interface-2.0.h \
+	support-2.0.c \
+	support-2.0.h \
+	callbacks.c \
+	callbacks.h
+interface-2.0.c:
+	glade-2 -w interface-2.0.glade
+
+if HAVE_LIBFFTW_COND
+fftw_sources = fft.c fft.h
+fftw_libs = -lfftw -lrfftw
+endif
+
+if HAVE_LIBSAMPLERATE_COND
+samplerate_libs = -lsamplerate
+endif
+
+libdir = $(plugindir)/$(OUTPUT_PLUGIN_DIR)
+
+libcrossfade = @PLUGIN_LDFLAGS@
+libcrossfade_la_LIBADD  = $(fftw_libs) $(samplerate_libs)
+libcrossfade_la_SOURCES = \
+	crossfade.c \
+	crossfade.h \
+	configure.c \
+	configure.h \
+	convert.c \
+	convert.h \
+	debug.c \
+	debug.h \
+	effect.c \
+	effect.h \
+	format.c \
+	format.h \
+	monitor.c \
+	monitor.h \
+	rate.c \
+	rate.h \
+	timing.c \
+	timing.h \
+	volume.c \
+	volume.h \
+	$(gtk_sources) \
+	$(fftw_sources)
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/callbacks.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,37 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include "crossfade.h"
+
+#include "callbacks.h"
+#include "interface.h"
+#include "support.h"
+
+void on_help_close_button_clicked(GtkButton *button, gpointer user_data)
+{
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/callbacks.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,95 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifndef _CALLBACKS_H_
+#define _CALLBACKS_H_
+
+#include <gtk/gtk.h>
+
+/* configure.c*/
+void on_config_ok_clicked(GtkButton *button, gpointer user_data);
+void on_config_apply_clicked(GtkButton *button, gpointer user_data);
+void on_output_oss_radio_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_output_plugin_radio_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_output_none_radio_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_config_adevice_alt_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_config_mdevice_alt_check_toggled(GtkToggleButton *togglebutton,gpointer user_data);
+void on_osshwb_maxbuf_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_config_crossfade_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_config_mixopt_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_output_plugin_configure_button_clicked (GtkButton *button, gpointer user_data);
+void on_output_plugin_about_button_clicked(GtkButton *button, gpointer user_data);
+void on_op_throttle_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_op_maxblock_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_op_maxblock_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_op_forcereopen_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_ep_configure_button_clicked(GtkButton *button, gpointer user_data);
+void on_ep_about_button_clicked(GtkButton *button, gpointer user_data);
+void on_ep_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_volnorm_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xftfp_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xftfp_length_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_xftffi_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xftffi_length_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_xftffi_volume_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_pause_length_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_simple_length_spin_changed(GtkEditable *editable,gpointer user_data);
+void on_xf_buffer_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_xf_autobuf_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_fadeout_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xfofs_none_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xfofs_none_radiobutton_clicked(GtkButton *button, gpointer user_data);
+void on_xfofs_lockout_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xfofs_lockout_radiobutton_clicked(GtkButton *button, gpointer user_data);
+void on_xfofs_lockin_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xfofs_lockin_radiobutton_clicked(GtkButton *button, gpointer user_data);
+void on_xfofs_custom_radiobutton_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_xfofs_custom_radiobutton_clicked(GtkButton *button, gpointer user_data);
+void on_xfofs_custom_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_fadein_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_fadein_lock_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_lgap_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_tgap_enable_check_toggled(GtkToggleButton *togglebutton, gpointer user_data); 
+void on_tgap_lock_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_fadeout_length_spin_changed (GtkEditable *editable, gpointer user_data);
+void on_fadeout_volume_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_fadein_length_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_fadein_volume_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_lgap_length_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_lgap_level_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_tgap_length_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_tgap_level_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_gapkiller_default_button_clicked(GtkButton *button, gpointer user_data);
+void on_moth_songchange_spin_changed(GtkEditable *editable, gpointer user_data);
+void on_moth_opmaxused_check_toggled(GtkToggleButton *togglebutton, gpointer user_data);
+void on_misc_default_button_clicked(GtkButton *button, gpointer user_data);
+void on_presets_list_click_column(GtkCList *clist, gint column, gpointer user_data);
+
+/* monitor.c */
+gboolean on_monitor_display_drawingarea_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer user_data);
+gboolean on_monitor_win_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data);
+
+/* help.c (not yet implemented) */
+void on_help_close_button_clicked(GtkButton *button, gpointer user_data);
+
+#endif  /* _CALLBACKS_H_ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/convert.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,132 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+/*
+ *  Convert to standard (16bit-le stereo)
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include <string.h>
+#include "convert.h"
+
+void
+convert_init(convert_context_t *cc)
+{
+  memset(cc, 0, sizeof(*cc));
+}
+
+gint
+convert_flow(convert_context_t *cc,
+	     gpointer          *buffer,
+	     gint               length,
+	     format_t          *format)
+{
+  gpointer data;
+  gint     size;
+  gint     sample_size, sample_count;
+  gint     element_count;
+  gint16  *out, s;
+
+  if(!cc) return 0;
+  if(length <= 0) return 0;
+
+  /* calculate sample count */
+  sample_size  = format->is_8bit ? 1 : 2;
+  sample_count = length / sample_size;
+  if(sample_count == 0) return 0;
+
+  /* calculate buffer size */
+  size = sample_count * 2;
+  if(format->nch == 1) size *= 2;
+
+  /* resize buffer if necessary */
+  if(!cc->data || (size > cc->size)) {
+    if(!(data = g_realloc(cc->data, size))) {
+      DEBUG(("[crossfade] convert: g_realloc(%d) failed!\n", size));
+      return 0;
+    }
+    cc->data = data;
+    cc->size = size;
+  }
+
+  /* calculate number of stereo samples */
+  element_count = sample_count;
+  if(format->nch == 2) element_count /= 2;
+  
+#define CONVERT(x)						\
+  if(format->nch == 1) {					\
+    while(sample_count--) { s = x; *out++ = s; *out++ = s; }	\
+  }								\
+  else {							\
+    while(sample_count--) *out++ = x;				\
+  }
+
+  out = cc->data;
+  if(format->is_8bit) {
+    if(format->is_unsigned) {
+      guint8 *in = *buffer;
+      CONVERT((gint16)(*in++ ^ 128) << 8);
+    }
+    else {
+      gint8 *in = *buffer;
+      CONVERT((gint16)*in++ << 8);
+    }
+  }
+  else {
+    if(format->is_unsigned) {
+      guint16 *in = *buffer;
+      if(format->is_swapped) {
+	CONVERT((gint16)(((*in & 0x00ff) << 8) | (*in >> 8)) ^ 32768); in++;
+      } else {
+	CONVERT((gint16)*in++ ^ 32768);
+      }
+    }
+    else {
+      gint16 *in = *buffer;
+      if(format->is_swapped) {
+	CONVERT(((*in & 0x00ff) << 8) | (*in >> 8)); in++;
+      } else {
+	if(format->nch == 1) {
+	  CONVERT(*in++);
+	}
+	else memcpy(out, in, size);
+      }
+    }
+  }
+  *buffer = cc->data;
+
+  return size;
+}
+
+void
+convert_free(convert_context_t *cc)
+{
+  if(cc->data) {
+    g_free(cc->data);
+    cc->data = NULL;
+  }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/convert.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,48 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+/*
+ *  Convert to standard (44100/16bit-le/stereo)
+ */
+
+#ifndef __CONVERT_H__
+#define __CONVERT_H__
+
+#include "crossfade.h"
+#include "format.h"
+
+typedef struct
+{
+  gpointer       data;
+  gint           size;
+}
+convert_context_t;
+
+void convert_init(convert_context_t *cc);
+gint convert_flow(convert_context_t *cc,
+		  gpointer          *buffer,
+		  gint               length,
+		  format_t          *format);
+void convert_free(convert_context_t *cc);
+
+#endif  /* _CONVERT_H_ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/crossfade.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,2266 @@
+/* 
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *  
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include "crossfade.h"
+#include "configure.h"
+#include "interface.h"
+#include "monitor.h"
+#include "support.h"
+#include "effect.h"
+#include "format.h"
+#include "convert.h"
+#include "rate.h"
+#include "volume.h"
+#include "timing.h"
+#ifdef HAVE_LIBFFTW
+#  include "fft.h"
+#endif
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <ctype.h>
+
+#ifdef HAVE_DLFCN_H
+#  include <dlfcn.h>
+#endif
+#include <unistd.h>
+#include <signal.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
+
+
+#undef  DEBUG_HARDCORE
+
+/* output plugin callback prototypes */
+static void xfade_init          ();
+static void xfade_set_volume    (int  l, int  r);
+static void xfade_get_volume    (int *l, int *r);
+static gint xfade_open_audio    (AFormat fmt, int rate, int nch);
+static void xfade_write_audio   (void *ptr, int length);
+static void xfade_close_audio   ();
+static void xfade_flush         (int time);
+static void xfade_pause         (short paused);
+static gint xfade_buffer_free   ();
+static gint xfade_buffer_playing();
+static gint xfade_written_time  ();
+static gint xfade_output_time   ();
+
+/* output plugin callback table */
+static OutputPlugin xfade_op =
+{
+  NULL,
+  NULL,
+  "Crossfade Plugin " VERSION,
+  xfade_init,
+  xfade_about,
+  xfade_configure,
+  xfade_get_volume,
+  xfade_set_volume,
+  xfade_open_audio,
+  xfade_write_audio,
+  xfade_close_audio,
+  xfade_flush,
+  xfade_pause,
+  xfade_buffer_free,
+  xfade_buffer_playing,
+  xfade_output_time,
+  xfade_written_time,
+};
+
+/* internal prototypes */
+static void  load_symbols    ();
+static void  output_list_hack();
+static gint  open_output     ();
+static void  buffer_reset    (buffer_t *buf, config_t *cfg);
+static void *buffer_thread_f (void *arg);
+static void  sync_output     ();
+
+/* special XMMS symbols (dynamically looked up, see xfade_init) */
+static gboolean  *xmms_playlist_get_info_going = NULL;  /* XMMS */
+static gboolean  *xmms_is_quitting             = NULL;  /* XMMS */
+static gboolean (*input_stopped_for_restart)() = NULL;  /* XMMS */
+
+#ifdef HAVE_CTOR
+void fini() __attribute__((destructor));
+#else
+void _fini() { fini(); }
+#endif
+
+/* local variables */
+static gint      session_id;
+static gboolean  realtime;
+static gboolean  is_http;
+
+static gint64    streampos;  /* position within current song (input bps) */
+static gboolean  playing;
+       gboolean  opened;     /* TRUE between open_ and close_audio() */
+static gboolean  paused;     /* TRUE: no playback (but still filling buffer) */
+static gboolean  stopped;    /* TRUE: stop buffer thread ASAP */
+static gboolean  eop;        /* TRUE: wait until buffer is empty then sync() */
+
+static plugin_config_t     the_op_config = DEFAULT_OP_CONFIG;
+       OutputPlugin              *the_op = NULL;
+       gint                     the_rate = 44100;
+
+static gboolean input_playing = FALSE;
+
+       gboolean output_opened = FALSE;
+static gint     output_flush_time = 0;
+       gint     output_offset     = 0;
+static gint64   output_written    = 0;
+       gint64   output_streampos  = 0;
+
+static gboolean finishing = FALSE;  /* TRUE after fini() has been called */
+
+static gchar zero_4k[4096];
+
+#ifdef VOLUME_NORMALIZER
+static quantaudio_t qa, last_qa;
+static gboolean     have_qa = FALSE, have_last_qa = FALSE;
+#endif
+
+
+/*
+ *  Available fade configs:
+ * 
+ *  fc_start:       First song, only in_len and in_level are used
+ *  fc_xfade:       Automatic crossfade at end of song
+ *  fc_album:       Like xfade but for consecutive songs of the same album
+ *  fc_manual:      Manual crossfade (triggered by Next or Prev)
+ *  fc_stop:        Last song, only out_len and out_level are used
+ *  fc_eop:         Last song, only out_len and out_level are used
+ *
+ *  NOTE: As of version 0.2 of xmms-crossfade,
+ *        only xfade and manual are implemented.
+ *        
+ *        With version 0.2.3, fc_album has been added.
+ *
+ *        With 0.2.4, all configs are implemented:
+ *
+ *  Available parameters:
+ * 
+ *              | start | xfade | manual | album | stop |  eop
+ *  ------------+-------+-------+--------+-------+------+------
+ *  in_len      |   yes |   yes |    yes |    no |   no |   no
+ *  in_volume   |   yes |   yes |    yes |    no |   no |   no
+ *  offset      |    no |   yes |    yes |    no | +yes | +yes
+ *  out_len     |    no |   yes |    yes |    no |  yes |  yes
+ *  out_volume  |    no |   yes |    yes |    no |  yes |  yes
+ *  flush (*)   |    no |    no |    yes |    no |  yes |   no
+ *  ------------+-------+-------+--------+-------+------+------
+ *
+ *  Parameters marked with (*) are not configureable by the user
+ *
+ *  The offset parameters for 'stop' and 'eop' is used to store the
+ *  length of the additional silence to be added. It may be >= 0 only.
+ *
+ */
+
+static struct timeval last_close;
+static struct timeval last_write;
+
+static gchar *last_filename = NULL;
+
+static format_t in_format;
+static format_t out_format;
+
+static buffer_t  the_buffer;
+       buffer_t *buffer = &the_buffer;
+
+GStaticMutex buffer_mutex = G_STATIC_MUTEX_INIT;
+static GThread	*buffer_thread;
+
+static effect_context_t   effect_context;
+static convert_context_t  convert_context;
+static rate_context_t     rate_context;
+static volume_context_t   volume_context;
+#ifdef HAVE_LIBFFTW
+static fft_context_t      fft_context;
+#endif
+
+static config_t  the_config;
+       config_t *config = &the_config;
+       config_t  config_default = CONFIG_DEFAULT;
+
+static fade_config_t *fade_config = NULL;
+
+
+/* this is the entry point for XMMS */
+OutputPlugin *get_oplugin_info()
+{
+  return &xfade_op;
+}
+
+OutputPlugin *get_crossfade_oplugin_info()
+{
+  return &xfade_op;
+}
+
+static gint
+effect_list_f(gconstpointer a, gconstpointer b)
+{
+  EffectPlugin *ep = (EffectPlugin *)a;
+  gchar      *name = (gchar *)b;
+
+  return strcmp(g_basename(ep->filename), name);
+}
+
+static gboolean
+open_output_f(gpointer data)
+{
+  DEBUG(("[crossfade] open_output_f: pid=%d\n", getpid()));
+  open_output();
+  return FALSE;  /* FALSE = 'do not call me again' */
+}
+
+void
+xfade_realize_ep_config()
+{
+  GList        *list, *element;
+  EffectPlugin *ep = NULL;
+
+  /* find effect plugin */
+  if(config->ep_enable && config->ep_name && (list = get_effect_list()))  /* XMMS */
+    if((element = g_list_find_custom(list, config->ep_name, effect_list_f)))
+      ep = element->data;
+
+  effect_set_plugin(&effect_context, ep);
+}
+
+void
+xfade_realize_config()  /* also called by xfade_init() */
+{
+  /* realize effect plugin config */
+  xfade_realize_ep_config();
+
+#ifdef VOLUME_NORMALIZER
+  /* update volume normalizer target rms */
+  volume_set_target_rms(&volume_context, config->volnorm_target);
+#endif
+
+  /* 0.3.0: keep device opened */
+  if(config->output_keep_opened && !output_opened) {
+    DEBUG(("[crossfade] realize_config: keeping output opened...\n"));
+
+    /* HACK: avoid rate converter complaing about illegal input rate */
+    /* if(!rate_context.valid || !rate_context.in_rate)
+       rate_config(&rate_context, out_format.rate, out_format.rate); */
+
+    /* 0.3.1: HACK: this will make sure that we start playing silence after startup */
+    gettimeofday(&last_close, NULL);
+
+    /* 0.3.1: HACK: Somehow, if we open output here at XMMS startup, there
+              will be leftover filedescriptors later when closing output again.
+              Opening output in a timeout function seems to work around this... */
+    DEBUG(("[crossfade] realize_config: adding timeout (pid=%d)\n", getpid()));
+    g_timeout_add(0, open_output_f, NULL);
+  }
+}
+
+static gint
+output_list_f(gconstpointer a, gconstpointer b)
+{
+  OutputPlugin *op = (OutputPlugin *)a;
+  gchar      *name = (gchar *)b;
+
+  return strcmp(g_basename(op->filename), name);
+}
+
+static OutputPlugin *
+find_output()
+{
+  GList        *list, *element;
+  OutputPlugin *op = NULL;
+
+  /* find output plugin */
+  if(config->op_name && (list = get_output_list()))  /* XMMS */
+    if((element = g_list_find_custom(list, config->op_name, output_list_f)))
+      op = element->data;
+    
+    if(op == &xfade_op) {
+      DEBUG(("[crossfade] find_output: can't use myself as output plugin!\n"));
+      op = NULL;
+    }
+    else if(!op) {
+      DEBUG(("[crossfade] find_output: could not find output plugin \"%s\"\n",
+	     config->op_name ? config->op_name : "#NULL#"));
+    }
+    else  /* ok, we have a plugin. last, get its compatibility options */
+      xfade_load_plugin_config(config->op_config_string, config->op_name,
+			       &the_op_config);
+
+  return op;
+}
+
+static gint
+open_output()
+{
+  /* sanity check */
+  if(output_opened)
+    DEBUG(("[crossfade] open_output: WARNING: output_opened=TRUE!\n"));
+
+  /* reset output_* */
+  output_opened     = FALSE;
+  output_flush_time = 0;
+  output_offset     = 0;
+  output_written    = 0;
+  output_streampos  = 0;
+
+  /* get output plugin (this will also init the_op_config) */
+  if(!(the_op = find_output())) {
+    DEBUG(("[crossfade] open_output: could not find any output!\n"));
+    return -1;
+  }
+
+  /* print output plugin info */
+  DEBUG(("[crossfade] open_output: using \"%s\" for output",
+	 the_op->description ? the_op->description : "#NULL#"));
+
+  if(realtime)
+    DEBUG((" (RT)"));
+
+  if(the_op_config.throttle_enable) 
+    DEBUG((realtime
+	   ? " (throttled (disabled with RT))"
+	   : " (throttled)"));
+
+  if(the_op_config.max_write_enable)
+    DEBUG((" (max_write=%d)", the_op_config.max_write_len));
+
+  DEBUG(("\n"));
+
+  /* setup sample rate (note that OUTPUT_RATE is #defined as the_rate) */
+  the_rate = config->output_rate;
+  
+  /* setup out_format. use host byte order for easy math */
+  setup_format(FMT_S16_NE, OUTPUT_RATE, OUTPUT_NCH, &out_format);
+
+  /* force re-config of rate converter */
+  if(in_format.rate == 0)  /* this happens with keep_output_opened */
+    rate_config(&rate_context, out_format.rate, out_format.rate, config->output_quality);
+  else
+    rate_config(&rate_context, in_format.rate, out_format.rate, config->output_quality);
+
+  /* open plugin */
+  if(!the_op->open_audio(out_format.fmt, out_format.rate, out_format.nch)) {
+    DEBUG(("[crossfade] open_output: open_audio() failed!\n"));
+    the_op = NULL;
+    return -1;
+  }
+
+  /* clear buffer struct */
+  memset(buffer, 0, sizeof(*buffer));
+  
+  /* calculate buffer size */
+  buffer->mix_size     = MS2B(xfade_mix_size_ms(config)) & -4;
+  buffer->sync_size    = MS2B(config->sync_size_ms)      & -4;
+  buffer->preload_size = MS2B(config->preload_size_ms)   & -4;
+
+  buffer->size         = (buffer->mix_size +     /* mixing area */
+			  buffer->sync_size +    /* additional sync */
+			  buffer->preload_size); /* preload */
+
+  DEBUG(("[crossfade] open_output: buffer: size=%d (%d+%d+%d=%d ms) (%d Hz)\n",
+	 buffer->size,
+	 B2MS(buffer->mix_size),
+	 B2MS(buffer->preload_size),
+	 B2MS(buffer->sync_size),
+	 B2MS(buffer->size),
+	 the_rate));
+
+  /* allocate buffer */
+  if(!(buffer->data = g_malloc0(buffer->size))) {
+    DEBUG(("[crossfade] open_output: error allocating buffer!\n"));
+    the_op->close_audio();
+    the_op = NULL;
+    return -1;
+  }
+  
+  /* reset buffer */
+  buffer_reset(buffer, config);
+  
+  /* make sure stopped is TRUE -- otherwise the buffer thread would
+   * stop again immediatelly after it has been started. */
+  stopped = FALSE;
+  
+  /* create and run buffer thread */
+  buffer_thread = g_thread_create((GThreadFunc)buffer_thread_f, NULL, FALSE, NULL);
+  if (buffer_thread == NULL) {
+    PERROR("[crossfade] open_output: g_thread_create()");
+    g_free(buffer->data);
+    the_op->close_audio();
+    the_op = NULL;
+    return -1;
+  }
+
+  /* start updating monitor */
+  xfade_start_monitor();
+
+  /* done */
+  output_opened = TRUE;
+  return 0;
+}
+
+static void
+xfade_init()
+{
+  /* load config */
+  memset(config, 0, sizeof(*config));
+  *config = config_default;
+  xfade_load_config();
+
+  /* set default strings if there is no existing config */
+  if(!config->oss_alt_audio_device)
+    config->oss_alt_audio_device = g_strdup(DEFAULT_OSS_ALT_AUDIO_DEVICE);
+  if(!config->oss_alt_mixer_device)
+    config->oss_alt_mixer_device = g_strdup(DEFAULT_OSS_ALT_MIXER_DEVICE);
+  if(!config->op_config_string)
+    config->op_config_string = g_strdup(DEFAULT_OP_CONFIG_STRING);
+  if(!config->op_name)
+    config->op_name = g_strdup(DEFAULT_OP_NAME);
+
+  /* check for realtime priority, it needs some special attention */
+  realtime = xmms_check_realtime_priority();
+
+  /* show monitor win if enabled in config */
+  xfade_check_monitor_win();
+
+  /* init contexts */
+  effect_init(&effect_context, NULL);
+  convert_init(&convert_context);
+  rate_init(&rate_context);
+  volume_init(&volume_context);
+#ifdef HAVE_LIBFFTW
+  fft_init(&fft_context);
+#endif
+
+  /* reset */
+  stopped = FALSE;
+
+  /* find current output plugin early so that volume control works
+   * even if playback has not started yet. */
+  if(!(the_op = find_output()))
+    DEBUG(("[crossfade] init: could not find any output!\n"));
+
+  /* get xmms controlsocket session id */
+  session_id = ctrlsocket_get_session_id();
+
+  /* load any dynamic linked symbols */
+  load_symbols();
+  
+  /* HACK: make sure we are at the beginning of XMMS' output plugin list */
+  output_list_hack();
+
+  /* realize config -- will also setup the pre-mixing effect plugin */
+  xfade_realize_config();
+}
+
+static void load_symbols()
+{
+#ifdef HAVE_DLFCN_H
+  void *handle;
+  char *error;
+
+  /* open ourselves (that is, the XMMS binary) */
+  handle = dlopen(NULL, RTLD_NOW);
+  if(!handle) {
+    DEBUG(("[crossfade] init: dlopen(NULL) failed!\n"));
+    return;
+  }
+
+  /* check for XMMS patches */
+  DEBUG(("[crossfade] load_symbols: input_stopped_for_restart:"));
+  input_stopped_for_restart = dlsym(handle, "input_stopped_for_restart");
+  DEBUG((!(error = dlerror()) ? " found\n" : " not found\n"));
+
+  DEBUG(("[crossfade] load_symbols: playlist_get_info_going:"));
+  xmms_playlist_get_info_going = dlsym(handle, "playlist_get_info_going");
+  DEBUG((!(error = dlerror()) ? " found\n" : " not found\n"));
+  
+  DEBUG(("[crossfade] load_symbols: is_quitting:"));
+  xmms_is_quitting = dlsym(handle, "is_quitting");
+  DEBUG((!(error = dlerror()) ? " found\n" : " not found\n"));
+
+  dlclose(handle);
+#endif
+}
+
+/*
+  HACK: Try to move ourselves to the beginning of XMMS output plugin list,
+        so that we will be freed first when XMMS is quitting. This way, we
+        avoid the segfault when using ALSA as the output plugin.     
+*/
+static void output_list_hack()
+{
+  GList *output_list = get_output_list();
+
+  int i0 = g_list_index(output_list, &xfade_op), i1;
+
+  GList *first = g_list_first(output_list);
+  GList *xfade = g_list_find (output_list, &xfade_op);
+  xfade->data  = first->data;
+  first->data  = &xfade_op;
+
+  i1 = g_list_index(output_list, &xfade_op);
+  if (i0 != i1)
+    DEBUG(("[crossfade] output_list_hack: crossfade moved from index %d to %d\n", i0, i1));
+}
+
+void fini()
+{
+  DEBUG(("[crossfade]\n"));
+  DEBUG(("[crossfade] fini: cleanup:\n"));
+
+  /* wait for buffer_thread to stop */
+  g_static_mutex_lock(&buffer_mutex);
+
+  /* reset last_close so that the buffer thread will
+   * not unnecessarily wait for a timeout. */
+  memset(&last_close, 0, sizeof(last_close));
+
+  /* HACK: tell buffer thread not to close output by itself */
+  finishing = TRUE;
+  paused = FALSE;
+
+  /* wait for buffer thread to clean up and terminate */
+  DEBUG(("[crossfade] fini: cleanup: waiting for buffer thread...\n"));
+  while(output_opened && finishing) {
+    g_static_mutex_unlock(&buffer_mutex);
+    xmms_usleep(10000);
+    g_static_mutex_lock(&buffer_mutex);
+  }
+  DEBUG(("[crossfade] fini: cleanup: waiting for buffer thread... done\n"));
+
+  /* HACK: 0.3.5: close output plugin from THIS thread */
+  if(output_opened) {
+    DEBUG(("[crossfade] fini: cleanup: closing audio...\n"));
+    if(the_op->close_audio) the_op->close_audio();
+    DEBUG(("[crossfade] fini: cleanup: closing audio... done\n"));
+    g_free(buffer->data);
+    output_opened = FALSE;
+  }
+  DEBUG(("[crossfade] fini: cleanup: done\n"));
+
+  g_static_mutex_unlock (&buffer_mutex);
+
+  /* free contexts */
+#ifdef HAVE_LIBFFTW
+  fft_free(&fft_context);
+#endif
+  volume_free(&volume_context);
+  rate_free(&rate_context);
+  convert_free(&convert_context);
+  effect_free(&effect_context);
+
+  /* save configuration (required only for mixer_vol_*) */
+  xfade_save_config();
+
+  /* free resources */
+  if(config->oss_alt_audio_device) g_free(config->oss_alt_audio_device);
+  if(config->op_name) g_free(config->op_name);
+  xfade_free_config();
+  if(last_filename) g_free(last_filename);
+
+  DEBUG(("[crossfade] fini: done.\n"));
+}
+
+void
+xfade_get_volume(int *l, int *r)
+{
+  if(config->mixer_software) {
+    if(config->mixer_reverse) {
+      *l = config->mixer_vol_right;
+      *r = config->mixer_vol_left;
+    } else {
+      *l = config->mixer_vol_left;
+      *r = config->mixer_vol_right;
+    }
+  }
+  else {
+    if(the_op && the_op->get_volume) {
+      if(config->mixer_reverse)
+	the_op->get_volume(r, l);
+      else
+	the_op->get_volume(l, r);
+    }
+  }
+}
+
+void
+xfade_set_volume(int l, int r)
+{
+  if(!config->enable_mixer) return;
+  if(config->mixer_software) {
+    if(config->mixer_reverse) {
+      config->mixer_vol_right = l;
+      config->mixer_vol_left  = r;
+    }
+    else {
+      config->mixer_vol_right = r;
+      config->mixer_vol_left  = l;
+    }
+  }
+  else {
+    if(the_op && the_op->set_volume) {
+      if(config->mixer_reverse)
+	the_op->set_volume(r, l);
+      else
+	the_op->set_volume(l, r);
+    }
+  }
+}
+
+/*** buffer stuff ***********************************************************/
+
+static void
+buffer_mfg_reset(buffer_t *buf, config_t *cfg)
+{
+  buf->mix        = 0;
+  buf->fade       = 0;
+  buf->gap        = (cfg->gap_lead_enable ? MS2B(cfg->gap_lead_len_ms) & -4 : 0);
+  buf->gap_len    = buf->gap;
+  buf->gap_level  = cfg->gap_lead_level;
+  buf->gap_killed = 0;
+}
+
+static void
+buffer_reset(buffer_t *buf, config_t *cfg)
+{
+  buffer_mfg_reset(buf, cfg);
+
+  buf->rd_index = 0;
+  buf->used     = 0;
+  buf->preload  = buf->preload_size;  
+
+  buf->silence     = 0;
+  buf->silence_len = 0;
+  buf->reopen      = -1;
+  buf->pause       = -1;
+}
+
+/****************************************************************************/
+
+static void
+xfade_apply_fade_config(fade_config_t *fc)
+{
+  gint avail, out_len, in_len, offset, skip;
+  gint index, length, fade, n;
+  gfloat out_scale, in_scale;
+  gboolean out_len_clipped = FALSE, offset_clipped = FALSE;
+
+  /* Overwrites mix and fade; may add silence */
+
+  /*
+   * Example 1: offset < 0 --> mix streams together
+   * Example 2: offset > 0 --> insert pause between streams
+   * 
+   *     |----- out_len -----|    *     |out_len|
+   *     |                   |    *     |       |
+   * ~~~~~-_        /T~~~~~~~T~~  * ~~~~~\      |               /T~~
+   *        ~-_    / |       |    *       \     |              / |
+   *           ~-_/  |       |    *        \    |             /  |
+   *             /~-_|       |    *         \   |            /   |
+   *            /    T-_     |    *          \  |           /    |
+   *           /     |  ~-_  |    *           \ |          /     |
+   * _________/______|_____~-|__  * ___________\__________/______|__
+   *          |in_len|       |    *             |         |in_len|
+   *          |<-- offset ---|    *             |offset-->|
+   *
+   *  a) avail:   max(0, used - preload)
+   *  b) out_len: 0 .. avail
+   *  c) in_len:  0 .. #
+   *  d) offset:  -avail .. buffer->mix_size - out_size
+   *  e) skip:    min(used, preload)
+   *
+   */
+
+  out_scale = 1.0f - (gfloat)xfade_cfg_fadeout_volume(fc) / 100.0f;
+  in_scale  = 1.0f - (gfloat)xfade_cfg_fadein_volume (fc) / 100.0f;
+
+  /* rules (see above) */
+  /* a */
+  avail = buffer->used - buffer->preload_size;
+  if(avail < 0) avail = 0;
+  
+  /* b */
+  out_len = MS2B(xfade_cfg_fadeout_len(fc)) & -4;
+  if(out_len < 0) out_len = 0;
+  if(out_len > avail) {
+    DEBUG(("[crossfade] apply_fade_config: WARNING: clipping out_len (%d -> %d)!\n",
+	   B2MS(out_len), B2MS(avail)));
+    out_len = avail;
+    out_len_clipped = TRUE;
+  }
+
+  /* c */
+  in_len = MS2B(xfade_cfg_fadein_len(fc)) & -4;
+  if(in_len < 0) in_len = 0;
+  
+  /* d */
+  offset = MS2B(xfade_cfg_offset(fc)) & -4;
+  if(offset < -avail) {
+    DEBUG(("[crossfade] apply_fade_config: WARNING: clipping offset (%d -> %d)!\n",
+	   B2MS(offset), -B2MS(avail)));
+    offset = -avail;
+    offset_clipped = TRUE;
+  }
+  if(offset > (buffer->mix_size - out_len))
+    offset = buffer->mix_size - out_len;
+  
+  /* e */
+  skip = buffer->preload_size;
+  if(skip > buffer->used) skip = buffer->used;
+  
+  /* cut off rest of stream (decreases latency on manual songchange) */
+  if(fc->flush) {
+    gint cutoff = avail - MAX(out_len, -offset);  /* MAX() -> glib.h */
+    if(cutoff > 0) {
+      DEBUG(("[crossfade] apply_fade_config: %d ms flushed\n", B2MS(cutoff)));
+      buffer->used -= cutoff;
+      avail        -= cutoff;
+    }
+
+    /* make sure there is no pending silence */
+    buffer->silence     = 0;
+    buffer->silence_len = 0;
+  }
+
+  /* begin modifying buffer at index */
+  index = (buffer->rd_index + buffer->used - out_len) % buffer->size;
+  
+  /* fade out (modifies buffer directly) */
+  fade = 0;
+  length = out_len;
+  while(length > 0) {
+    gint16 *p = buffer->data + index;
+    gint blen = buffer->size - index;
+    if(blen > length) blen = length;
+    
+    for(n = blen/4; n > 0; n--) {
+      gfloat factor = 1.0f - (((gfloat)fade / out_len) * out_scale);
+      *p = (gfloat)*p * factor; p++;
+      *p = (gfloat)*p * factor; p++;
+      fade += 4;
+    }
+    
+    index = (index + blen) % buffer->size;
+    length -= blen;
+  }
+
+  /* Initialize fadein. Note that the actual fading / mixing will be done
+   * on-the-fly when audio data is received by xfade_write_audio() */
+
+  /* start fading in */
+  if(in_len > 0) {
+    buffer->fade = in_len;
+    buffer->fade_len = in_len;
+    buffer->fade_scale = in_scale;
+  }
+  else
+    buffer->fade = 0;
+  
+  /* start mixing */
+  if(offset < 0) {
+    length = -offset;
+    buffer->mix = length;
+    buffer->used -= length;
+  }
+  else
+    buffer->mix = 0;
+  
+  /* start silence if applicable (will be applied in buffer_thread_f) */
+  if(offset > 0) {
+    if((buffer->silence > 0) || (buffer->silence_len > 0))
+      DEBUG(("[crossfade] apply_config: WARNING: silence in progress (%d/%d ms)\n",
+	     B2MS(buffer->silence), B2MS(buffer->silence_len)));
+    
+    buffer->silence     = buffer->used;
+    buffer->silence_len = offset;
+  }
+  
+  /* done */
+  DEBUG(("[crossfade] apply_fade_config: avail=%d out=%d in=%d offset=%d skip=%d\n",
+	 B2MS(avail), B2MS(out_len), B2MS(in_len), B2MS(offset), B2MS(skip)));
+}
+
+static gint
+extract_track(gchar *name)
+{
+  /* Remove all but numbers.
+   * Will not work if a filename has number in the title, like "track-03-U2.mp3" 
+   * Ideally, should look into id3 track entry and fallback to filename
+   * */
+
+  gchar temp[8];
+  int t = 0 ;
+  
+  memset(temp,0,sizeof(temp));
+  while(*name != '\0' && t < sizeof(temp)) {
+    if(strcmp(name,"mp3") == 0)
+      break;
+    if(isdigit(*name))
+      temp[t++] = *name;
+    name++;
+  }
+  return atoi(temp);
+}
+
+static gint
+album_match(gchar *old, gchar *new)
+{
+  gchar *old_dir, *new_dir;
+  gboolean same_dir;
+  gint old_track = 0, new_track = 0;
+
+  if(!old || !new) return 0;
+
+  old_dir = g_dirname(old);
+  new_dir = g_dirname(new);
+  same_dir = !strcmp(old_dir, new_dir);
+  g_free(old_dir);
+  g_free(new_dir);
+
+  if(!same_dir) {
+    DEBUG(("[crossfade] album_match: "
+	   "no match (different dirs)\n"));
+    return 0;
+  }
+
+  old_track = extract_track(g_basename(old));
+  new_track = extract_track(g_basename(new));
+  
+  if(new_track <= 0) {
+    DEBUG(("[crossfade] album_match: can't parse track number:\n"));
+    DEBUG(("[crossfade] album_match: ... \"%s\"\n", g_basename(new)));
+    return 0;
+  }
+
+  if((old_track < 0) || (old_track+1 != new_track)) {
+    DEBUG(("[crossfade] album_match: "
+	   "no match (same dir, but non-successive (%d, %d))\n",
+	   old_track, new_track));
+    return 0;
+  }
+  
+  DEBUG(("[crossfade] album_match: "
+	 "match detected (same dir, successive tracks (%d, %d))\n",
+	 old_track, new_track));
+  
+  return old_track;
+}
+
+static gint
+xfade_open_audio(AFormat fmt, int rate, int nch)
+{
+  gint   pos;
+  gchar *file;
+
+  struct timeval tv;
+  glong          dt;
+
+  DEBUG(("[crossfade]\n"));
+  DEBUG(("[crossfade] open_audio: XMMS-crossfade "VERSION"\n"));
+
+#if 0
+  DEBUG(("[crossfade] open_audio: pid=%d\n", getpid()));
+#endif
+
+  /* sanity... don't do anything about it */
+  if(opened)
+    DEBUG(("[crossfade] open_audio: WARNING: already opened!\n"));
+
+  /* get filename */
+#ifdef HAVE_PLAYLIST_GET_FILENAME
+  pos  = get_playlist_position();     /* XMMS */
+  file = playlist_get_filename(pos);  /* XMMS */
+#else
+  pos  = xmms_remote_get_playlist_pos (session_id);
+  file = xmms_remote_get_playlist_file(session_id, pos);
+#endif
+  DEBUG(("[crossfade] open_audio: bname=\"%s\"\n", g_basename(file)));
+
+  /* is this an automatic crossfade? */
+  if(last_filename && (fade_config == &config->fc[FADE_CONFIG_XFADE])) {
+    /* check if next song is the same as the current one */
+    if(config->no_xfade_if_same_file && !strcmp(last_filename, file)) {
+      DEBUG(("[crossfade] open_audio: same file, disabling crossfade\n"));
+      fade_config = &config->fc[FADE_CONFIG_ALBUM];
+    }
+
+    /* check if next song is the next song from the same album */
+    else if(config->album_detection && album_match(last_filename, file)) {
+      gboolean use_fc_album = FALSE;
+
+      if(xfade_cfg_gap_trail_enable(config)) {
+	DEBUG(("[crossfade] album_match: "
+	       "trailing gap: length=%d/%d ms\n",
+	       B2MS(buffer->gap_killed), B2MS(buffer->gap_len)));
+	
+	if(buffer->gap_killed < buffer->gap_len) {
+	  DEBUG(("[crossfade] album_match: "
+		 "trailing gap: -> no silence, probably pre-faded\n"));
+	  use_fc_album = TRUE;
+	}
+	else {
+	  DEBUG(("[crossfade] album_match: "
+		 "trailing gap: -> silence, sticking to XFADE\n"));
+	}
+      }
+      else {
+	DEBUG(("[crossfade] album_match: "
+	       "trailing gap killer disabled\n"));
+	use_fc_album = TRUE;
+      }
+       
+      if(use_fc_album) {
+	DEBUG(("[crossfade] album_match: "
+	       "-> using FADE_CONFIG_ALBUM\n"));
+	fade_config = &config->fc[FADE_CONFIG_ALBUM];
+      }
+    }
+    g_free(last_filename);
+  }
+  last_filename = g_strdup(file); 
+
+#if 0
+  /* FIXME: finish this */
+  /* Check if this is a short song. */
+  if(fade_config == &config->fc[FADE_CONFIG_XFADE]) {
+    DEBUG(("*** XFADE:\n"));
+    int current_length = playlist_get_current_length();
+    DEBUG(("*** length=%d\n", current_length));
+    if (current_length < 30*1000)
+      fade_config = &config->fc[FADE_CONFIG_ALBUM];
+  }
+#endif
+
+#ifdef VOLUME_NORMALIZER
+  /* turn off volume normalizing per default, until we get a target RMS for this song */
+  volume_set_active(&volume_context, FALSE);
+
+  /* thomas: add support for quantaudio per-song mixing info */
+  if(config->volnorm_use_qa) {
+    /* remember timing info from last song */
+    last_qa = qa;
+    have_last_qa = have_qa;
+
+    /* try to read quantaudio comment from ID3v1 tag */
+    have_qa = get_timing_comment(file, &qa);
+    if(have_qa) {
+      DEBUG(("[crossfade] open_audio: quantaudio comment found:\n"));
+      DEBUG(("[crossfade] open_audio: ... RMS=%d, mix_in=%.2f, mix_out=%.2f, length=%.2f\n",
+	     qa.RMS, qa.mix_in, qa.mix_out, qa.length));
+      volume_set_song_rms(&volume_context, qa.RMS);
+      volume_set_active  (&volume_context, TRUE);
+    }
+    else
+      DEBUG(("[crossfade] open_audio: no quantaudio comment found\n"));
+    
+#if 0
+    /* configure fade_config with fadeout from last song and fadein from new song */
+    if(fade_config) {
+      config->fc[FADE_CONFIG_TIMING].out_enable = fade_config->out_enable;
+      config->fc[FADE_CONFIG_TIMING].out_volume = fade_config->out_volume;
+      config->fc[FADE_CONFIG_TIMING].out_len_ms = fade_config->out_len_ms;
+      config->fc[FADE_CONFIG_TIMING].ofs_custom_ms = 0;
+      config->fc[FADE_CONFIG_TIMING].in_enable  = fade_config->in_enable;
+      config->fc[FADE_CONFIG_TIMING].in_volume  = fade_config->in_volume;
+      config->fc[FADE_CONFIG_TIMING].in_len_ms  = fade_config->in_len_ms;
+      
+      if(have_last_qa && ((fade_config->config == FADE_CONFIG_XFADE) ||
+			  (fade_config->config == FADE_CONFIG_ALBUM))) {
+	fade_config = &config->fc[FADE_CONFIG_TIMING];
+	fade_config->out_enable    = TRUE;
+	fade_config->out_volume    = 0;
+        fade_config->out_len_ms    = (gint)((last_qa.length - last_qa.mix_out) * 1000);
+	fade_config->ofs_custom_ms = - fade_config->out_len_ms;  /* FIXME: */
+	DEBUG(("[crossfade] open_audio: CONFIG_TIMING: using last song's fadeout parameter\n"));
+      }
+      
+      if(have_qa && ((fade_config->config == FADE_CONFIG_XFADE) ||
+		     (fade_config->config == FADE_CONFIG_ALBUM) ||
+		     (fade_config->config == FADE_CONFIG_MANUAL))) {
+	fade_config = &config->fc[FADE_CONFIG_TIMING];
+	fade_config->in_enable = TRUE;
+	fade_config->in_volume = 0;
+	fade_config->in_len_ms = (gint)(qa.mix_in * 1000);
+	DEBUG(("[crossfade] open_audio: CONFIG_TIMING: using new song's fadein parameter\n"));
+      }
+    }
+#endif
+  }
+  else have_qa = FALSE;
+  /* thomas: end */
+  
+  if(volume_context.active && config->volnorm_enable)
+    DEBUG(("[crossfade] open_audio: volume normalizer: factor=%.3f\n",
+	   volume_context.factor));
+#endif
+  
+  /* check for HTTP streaming */
+  if(config->enable_http_workaround && (0 == strncasecmp(file, "http://", 7))) {
+    DEBUG(("[crossfade] open_audio: HTTP underrun workaround enabled.\n"));
+    is_http = TRUE;
+  }
+  else
+    is_http = FALSE;
+  
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  /* reset writer timeout */
+  gettimeofday(&last_write, NULL);
+
+  /* calculate time since last close() (don't care about overflows at 24h) */
+  if(output_opened) {
+    gettimeofday(&tv, NULL);
+    dt = (tv.tv_sec - last_close.tv_sec)  * 1000
+      + (tv.tv_usec - last_close.tv_usec) / 1000;
+  }
+  else
+    dt = 0;
+
+  DEBUG(("[crossfade] open_audio: fmt=%s rate=%d nch=%d dt=%ld ms\n",
+	 format_name(fmt), rate, nch, dt));
+  
+  /* check format */
+  if(setup_format(fmt, rate, nch, &in_format) < 0) {
+    DEBUG(("[crossfade] open_audio: format not supported!\n"));
+    return 0;
+  }
+
+  /* (re)open the device if necessary */
+  if(!output_opened) {
+    if(open_output()) {
+      DEBUG(("[crossfade] open_audio: error opening/configuring output!\n"));
+      g_static_mutex_unlock(&buffer_mutex);
+      return 0;
+    }
+    fade_config = &config->fc[FADE_CONFIG_START];
+  }
+
+  /* reset */
+  streampos = 0;
+  playing   = TRUE;
+  opened    = TRUE;
+  paused    = FALSE;
+
+  /* reset mix/fade/gap */
+  buffer_mfg_reset(buffer, config);
+
+  /* enable gap killer / zero crossing only for automatic/album songchange */
+  switch(fade_config->config) {
+  case FADE_CONFIG_XFADE:
+  case FADE_CONFIG_ALBUM:
+    break;
+  default:;
+    buffer->gap = GAP_SKIPPING_DONE;
+  }
+
+  /* restart realtime throttling */
+  output_written = 0;
+
+  /* start mixing */
+  switch(fade_config ? fade_config->type : -1) {
+  case FADE_TYPE_FLUSH:
+    DEBUG(("[crossfade] open_audio: FLUSH:\n"));
+
+    /* flush output plugin */
+    the_op->flush(0);
+    output_streampos = 0;
+
+    /* flush buffer */
+    buffer_reset(buffer, config);
+
+    /* apply fade config (pause/fadein after flush) */
+    xfade_apply_fade_config(fade_config);
+    
+    /* also repopen device (if configured so in the plugin compat. options) */
+    if(the_op_config.force_reopen) {
+      buffer->reopen = 0;
+      buffer->reopen_sync = FALSE;
+    }
+    break;
+
+  case FADE_TYPE_REOPEN:
+    DEBUG(("[crossfade] open_audio: REOPEN:\n"));
+
+    /* flush buffer if applicable */
+    if(fade_config->flush)
+      buffer_reset(buffer, config);
+
+    if(buffer->reopen >= 0)
+      DEBUG(("[crossfade] open_audio: REOPEN: WARNING: reopen in progress (%d ms)\n",
+	     B2MS(buffer->reopen)));
+    
+    /* start reopen countdown (will be executed in buffer_thread_f) */
+    buffer->reopen = buffer->used;  /* may be 0 */
+    buffer->reopen_sync = FALSE;
+    break;
+
+  case FADE_TYPE_NONE:
+  case FADE_TYPE_PAUSE:
+  case FADE_TYPE_SIMPLE_XF:
+  case FADE_TYPE_ADVANCED_XF:
+  case FADE_TYPE_FADEIN:
+  case FADE_TYPE_FADEOUT:
+    DEBUG(("[crossfade] open_audio: XFADE:\n"));
+    
+    /* apply fade config (do fadeout, init mix/fade/gap, add silence) */
+    xfade_apply_fade_config(fade_config);
+    
+    /* set reopen countdown. after buffer_thread_f has written
+     * buffer->reopen bytes, it will close/reopen the output plugin. */
+    if(the_op_config.force_reopen && !(fade_config->config == FADE_CONFIG_START)) {
+      if(buffer->reopen >= 0) 
+	DEBUG(("[crossfade] open_audio: XFADE: WARNING: reopen in progress (%d ms)\n",
+	       B2MS(buffer->reopen)));
+      buffer->reopen = buffer->used;
+      buffer->reopen_sync = TRUE;
+    }
+    break;
+  }
+
+  /* calculate offset of the output plugin */
+  output_offset = the_op->written_time() + B2MS(buffer->used) + B2MS(buffer->silence_len);
+
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+
+  /* done */
+  return 1;
+}
+
+void
+xfade_write_audio(void *ptr, int length)
+{
+  gint     free;
+  gint     ofs = 0;
+  format_t format;
+
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] write_audio: ptr=0x%08lx, length=%d\n", (long)ptr, length));
+#endif
+
+  /* sanity */
+  if(length <= 0) return;
+  if(length & 3) {
+    DEBUG(("[crossfade] write_audio: truncating %d bytes!\n", length & 3));
+    length &= -4;
+  }
+
+  /* update input accumulator (using input format size) */
+  streampos += length;
+
+  /* apply pre-mixing effect (NOTE: format might change!) */
+  format_copy(&format, &in_format);
+  length = effect_flow(&effect_context, (gpointer*)&ptr, length, &format, TRUE);
+  
+  /* convert sample format (signed-16bit-ne 44100hz stereo) */
+  length = convert_flow(&convert_context, (gpointer*)&ptr, length, &format);
+
+  /* convert rate */
+  if(!rate_context.valid || (rate_context.in_rate != format.rate))
+    rate_config(&rate_context, format.rate, out_format.rate, config->output_quality);
+  
+  length = rate_flow(&rate_context, (gpointer*)&ptr, length);
+
+#ifdef VOLUME_NORMALIZER
+  /* normalize volume */
+  if(config->volnorm_enable)
+    volume_flow(&volume_context, (gpointer*)&ptr, length);
+#endif
+
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  /* check if device has been closed, reopen if necessary */
+  if(!output_opened) {
+    if(open_output()) {
+      DEBUG(("[crossfade] write_audio: reopening failed!\n"));
+      g_static_mutex_unlock(&buffer_mutex);
+      return;
+    }
+  }
+
+  /* reset timeout */
+  gettimeofday(&last_write, NULL);
+
+  /* calculate free buffer space, check for overflow (should never happen :) */
+  free = buffer->size - buffer->used;
+  if(length > free) {
+    DEBUG(("[crossfade] write_audio: %d bytes truncated!\n", length-free));
+    length = free;
+  }
+
+  /* kill leading gap */
+  if((length > 0) && (buffer->gap > 0)) {
+    gint   blen = MIN(length, buffer->gap);
+    gint16   *p = ptr;
+    gint  index = 0;
+
+    gint16 left, right;
+    while(index < blen) {
+      left = *p++, right = *p++;
+      if(ABS(left) >= buffer->gap_level) break;
+      if(ABS(right) >= buffer->gap_level) break;
+      index += 4;
+    }
+    
+    buffer->gap -= index;
+    length -= index;
+    ptr += index;
+
+    if((index < blen) || (buffer->gap <= 0)) {
+      buffer->gap_killed = buffer->gap_len - buffer->gap;
+      buffer->gap = 0;
+
+      DEBUG(("[crossfade] write_audio: leading gap size: %d/%d ms\n",
+	     B2MS(buffer->gap_killed), B2MS(buffer->gap_len)));
+
+      /* fix streampos */
+      streampos -= (gint64)buffer->gap_killed * in_format.bps / out_format.bps;
+    }
+  }
+
+  /* start skipping to next crossing (if enabled) */
+  if(buffer->gap == 0) {
+    if(config->gap_crossing) {
+      buffer->gap = GAP_SKIPPING_POSITIVE;
+      buffer->gap_skipped = 0;
+    }
+    else 
+      buffer->gap = GAP_SKIPPING_DONE;
+  }
+
+  /* skip until next zero crossing (pos -> neg) */
+  if((length > 0) && (buffer->gap == GAP_SKIPPING_POSITIVE)) {
+    gint16   *p = ptr;
+    gint  index = 0;
+
+    gint16 left;
+    while(index < length) {
+      left = *p++; p++;
+      if(left < 0) break;
+      index += 4;
+    }
+
+    buffer->gap_skipped += index;
+    length -= index;
+    ptr += index;
+
+    if(index < length)
+      buffer->gap = GAP_SKIPPING_NEGATIVE;
+  }
+
+  /* skip until next zero crossing (neg -> pos) */
+  if((length > 0) && (buffer->gap == GAP_SKIPPING_NEGATIVE)) {
+    gint16   *p = ptr;
+    gint  index = 0;
+
+    gint16 left;
+    while(index < length) {
+      left = *p++; p++;
+      if(left >= 0) break;
+      index += 4;
+    }
+
+    buffer->gap_skipped += index;
+    length -= index;
+    ptr += index;
+
+    if(index < length) {
+      DEBUG(("[crossfade] write_audio: %d samples to next crossing\n",
+	     buffer->gap_skipped));
+      buffer->gap = GAP_SKIPPING_DONE;
+    }
+  }
+
+  /* update preload. the buffer thread will not write any
+   * data to the device before preload is decreased below 1. */
+  if((length > 0) && (buffer->preload > 0))
+    buffer->preload -= length;
+
+  /* fadein -- FIXME: is modifying the input/effect buffer safe? */
+  if((length > 0) && (buffer->fade > 0)) {
+    gint16 *p = ptr;
+    gint blen = MIN(length, buffer->fade);
+    gint    n;
+
+    for(n = blen/4; n > 0; n--) {
+      gfloat factor = 1.0f - (((gfloat)buffer->fade / buffer->fade_len) * buffer->fade_scale);
+      *p = (gfloat)*p * factor; p++;
+      *p = (gfloat)*p * factor; p++;
+      buffer->fade -= 4;
+    }
+  }
+  
+  /* mix */
+  while((length > 0) && (buffer->mix > 0)) {
+    gint wr_index = (buffer->rd_index + buffer->used) % buffer->size;
+    gint     blen = buffer->size - wr_index;
+    gint16    *p1 = buffer->data + wr_index;
+    gint16    *p2 = ptr + ofs;
+    gint        n;
+
+    if(blen > length) blen = length;
+    if(blen > buffer->mix) blen = buffer->mix;
+
+    for(n = blen/2; n > 0; n--) {
+      gint out = (gint)*p1 + *p2++;  /* add */
+      if(out > 32767)                /* clamp */
+	*p1++ = 32767;
+      else if(out < -32768)
+	*p1++ = -32768;
+      else
+	*p1++ = out;
+    }
+    
+    buffer->used += blen;
+    buffer->mix -= blen;
+    length -= blen;
+    ofs += blen;
+  }
+
+  /* normal write */
+  while(length > 0) {
+    gint wr_index = (buffer->rd_index + buffer->used) % buffer->size;
+    gint     blen = buffer->size - wr_index;
+
+    if(blen > length) blen = length;
+
+    memcpy(buffer->data + wr_index, ptr + ofs, blen);
+    
+    buffer->used += blen;
+    length -= blen;
+    ofs += blen;
+  }
+
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] write_audio: done.\n"));
+#endif
+}
+
+/* sync_output: wait for output plugin to finish playback  */
+/*              is only called from within buffer_thread_f */
+static void sync_output()
+{
+  glong dt, total;
+  gint  opt, opt_last;
+  struct timeval tv, tv_start, tv_last_change;
+  gboolean was_closed = !opened;
+
+  if(!the_op->buffer_playing || !the_op->buffer_playing()) {
+    DEBUG(("[crossfade] sync_output: nothing to do\n"));
+    return;
+  }
+
+  DEBUG(("[crossfade] sync_output: waiting for plugin...\n"));
+
+  dt = 0;
+  opt_last = 0;
+  gettimeofday(&tv_start, NULL);
+  gettimeofday(&tv_last_change, NULL);
+
+  while((dt < SYNC_OUTPUT_TIMEOUT)
+	&& !stopped
+	&& output_opened
+	&& !(was_closed && opened)
+	&& the_op && the_op->buffer_playing()) {
+
+    /* use output_time() to check if the output plugin is still active */
+    if(the_op->output_time) {
+      opt = the_op->output_time();
+      if(opt != opt_last) {
+	/* output_time has changed */
+	opt_last = opt;
+	gettimeofday(&tv_last_change, NULL);
+      }
+      else {
+	/* calculate time since last change of the_op->output_time() */
+	gettimeofday(&tv, NULL);
+	dt = (tv.tv_sec - tv_last_change.tv_sec)  * 1000
+	  + (tv.tv_usec - tv_last_change.tv_usec) / 1000;
+      }
+    }
+    
+    /* yield */
+    g_static_mutex_unlock(&buffer_mutex);
+    xmms_usleep(10000);
+    g_static_mutex_lock(&buffer_mutex);
+  }
+
+  /* calculate total time we spent in here */
+  gettimeofday(&tv, NULL);
+  total = (tv.tv_sec - tv_start.tv_sec)  * 1000
+    +    (tv.tv_usec - tv_start.tv_usec) / 1000;
+  
+  /* print some debug info */
+  if(stopped)
+    DEBUG(("[crossfade] sync_output: ... stopped\n"))
+  else if(was_closed && opened)
+    DEBUG(("[crossfade] sync_output: ... reopened\n"))
+  else if(dt >= SYNC_OUTPUT_TIMEOUT)
+    DEBUG(("[crossfade] sync_output: ... TIMEOUT! (%ld ms)\n", total))
+  else
+    DEBUG(("[crossfade] sync_output: ... done (%ld ms)\n", total));
+}
+
+void *
+buffer_thread_f(void *arg)
+{
+  gpointer data;
+  gint     sync;
+  gint     op_free;
+  gint     length_bak, length, blen;
+  glong    timeout, dt;
+  gboolean stopping;
+
+  struct timeval tv;
+  struct timeval mark;
+
+  DEBUG(("[crossfade] buffer_thread_f: thread started (pid=%d)\n",
+	 (int)getpid()));
+  
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  while(!stopped) {
+    /* yield */
+#ifdef DEBUG_HARDCORE
+    DEBUG(("[crossfade] buffer_thread_f: yielding...\n"));
+#endif
+    g_static_mutex_unlock(&buffer_mutex);
+    xmms_usleep(10000);
+    g_static_mutex_lock(&buffer_mutex);
+
+    /* --------------------------------------------------------------------- */
+
+    stopping = FALSE;
+    
+    /* V0.3.0: New timeout detection */
+    if(!opened) {
+      gboolean current = bmp_playback_get_playing();  /* BEEP */
+
+      /* also see fini() */
+      if(last_close.tv_sec || last_close.tv_usec) {
+	gettimeofday(&tv, NULL);
+	timeout = (tv.tv_sec - last_close.tv_sec)  * 1000
+	  +      (tv.tv_usec - last_close.tv_usec) / 1000;
+      }
+      else 
+	timeout = -1;
+
+      if(current != input_playing) {
+	input_playing = current;
+	if(current)
+	  DEBUG(("[crossfade] buffer_thread_f:"
+		 " input restarted after %ld ms\n", timeout))
+	else
+	  DEBUG(("[crossfade] buffer_thread_f:"
+		 " input stopped after + %ld ms\n", timeout));
+      }
+
+      /* 0.3.0: HACK: output_keep_opened: play silence during prebuffering */
+      if(input_playing && config->output_keep_opened && (buffer->used == 0)) {
+	buffer->silence     = 0;
+	buffer->silence_len = MS2B(100);
+      }
+
+      /* FIXME: make timeout configureable */
+      if(((timeout < 0) || (timeout >= 100)) && !input_playing) {
+	if(playing)
+	  DEBUG(("[crossfade] buffer_thread_f: timeout:"
+		 " input did not restart after %ld ms (playing=%d)\n", timeout, playing));
+	stopping = TRUE;
+      }
+    }
+
+    /* V0.2.4: Moved the timeout checks in front of the buffer_free() check
+     *         below. Before, buffer_thread_f could (theoretically) loop
+     *         endlessly if buffer_free() returned 0 all the time. */
+
+    /* calculate time since last write to the buffer (ignore overflows) */
+    gettimeofday(&tv, NULL);
+    timeout = (tv.tv_sec - last_write.tv_sec)  * 1000
+      +      (tv.tv_usec - last_write.tv_usec) / 1000;
+
+    /* check for timeout/eop (note this is the only way out of this loop) */
+    if(stopping) {
+      if(playing) {
+	DEBUG(("[crossfade] buffer_thread_f: timeout: manual stop\n"));
+
+	/* if CONFIG_STOP is of TYPE_NONE, immediatelly close the device... */
+	if((config->fc[FADE_CONFIG_STOP].type == FADE_TYPE_NONE)
+	   && !config->output_keep_opened) break;
+
+	/* special handling for pause */
+	if(paused) {
+	  DEBUG(("[crossfade] buffer_thread_f: timeout: paused, closing now...\n"));
+	  paused = FALSE;
+	  if(config->output_keep_opened)
+	    the_op->pause(0);
+	  else
+	    break;
+	}
+	else if(buffer->pause >= 0) {
+	  DEBUG(("[crossfade] buffer_thread_f: timeout: cancelling pause countdown\n"));
+	  buffer->pause = -1;
+	}
+
+	/* ...otherwise, do the fadeout first */
+	xfade_apply_fade_config(&config->fc[FADE_CONFIG_STOP]);
+
+	/* force CONFIG_START in case the user restarts playback during fadeout */
+	fade_config = &config->fc[FADE_CONFIG_START];
+	playing = FALSE;
+	eop = TRUE;
+      }
+      else {
+	if(!eop) {
+	  DEBUG(("[crossfade] buffer_thread_f: timeout: end of playback\n"));
+
+	  /* 0.3.3: undo trailing gap killer at end of playlist */
+	  if(buffer->gap_killed) {
+	    buffer->used += buffer->gap_killed;
+	    DEBUG(("[crossfade] buffer_thread_f: timeout:"
+	           " undoing trailing gap (%d ms)\n", B2MS(buffer->gap_killed)));
+	  }
+	  
+	  /* do the fadeout if applicable */
+	  if(config->fc[FADE_CONFIG_EOP].type != FADE_TYPE_NONE)
+	    xfade_apply_fade_config(&config->fc[FADE_CONFIG_EOP]);
+
+	  fade_config = &config->fc[FADE_CONFIG_START];  /* see above */
+	  eop = TRUE;
+	}
+	
+	if(buffer->used == 0) {
+	  if(config->output_keep_opened) {
+	    /* 0.3.0: play silence while keeping the output opened */
+	    buffer->silence     = 0;
+	    buffer->silence_len = MS2B(100);
+	  }
+	  else if(buffer->silence_len <= 0) {
+	    sync_output();
+	    if(opened) {
+	      DEBUG(("[crossfade] buffer_thread_f: timeout, eop: device has been reopened\n"));
+	      DEBUG(("[crossfade] buffer_thread_f: timeout, eop: -> continuing playback\n"));
+	      eop = FALSE;
+	    }
+	    else {
+	      DEBUG(("[crossfade] buffer_thread_f: timeout, eop: closing output...\n"));
+	      break;
+	    }
+	  }
+	}
+      }
+    }
+    else
+      eop = FALSE;
+
+    /* --------------------------------------------------------------------- */
+
+    /* get free space in device output buffer
+     * NOTE: disk_writer always returns <big int> here */
+    op_free = the_op->buffer_free() & -4;
+
+    /* continue waiting if there is no room in the device buffer */
+    if(op_free == 0) continue;
+
+    /* --- Limit OP buffer use (decreases latency) ------------------------- */
+
+    /* HACK: limit output plugin buffer usage to decrease latency */
+    if(config->enable_op_max_used) {
+      gint output_time  = the_op->output_time();
+      gint output_used  = the_op->written_time() - output_time;
+      gint output_limit = MS2B(config->op_max_used_ms - MIN(output_used, config->op_max_used_ms));
+
+      if(output_flush_time != output_time) {
+#ifdef SONGCHANGE_TIMEOUT
+	if(timeout < config->songchange_timeout) {
+	  /* slow down output, but always write _some_ data */
+	  if(output_limit < in_format.bps/100/2)
+	    output_limit = in_format.bps/100/2;
+
+	  if(op_free > output_limit)
+	    op_free = output_limit;
+	}
+	else {
+	  if((output_used < config->op_max_used_ms) && (op_free > output_limit))
+	    op_free = output_limit;
+	  else
+	    op_free = MIN(op_free, 2304);  /* avoid 0 */
+	}
+#else
+	/* slow down output, but always write _some_ data */
+	if(output_limit < in_format.bps/100/2)
+	  output_limit = in_format.bps/100/2;
+	
+	if(op_free > output_limit)
+	  op_free = output_limit;
+#endif
+      }
+    }
+
+    /* --- write silence --------------------------------------------------- */
+
+    if(!paused && (buffer->silence <= 0) && (buffer->silence_len >= 4)) {
+      /* write as much silence as a) there is left and b) the device can take */
+      length = buffer->silence_len;
+      if(length > op_free) length = op_free;
+      
+      /* make sure we always operate on stereo sample boundary */
+      length &= -4;
+
+      /* HACK: don't stay in here too long when in realtime mode (see below) */
+      if(realtime) gettimeofday(&mark, NULL);
+
+      /* write length bytes to the device */
+      length_bak = length;
+      while(length > 0) {
+	data = zero_4k;
+	blen = sizeof(zero_4k);
+	if(blen > length) blen = length;
+
+	/* make sure zero_4k is cleared. The effect plugin within
+	 * the output plugin may have modified this buffer! (0.2.8) */
+	memset(zero_4k, 0, blen);
+
+	/* HACK: the original OSS plugin hangs when writing large
+         * blocks (greater than device buffer size) in realtime mode */
+	if(the_op_config.max_write_enable && (blen > the_op_config.max_write_len))
+	  blen = the_op_config.max_write_len;
+
+	/* finally, write data */
+	the_op->write_audio(data, blen);
+	length -= blen;
+	
+	/* HACK: don't stay in here too long (force yielding every 10 ms) */
+	if(realtime) {
+	  gettimeofday(&tv, NULL);
+	  dt = (tv.tv_sec - mark.tv_sec)  * 1000 
+	    + (tv.tv_usec - mark.tv_usec) / 1000;
+	  if(dt >= 10) break;
+	}
+      }
+
+      /* calculate how many bytes actually have been written */
+      length = length_bak - length;
+    }
+
+    else /* --- write data ------------------------------------------------- */
+
+    if(!paused && (buffer->preload <= 0) && (buffer->used >= 4)) {
+      /* write as much data as a) is available and b) the device can take */
+      length = buffer->used;
+      if(length > op_free) length = op_free;
+
+      /* HACK: throttle output (used with fast output plugins) */
+      if(the_op_config.throttle_enable && !realtime && opened
+#ifdef SONGCHANGE_TIMEOUT
+	 && (timeout < config->songchange_timeout)
+#endif
+	 ) {
+	sync = buffer->sync_size - (buffer->size - buffer->used);
+	if(sync < 0)
+	  length = 0;
+	else if(sync < length)
+	  length = sync;
+      }
+
+      /* clip length to silence countdown (if applicable) */
+      if((buffer->silence >= 4) && (length > buffer->silence))
+	length = buffer->silence;
+
+      /* clip length to reopen countdown (if applicable) */
+      if((buffer->reopen >= 0) && (length > buffer->reopen))
+	length = buffer->reopen;
+
+      /* clip length to pause countdown (if applicable) */
+      if((buffer->pause >= 0) && (length > buffer->pause))
+	length = buffer->pause;
+
+      /* make sure we always operate on stereo sample boundary */
+      length &= -4;
+
+      /* HACK: don't stay in here too long when in realtime mode (see below) */
+      if(realtime) gettimeofday(&mark, NULL);
+
+      /* write length bytes to the device */
+      length_bak = length;
+      while(length > 0) {
+	data = buffer->data + buffer->rd_index;
+	blen = buffer->size - buffer->rd_index;
+	if(blen > length) blen = length;
+
+	/* HACK: the original OSS plugin hangs when writing large
+         * blocks (greater than device buffer size) in realtime mode */
+	if(the_op_config.max_write_enable
+	   && (blen > the_op_config.max_write_len))
+	  blen = the_op_config.max_write_len;
+
+#ifdef HAVE_LIBFFTW
+	/* fft playground */
+	fft_flow(&fft_context, (gpointer)data, blen);
+#endif
+
+	/* finally, write data */
+	the_op->write_audio(data, blen);
+
+	buffer->rd_index = (buffer->rd_index + blen) % buffer->size;
+	buffer->used -= blen;
+	length -= blen;
+	
+	/* HACK: don't stay in here too long (force yielding every 10 ms) */
+	if(realtime) {
+	  gettimeofday(&tv, NULL);
+	  dt = (tv.tv_sec - mark.tv_sec)  * 1000 
+	    + (tv.tv_usec - mark.tv_usec) / 1000;
+	  if(dt >= 10) break;
+	}
+      }
+
+      /* calculate how many bytes actually have been written */
+      length = length_bak - length;
+    }
+    else
+      length = 0;
+
+    /* update realtime throttling */
+    output_written   += length;
+    output_streampos += length;
+
+    /* --- check countdowns ------------------------------------------------ */
+
+    if(buffer->silence > 0) {
+      buffer->silence -= length;
+      if(buffer->silence < 0)
+	DEBUG(("[crossfade] buffer_thread_f: WARNING: silence overrun: %d\n",
+	       buffer->silence));
+    }
+    else if(buffer->silence_len > 0) {
+      buffer->silence_len -= length;
+      if(buffer->silence_len <= 0) {
+	if(buffer->silence_len < 0)
+	  DEBUG(("[crossfade] buffer_thread_f: WARNING: silence_len overrun: %d\n",
+		 buffer->silence_len));
+      }
+    }      
+
+    if((buffer->reopen >= 0) && !((buffer->silence <= 0) && (buffer->silence_len > 0))) {
+      buffer->reopen -= length;
+      if(buffer->reopen <= 0) {
+	if(buffer->reopen < 0)
+	  DEBUG(("[crossfade] buffer_thread_f: WARNING: reopen overrun: %d\n",
+		 buffer->reopen));
+
+	DEBUG(("[crossfade] buffer_thread_f: closing/reopening device\n"));
+	if(buffer->reopen_sync) sync_output();
+
+	if(the_op->close_audio) the_op->close_audio();
+	if(!the_op->open_audio(out_format.fmt, out_format.rate, out_format.nch)) {
+	  DEBUG(("[crossfade] buffer_thread_f: reopening output plugin failed!\n"));
+	  g_free(buffer->data);
+	  output_opened = FALSE;
+	  g_static_mutex_unlock(&buffer_mutex);
+	  g_thread_exit(0);
+	}
+
+	output_flush_time = 0;
+	output_written    = 0;
+	output_streampos  = 0;
+
+	/* We need to take the leading gap killer into account here:
+	 * It will fix streampos only after gapkilling has finished.
+	 * So, if gapkilling is still in progress at this point, we
+	 * have to fix it ourselves. */
+	output_offset = buffer->used;
+	if((buffer->gap_len > 0) && (buffer->gap > 0))
+	  output_offset += buffer->gap_len - buffer->gap;
+	output_offset = B2MS(output_offset) - xfade_written_time();
+
+	/* make sure reopen is not 0 */
+	buffer->reopen = -1;
+      }
+    }
+
+    if(buffer->pause >= 0) {
+      buffer->pause -= length;
+      if(buffer->pause <= 0) {
+	if(buffer->pause < 0)
+	  DEBUG(("[crossfade] buffer_thread_f: WARNING: pause overrun: %d\n",
+		 buffer->pause));
+
+	DEBUG(("[crossfade] buffer_thread_f: pausing output\n"));
+
+	paused = TRUE;
+	sync_output();
+
+	if(!paused)
+	  DEBUG(("[crossfade] buffer_thread_f: unpause during sync\n"))
+	else
+	  the_op->pause(1);
+
+	buffer->pause = -1;
+      }
+    }
+  }
+  
+  /* ----------------------------------------------------------------------- */
+
+  /* cleanup: close output */
+  if(output_opened) {
+    xfade_stop_monitor();
+
+    if(!finishing) {
+      if(the_op->close_audio) the_op->close_audio();
+      g_free(buffer->data);
+      output_opened = FALSE;
+    }
+  }
+  else
+    DEBUG(("[crossfade] buffer_thread_f: output already closed!\n"));
+
+  /* acknowledge 'finishing' (see fini()) */
+  finishing = FALSE;
+
+  /* ----------------------------------------------------------------------- */
+
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+
+  /* done */
+  DEBUG(("[crossfade] buffer_thread_f: thread finished\n"));
+  g_thread_exit(0);
+
+  return NULL;  /* avoid compiler warning */
+}
+
+void
+xfade_close_audio()
+{
+  DEBUG(("[crossfade] close:\n"));
+
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  /* sanity... the vorbis plugin likes to call close_audio() twice */
+  if(!opened) {
+    DEBUG(("[crossfade] close: WARNING: not opened!\n"));
+    g_static_mutex_unlock(&buffer_mutex);
+    return;
+  }
+
+  /* HACK: FIXME: */
+  if(input_stopped_for_restart && input_stopped_for_restart())
+     DEBUG(("[crossfade] close: playback will restart soon\n"));
+
+  if(playing) {
+    /* immediatelly close output when paused */
+    if(paused) {
+      buffer->pause = -1;
+      paused = FALSE;
+      if(config->output_keep_opened) {
+	buffer->used = 0;
+	the_op->flush(0);
+	the_op->pause(0);
+      }
+      else
+	stopped = TRUE;
+    }
+
+    /* HACK: If playlist_get_info_going is not true here,
+     *       XMMS is about to exit. In this case, we stop
+     *       the buffer thread before returning from this
+     *       function. Otherwise, SEGFAULT may occur when
+     *       XMMS tries to cleanup an output plugin which
+     *       we are still using.
+     *
+     * NOTE: This hack has become obsolete as of 0.3.5.
+     *       See output_list_hack().
+     */
+#if 0
+    if((xmms_playlist_get_info_going && !*xmms_playlist_get_info_going) ||
+       (xmms_is_quitting             &&  *xmms_is_quitting)) {
+      DEBUG(("[crossfade] close: stop (about to quit)\n"))
+  
+#if 1
+      /* wait for buffer thread to clean up and terminate */
+      stopped = TRUE;
+      while(output_opened) {
+	g_static_mutex_unlock(&buffer_mutex);
+	xmms_usleep(10000);
+	g_static_mutex_lock(&buffer_mutex);
+      }
+#endif
+    }
+    else
+#endif
+      DEBUG(("[crossfade] close: stop\n"));
+
+    fade_config = &config->fc[FADE_CONFIG_MANUAL];
+  }
+  else {
+    DEBUG(("[crossfade] close: songchange/eop\n"));
+
+    /* kill trailing gap (does not use buffer->gap_*) */
+    if(output_opened && xfade_cfg_gap_trail_enable(config)) {
+      gint gap_len   = MS2B(xfade_cfg_gap_trail_len(config)) & -4;
+      gint gap_level = xfade_cfg_gap_trail_level(config);
+      gint length    = MIN(gap_len, buffer->used);
+
+      DEBUG(("[crossfade] close: len=%d level=%d length=%d\n", gap_len, gap_level, length));
+      
+      buffer->gap_killed = 0;
+      while(length > 0) {
+	gint wr_xedni = (buffer->rd_index + buffer->used-1) % buffer->size + 1;
+	gint     blen = MIN(length, wr_xedni);
+	gint16     *p = buffer->data + wr_xedni;
+	gint    index = 0;
+	
+	while(index < blen) {
+	  gint16 right = *--p, left = *--p;
+	  if(ABS(left) >= gap_level) break;
+	  if(ABS(right) >= gap_level) break;
+	  index += 4;
+	}
+	
+	buffer->used       -= index;
+	buffer->gap_killed += index;
+	
+	if(index < blen) break;
+	length -= blen;
+      }
+      
+      DEBUG(("[crossfade] close: trailing gap size: %d/%d ms\n",
+	     B2MS(buffer->gap_killed), B2MS(gap_len)));
+    }
+
+    /* skip to previous zero crossing */
+    if(output_opened && config->gap_crossing) {
+      int crossing;
+
+      buffer->gap_skipped = 0;
+      for(crossing = 0; crossing<4; crossing++) {
+	while(buffer->used > 0) {
+	  gint wr_xedni = (buffer->rd_index + buffer->used-1) % buffer->size + 1;
+	  gint     blen = MIN(buffer->used, wr_xedni);
+	  gint16     *p = buffer->data + wr_xedni;
+	  gint    index = 0;
+
+	  while(index < blen) {
+	    gint16 left = (--p, *--p);
+	    if((crossing & 1) ^ (left > 0)) break;
+	    index += 4;
+	  }
+
+	  buffer->used        -= index;
+	  buffer->gap_skipped += index;
+
+	  if(index < blen) break;
+	}
+      }
+      DEBUG(("[crossfade] close: skipped %d bytes to previous zero crossing\n", buffer->gap_skipped));
+
+      /* update gap_killed (for undoing gap_killer in case of EOP) */
+      buffer->gap_killed += buffer->gap_skipped;
+    }
+
+    fade_config = &config->fc[FADE_CONFIG_XFADE];
+  }
+
+  /* XMMS has left the building */
+  opened = FALSE;
+  
+  /* update last_close */
+  gettimeofday(&last_close, NULL);
+  input_playing = FALSE;
+  
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+}
+
+void
+xfade_flush(gint time)
+{
+  DEBUG(("[crossfade] flush: time=%d\n", time));
+
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  /* update streampos with new stream position (input format size) */
+  streampos = ((gint64)time * in_format.bps / 1000) & -4;
+
+  /* flush output device / apply seek crossfade */
+  if(config->fc[FADE_CONFIG_SEEK].type == FADE_TYPE_FLUSH) {
+    /* flush output plugin */
+    the_op->flush(time);
+    output_flush_time = time;
+    output_streampos  = MS2B(time);
+
+    /* flush buffer, disable leading gap killing */
+    buffer_reset(buffer, config);
+  }
+  else if(paused) {
+    fade_config_t fc;
+
+    /* clear buffer */
+    buffer->used = 0;
+
+    /* apply only the fade_in part of FADE_CONFIG_PAUSE */
+    memcpy(&fc, &config->fc[FADE_CONFIG_PAUSE], sizeof(fc));
+    fc.out_len_ms = 0;
+    fc.ofs_custom_ms = 0;
+    xfade_apply_fade_config(&fc);
+  }
+  else
+    xfade_apply_fade_config(&config->fc[FADE_CONFIG_SEEK]);
+
+  /* restart realtime throttling (should find another name for that var) */
+  output_written = 0;
+
+  /* make sure that the gapkiller is disabled */
+  buffer->gap = 0;
+
+  /* update output offset */
+  output_offset = the_op->written_time() - time
+    + B2MS(buffer->used) + B2MS(buffer->silence_len);
+
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] flush: time=%d: done.\n", time));
+#endif
+}
+
+void
+xfade_pause(short p)
+{
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  if(p) {
+    fade_config_t *fc = &config->fc[FADE_CONFIG_PAUSE];
+    if(fc->type == FADE_TYPE_PAUSE_ADV) {
+      int fade, length, n;
+      int index = buffer->rd_index;
+      int out_len     = MS2B(xfade_cfg_fadeout_len(fc)) & -4;
+      int in_len      = MS2B(xfade_cfg_fadein_len(fc)) & -4;
+      int silence_len = MS2B(xfade_cfg_offset(fc)) & -4;
+
+      /* limit fadeout/fadein len to available data in buffer */
+      if((out_len + in_len) > buffer->used) {
+	out_len = (buffer->used / 2) & -4;
+	in_len  = out_len;
+      }
+
+      DEBUG(("[crossfade] pause: paused=1 out=%d in=%d silence=%d\n",
+	     B2MS(out_len), B2MS(in_len), B2MS(silence_len)));
+      
+      /* fade out (modifies buffer directly) */
+      fade = 0;
+      length = out_len;
+      while(length > 0) {
+	gint16 *p = buffer->data + index;
+	gint blen = buffer->size - index;
+	if(blen > length) blen = length;
+	
+	for(n = blen/4; n > 0; n--) {
+	  gfloat factor = 1.0f - ((gfloat)fade / out_len);
+	  *p = (gfloat)*p * factor; p++;
+	  *p = (gfloat)*p * factor; p++;
+	  fade += 4;
+	}
+	
+	index = (index + blen) % buffer->size;
+	length -= blen;
+      }
+      
+      /* fade in (modifies buffer directly) */
+      fade = 0;
+      length = in_len;
+      while(length > 0) {
+	gint16 *p = buffer->data + index;
+	gint blen = buffer->size - index;
+	if(blen > length) blen = length;
+	
+	for(n = blen/4; n > 0; n--) {
+	  gfloat factor = (gfloat)fade / in_len;
+	  *p = (gfloat)*p * factor; p++;
+	  *p = (gfloat)*p * factor; p++;
+	  fade += 4;
+	}
+	
+	index = (index + blen) % buffer->size;
+	length -= blen;
+      }
+
+      /* start silence and pause countdowns */
+      buffer->silence     = out_len;
+      buffer->silence_len = silence_len;
+      buffer->pause       = out_len + silence_len;
+      paused = FALSE;  /* (!) will be set to TRUE in buffer_thread_f */
+    }
+    else {
+      the_op->pause(1);
+      paused = TRUE;
+      DEBUG(("[crossfade] pause: paused=1\n"));
+    }
+  }
+  else {
+    the_op->pause(0);
+    buffer->pause = -1;
+    paused = FALSE;
+    DEBUG(("[crossfade] pause: paused=0\n"));
+  }
+
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+}
+
+gint
+xfade_buffer_free()
+{
+  gint size, free;
+
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] buffer_free:\n"));
+#endif
+
+  /* sanity check */
+  if(!output_opened) {
+    DEBUG(("[crossfade] buffer_free: WARNING: output closed!\n"));
+    return buffer->sync_size;
+  }
+
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  size = buffer->size;
+
+  /* When running in realtime mode, we need to take special care here:
+   * While XMMS is writing data to the output plugin, it will not yield
+   * ANY processing time to the buffer thread. It will only stop when
+   * xfade_buffer_free() no longer reports free buffer space. */
+  if(realtime) {
+    gint64 wanted = output_written + buffer->preload_size;
+
+    /* Fix for XMMS misbehaviour (possibly a bug): If the free space as
+     * returned by xfade_buffer_free() is below a certain minimum block size
+     * (tests showed 2304 bytes), XMMS will not send more data until there
+     * is enough room for one of those blocks.
+     *
+     * This breaks preloading in realtime mode. To make sure that the pre-
+     * load buffer gets filled we request additional sync_size bytes. */
+    wanted += buffer->sync_size;
+
+    if(wanted <= size) size = wanted;
+  }
+
+  free = size - buffer->used;
+  if(free < 0) free = 0;
+  
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+
+  /* Convert to input format size. For input rates > output rate this will
+   * return less free space than actually is available, but we don't care. */
+  free /= (out_format.rate / (in_format.rate+1)) + 1;
+  if(in_format.is_8bit)  free /= 2;
+  if(in_format.nch == 1) free /= 2;
+
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] buffer_free: %d\n", free));
+#endif
+  return free;
+}
+
+gint 
+xfade_buffer_playing()
+{
+  /*  always return FALSE here (if not in pause) so XMMS immediatelly
+   *  starts playback of the next song */
+
+  /*
+   *  NOTE: this causes trouble when playing HTTP audio streams.
+   *
+   *  mpg123.lib will start prebuffering (and thus stalling output) when both
+   *  1) it's internal buffer is emptied (does happen all the time)
+   *  2) the output plugin's buffer_playing() (this function) returns FALSE
+   */
+
+  if(paused)
+    playing = TRUE;
+  else
+    playing = (is_http && (buffer->used > 0) && the_op->buffer_playing())
+      || ((buffer->reopen >= 0) || (buffer->silence > 0) || (buffer->silence_len > 0));
+
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] buffer_playing: %d\n", playing));
+#endif
+  return playing;
+}
+
+gint
+xfade_written_time()
+{
+  if(!output_opened) return 0;
+  return (gint)(streampos * 1000 / in_format.bps);
+}
+
+gint
+xfade_output_time()
+{
+  gint time;
+
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] output_time:\n"));
+#endif
+
+  /* sanity check (note: this one _does_ happen all the time) */
+  if(!output_opened) return 0;
+
+  /* lock buffer */
+  g_static_mutex_lock(&buffer_mutex);
+
+  time = the_op->output_time() - output_offset;
+  if(time < 0) time = 0;
+
+  /* unlock buffer */
+  g_static_mutex_unlock(&buffer_mutex);
+
+#ifdef DEBUG_HARDCORE
+  DEBUG(("[crossfade] output_time: time=%d\n", time));
+#endif
+  return time;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/crossfade.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,546 @@
+/* 
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *  
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifndef _CROSSFADE_H_
+#define _CROSSFADE_H_
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
+
+#include "audacious/plugin.h"
+#include "libaudacious/beepctrl.h"
+#include "libaudacious/configfile.h"
+#include "libaudacious/util.h"
+
+#include "debug.h"
+
+#undef  VOLUME_NORMALIZER
+#undef  SONGCHANGE_TIMEOUT
+
+#define OUTPUT_RATE the_rate
+#define OUTPUT_NCH  2
+#define OUTPUT_BPS (OUTPUT_RATE * OUTPUT_NCH * 2)
+
+#define SYNC_OUTPUT_TIMEOUT 2000
+
+#define OUTPUT_METHOD_BUILTIN_OSS  0
+#define OUTPUT_METHOD_PLUGIN       1
+#define OUTPUT_METHOD_BUILTIN_NULL 2
+
+#define FADE_CONFIG_XFADE   0
+#define FADE_CONFIG_MANUAL  1
+#define FADE_CONFIG_ALBUM   2
+#define FADE_CONFIG_START   3
+#define FADE_CONFIG_STOP    4
+#define FADE_CONFIG_EOP     5
+#define FADE_CONFIG_SEEK    6
+#define FADE_CONFIG_PAUSE   7
+#define FADE_CONFIG_TIMING  8
+#define MAX_FADE_CONFIGS    9
+
+#define FADE_TYPE_REOPEN      0
+#define FADE_TYPE_FLUSH       1
+#define FADE_TYPE_NONE        2
+#define FADE_TYPE_PAUSE       3
+#define FADE_TYPE_SIMPLE_XF   4
+#define FADE_TYPE_ADVANCED_XF 5
+#define FADE_TYPE_FADEIN      6
+#define FADE_TYPE_FADEOUT     7
+#define FADE_TYPE_PAUSE_NONE  8
+#define FADE_TYPE_PAUSE_ADV   9
+#define MAX_FADE_TYPES        10
+
+#define TYPEMASK_XFADE ((1 << FADE_TYPE_REOPEN) |	\
+			(1 << FADE_TYPE_NONE) |		\
+			(1 << FADE_TYPE_PAUSE) |	\
+			(1 << FADE_TYPE_SIMPLE_XF) |	\
+			(1 << FADE_TYPE_ADVANCED_XF))
+
+#define TYPEMASK_MANUAL ((1 << FADE_TYPE_REOPEN) |	\
+			 (1 << FADE_TYPE_FLUSH) |	\
+		         (1 << FADE_TYPE_NONE) |	\
+			 (1 << FADE_TYPE_PAUSE) |	\
+			 (1 << FADE_TYPE_SIMPLE_XF) |	\
+			 (1 << FADE_TYPE_ADVANCED_XF))
+
+#define TYPEMASK_ALBUM ((1 << FADE_TYPE_NONE))
+
+#define TYPEMASK_START ((1 << FADE_TYPE_NONE) |	\
+			(1 << FADE_TYPE_FADEIN))
+
+#define TYPEMASK_STOP ((1 << FADE_TYPE_NONE) | \
+		       (1 << FADE_TYPE_FADEOUT))
+
+#define TYPEMASK_EOP ((1 << FADE_TYPE_NONE) | \
+		      (1 << FADE_TYPE_FADEOUT))
+
+#define TYPEMASK_SEEK ((1 << FADE_TYPE_FLUSH) | \
+		       (1 << FADE_TYPE_NONE)  | \
+		       (1 << FADE_TYPE_SIMPLE_XF))
+
+#define TYPEMASK_PAUSE ((1 << FADE_TYPE_PAUSE_NONE) | \
+                        (1 << FADE_TYPE_PAUSE_ADV))
+
+#define TYPEMASK_TIMING (0)
+
+#define FC_OFFSET_NONE     0
+#define FC_OFFSET_LOCK_IN  1
+#define FC_OFFSET_LOCK_OUT 2
+#define FC_OFFSET_CUSTOM   3
+
+#define DEFAULT_OSS_ALT_AUDIO_DEVICE "/dev/dsp"
+#define DEFAULT_OSS_ALT_MIXER_DEVICE "/dev/mixer"
+#define DEFAULT_OP_CONFIG_STRING     "libOSS.so=0,1,2304,0; libdisk_writer.so=1,0,2304,1"
+#define DEFAULT_OP_NAME              "libOSS.so"
+#define DEFAULT_EP_NAME              "libnormvol.so"
+
+#define DEFAULT_OP_CONFIG			\
+{ FALSE, FALSE, 2304, FALSE }
+
+#define CONFIG_DEFAULT							\
+{ 0,                            /* output_method */			\
+  44100,                        /* output_rate */			\
+  2,                            /* output_quality */			\
+  0,                            /* oss_audio_device */			\
+  FALSE,                        /* oss_use_alt_audio_device */		\
+  NULL,                         /* oss_alt_audio_device */		\
+  0,                            /* oss_mixer_device */			\
+  FALSE,                        /* oss_use_alt_mixer_device */		\
+  NULL,                         /* oss_alt_mixer_device */		\
+  FALSE,                        /* oss_mixer_use_master */		\
+  0,                            /* oss_buffer_size_ms */		\
+  250,                          /* oss_preload_size_ms */		\
+  22,                           /* oss_fragments */			\
+  12,                           /* oss_fragment_size */			\
+  FALSE,                        /* oss_maxbuf_enable */			\
+  NULL,                         /* op_config_string */			\
+  NULL,                         /* op_name */				\
+  NULL,                         /* ep_name */				\
+  FALSE,                        /* ep_enable */				\
+  TRUE,                         /* volnorm_enable */			\
+  8000,                         /* volnorm_target */			\
+  FALSE,                        /* volnorm_use_qa */			\
+  10000,                        /* mix_size_ms */			\
+  TRUE,                         /* mix_size_auto */			\
+									\
+  {                             /* fc[MAX_FADE_CONFIGS] */		\
+    { FADE_CONFIG_XFADE,        /* config */				\
+      FADE_TYPE_ADVANCED_XF,    /* type */				\
+      2000,                     /* pause_len_ms */			\
+      6000,                     /* simple_len_ms */			\
+      TRUE, 4000, 0,            /* out_enable, _len_ms, _volume */	\
+      FC_OFFSET_CUSTOM,         /* ofs_type */				\
+      FC_OFFSET_CUSTOM, -6000,  /* ofs_type_wanted, ofs_custom_ms */	\
+      TRUE,                     /* in_locked */				\
+      FALSE, 4000, 33,          /* in_enable, _len_ms, _volume */	\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      FALSE,                    /* flush */				\
+      TYPEMASK_XFADE            /* type_mask */				\
+    },									\
+    { FADE_CONFIG_MANUAL,       /* config */				\
+      FADE_TYPE_SIMPLE_XF,      /* type */				\
+      2000,                     /* pause_len_ms */			\
+      1000,                     /* simple_len_ms */			\
+      TRUE, 500, 0,             /* out_enable, _len_ms, _volume */	\
+      FC_OFFSET_CUSTOM,         /* ofs_type */				\
+      FC_OFFSET_CUSTOM, -500,   /* ofs_type_wanted, ofs_custom_ms */	\
+      TRUE,                     /* in_locked */				\
+      FALSE, 500, 50,           /* in_enable, _len_ms, _volume */	\
+      FALSE,                    /* flush_pause_enable */		\
+      500,                      /* flush_in_len_ms */			\
+      FALSE,                    /* flush_in_enable */			\
+      500, 0,                   /* flush_in_len_ms, _volume */		\
+      TRUE,                     /* flush */				\
+      TYPEMASK_MANUAL           /* type_mask */				\
+    },									\
+    { FADE_CONFIG_ALBUM,        /* config */				\
+      FADE_TYPE_NONE,           /* type */				\
+      0,                        /* - */					\
+      0,                        /* - */					\
+      FALSE, 0, 0,              /* - */					\
+      FC_OFFSET_NONE,           /* - */					\
+      FC_OFFSET_NONE, 0,        /* - */					\
+      FALSE,                    /* - */					\
+      FALSE, 1000, 0,           /* - */					\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      FALSE,                    /* flush */				\
+      TYPEMASK_ALBUM            /* type_mask */				\
+    },									\
+    { FADE_CONFIG_START,        /* config */				\
+      FADE_TYPE_FADEIN,         /* type */				\
+      0,                        /* - */					\
+      0,                        /* - */					\
+      FALSE, 0, 0,              /* - */					\
+      FC_OFFSET_NONE,           /* - */					\
+      FC_OFFSET_NONE, 0,        /* - */					\
+      FALSE,                    /* - */					\
+      FALSE, 100, 0,            /* - in_len_ms, _volume */		\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      TRUE,                     /* flush */				\
+      TYPEMASK_START            /* type_mask */				\
+    },									\
+    { FADE_CONFIG_STOP,         /* config */				\
+      FADE_TYPE_FADEOUT,        /* type */				\
+      0,                        /* - */					\
+      0,                        /* - */					\
+      FALSE, 100, 0,            /* - out_len_ms, _volume */		\
+      FC_OFFSET_NONE,           /* - */					\
+      FC_OFFSET_NONE, 500,      /* - ofs_custom_ms */			\
+      FALSE,                    /* - */					\
+      FALSE, 0, 0,              /* - */					\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      TRUE,                     /* flush */				\
+      TYPEMASK_STOP             /* type_mask */				\
+    },									\
+    { FADE_CONFIG_EOP,          /* config */				\
+      FADE_TYPE_FADEOUT,        /* type */				\
+      0,                        /* - */					\
+      0,                        /* - */					\
+      FALSE, 100, 0,            /* - out_len_ms, _volume */		\
+      FC_OFFSET_NONE,           /* - */					\
+      FC_OFFSET_NONE, 500,      /* - ofs_custom_ms  */			\
+      FALSE,                    /* - */					\
+      FALSE, 0, 0,              /* - */					\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      FALSE,                    /* flush */				\
+      TYPEMASK_EOP              /* type_mask */				\
+    },									\
+    { FADE_CONFIG_SEEK,         /* config */				\
+      FADE_TYPE_SIMPLE_XF,      /* type */				\
+      0,                        /* - */					\
+      50,                       /* simple_len_ms */			\
+      FALSE, 0, 0,              /* - */					\
+      FC_OFFSET_NONE,           /* - */					\
+      FC_OFFSET_NONE, 0,        /* - */					\
+      FALSE,                    /* - */					\
+      FALSE, 1000, 0,           /* - */					\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      TRUE,                     /* flush */				\
+      TYPEMASK_SEEK             /* type_mask */				\
+    },									\
+    { FADE_CONFIG_PAUSE,        /* config */				\
+      FADE_TYPE_PAUSE_ADV,      /* type */				\
+      0,                        /* - */					\
+      0,                        /* - */					\
+      TRUE, 100, 0,             /* - out_len_ms, - */			\
+      FC_OFFSET_NONE,           /* - */					\
+      FC_OFFSET_NONE, 100,      /* - ofs_custom_ms */			\
+      FALSE,                    /* - */					\
+      TRUE, 100, 0,             /* - in_len_ms, - */			\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      FALSE,                    /* - */					\
+      TYPEMASK_PAUSE            /* type_mask */				\
+    },									\
+    { FADE_CONFIG_TIMING,       /* config */				\
+      FADE_TYPE_NONE,           /* type */				\
+      0,                        /* - */					\
+      0,                        /* - */					\
+      TRUE, 0, 0,               /* out_enable, _len_ms, - */		\
+      FC_OFFSET_CUSTOM,         /* - */					\
+      FC_OFFSET_CUSTOM, 0,      /* - ofs_custom_ms */			\
+      FALSE,                    /* - */					\
+      TRUE, 0, 0,               /* in_enable, _len_ms, - */		\
+      FALSE,                    /* - */					\
+      0,                        /* - */					\
+      FALSE,                    /* - */					\
+      0, 0,                     /* - */					\
+      FALSE,                    /* flush */				\
+      TYPEMASK_TIMING           /* type_mask */				\
+    }									\
+  },									\
+  TRUE,                         /* gap_lead_enable */			\
+  500,                          /* gap_lead_len_ms */			\
+  512,                          /* gap_lead_level */			\
+  TRUE,                         /* gap_trail_enable */			\
+  500,                          /* gap_trail_len_ms */			\
+  512,                          /* gap_trail_level */			\
+  TRUE,                         /* gap_trail_locked */			\
+  TRUE,                         /* gap_crossing */			\
+  FALSE,                        /* enable_debug */			\
+  FALSE,                        /* enable_monitor */			\
+  TRUE,                         /* enable_mixer */			\
+  FALSE,                        /* mixer_reverse */			\
+  FALSE,                        /* mixer_software */			\
+  75,                           /* mixer_vol_left */			\
+  75,                           /* mixer_vol_right */			\
+  500,                          /* songchange_timeout */		\
+  0,                            /* preload_size_ms */			\
+  TRUE,                         /* album detection */			\
+  FALSE,                        /* no_xfade_if_same_file */		\
+  FALSE,                        /* enable_http_workaround */		\
+  FALSE,                        /* enable_op_max_used */		\
+  250,                          /* op_max_used_ms */			\
+  FALSE,                        /* output_keep_opened */		\
+  NULL,                         /* presets */				\
+  250                           /* sync_size_ms */			\
+}
+
+
+#define DEBUG(x)  {if(config->enable_debug) debug x;}
+#define PERROR(x) {if(config->enable_debug) perror(x);}
+
+#define WRAP(x,n) (((x)<0)?((n)-(x))%(n):((x)%(n)))
+#define B2MS(x)   ((gint)((gint64)(x)*1000/OUTPUT_BPS))
+#define MS2B(x)   ((gint)((gint64)(x)*OUTPUT_BPS/1000))
+
+
+/* get plugin info (imported by XMMS) */
+OutputPlugin *get_oplugin_info();
+OutputPlugin *get_crossfade_oplugin_info();
+
+/* xmms internal prototypes */ /* XMMS */
+gint     ctrlsocket_get_session_id();
+#ifndef HAVE_BEEP
+gboolean get_input_playing();
+#else
+gboolean bmp_playback_get_playing();
+#endif
+GList   *get_output_list();
+GList   *get_effect_list();
+gint     get_playlist_position();
+gint     playlist_get_current_length();
+#ifdef HAVE_PLAYLIST_GET_FILENAME
+gchar *playlist_get_filename(gint pos);
+#endif
+
+/* config change callbacks */
+void xfade_realize_config();
+void xfade_realize_ep_config();
+
+
+typedef struct
+{
+  gint mix_size;        /* mixing buffer length */
+  gint sync_size;       /* additional buffer space for mix timing */
+  gint preload_size;    /* preload buffer length */
+
+  /* ---------------------------------------------------------------------- */
+
+  gpointer data;        /* buffer */
+  gint     size;        /* total buffer length */
+
+  /* ---------------------------------------------------------------------- */
+
+  gint   used;          /* length */
+  gint   rd_index;      /* offset */
+
+  gint   preload;       /* > 0: preloading */
+
+  /* ---------------------------------------------------------------------- */
+
+  gint   mix;           /* > 0: mixing new data into buffer */
+
+  gint   fade;          /* > 0: fading in new data */
+  gint   fade_len;      /* length of fadein */
+  gfloat fade_scale;    /* 1.0f - in_level */
+
+#define GAP_SKIPPING_POSITIVE -1
+#define GAP_SKIPPING_NEGATIVE -2
+#define GAP_SKIPPING_DONE     -3
+  gint   gap;           /* > 0: removing (leading) gap */
+  gint   gap_len;       /* max. len of gap, 0=disabled */
+  gint   gap_level;     /* max. sample value+1 to be considered "silent" */
+  gint   gap_killed;    /* number of bytes that were killed last time */
+  gint   gap_skipped;   /* negative/positive samples skipped */
+
+  /* ---------------------------------------------------------------------- */
+
+  gint   silence;       /* > 0: delay until start of silence */
+  gint   silence_len;   /* > 0: inserting silence */
+
+  gint     reopen;      /* >= 0: countdown to reopen device (disk_writer hack) */
+  gboolean reopen_sync; /* TRUE: sync output plugin before reopening */
+
+  gint     pause;       /* >= 0: countdown to pause output plugin */
+}
+buffer_t;
+
+typedef struct
+{
+  gint     config;              // one of FADE_CONFIG_*, constant
+  gint     type;                // one of FADE_TYPE_*
+
+  gint     pause_len_ms;        // PAUSE
+
+  gint     simple_len_ms;       // SIMPLE_XF
+
+  gboolean out_enable;          // ADVANCED_XF
+  gint     out_len_ms;          // ADVANCED_XF, FADEOUT, PAUSE
+  gint     out_volume;          // ADVANCED_XF, FADEOUT
+
+  gint     ofs_type;            // ADVANCED_XF
+  gint     ofs_type_wanted;     // ADVANCED_XF
+  gint     ofs_custom_ms;       // ADVANCED_XF, FADEOUT (additional silence), PAUSE
+
+  gboolean in_locked;           // ADVANCED_XF
+  gboolean in_enable;           // ADVANCED_XF, FLUSH
+  gint     in_len_ms;           // ADVANCED_XF, FLUSH, FADEIN, PAUSE
+  gint     in_volume;           // ADVANCED_XF, FLUSH, FADEIN
+
+  gboolean flush_pause_enable;  // FLUSH
+  gint     flush_pause_len_ms;  // FLUSH
+  gboolean flush_in_enable;     // FLUSH
+  gint     flush_in_len_ms;     // FLUSH
+  gint     flush_in_volume;     // FLUSH
+
+  /* additional stuff which is not configureable by the user */
+  gboolean flush;               // TRUE for manual, FALSE for xfade config
+  guint32  type_mask;           // bitmask for FADE_TYPEs
+}
+fade_config_t;
+
+typedef struct
+{
+  gboolean  throttle_enable;
+  gboolean  max_write_enable;
+  gint      max_write_len;
+  gboolean  force_reopen;
+}
+plugin_config_t;
+
+typedef struct
+{
+  /* output: method */
+  gint output_method;
+  gint output_rate;
+  gint output_quality;
+
+  /* output: builtin OSS */
+  gint     oss_audio_device;
+  gboolean oss_use_alt_audio_device;
+  gchar   *oss_alt_audio_device;
+
+  gint     oss_mixer_device;
+  gboolean oss_use_alt_mixer_device;
+  gchar   *oss_alt_mixer_device;
+  gboolean oss_mixer_use_master;
+
+  gint     oss_buffer_size_ms;
+  gint     oss_preload_size_ms;
+
+  gint     oss_fragments;
+  gint     oss_fragment_size;
+  gboolean oss_maxbuf_enable;
+
+  /* output: plugin */
+  gchar   *op_config_string;  /* stores configs for all plugins */
+  gchar   *op_name;           /* name of the current plugin */
+
+  /* effects */
+  gchar   *ep_name;
+  gboolean ep_enable;
+  gboolean volnorm_enable;
+  gboolean volnorm_use_qa;
+  gint     volnorm_target;
+
+  /* crossfader */
+  gint          mix_size_ms;
+  gboolean      mix_size_auto;
+  fade_config_t fc[MAX_FADE_CONFIGS];
+
+  /* gap killer */
+  gboolean gap_lead_enable;
+  gint     gap_lead_len_ms;
+  gint     gap_lead_level;
+
+  gboolean gap_trail_enable;
+  gint     gap_trail_len_ms;
+  gint     gap_trail_level;
+  gboolean gap_trail_locked;
+
+  gboolean gap_crossing;
+
+  /* misc */
+  gboolean enable_debug;
+  gboolean enable_monitor;
+
+  gboolean enable_mixer;
+  gboolean mixer_reverse;
+  gboolean mixer_software;
+  gint     mixer_vol_left;
+  gint     mixer_vol_right;
+
+  gint     songchange_timeout;
+  gint     preload_size_ms;
+  gboolean album_detection;
+  gboolean no_xfade_if_same_file;
+  gboolean enable_http_workaround;
+  gboolean enable_op_max_used;
+  gint     op_max_used_ms;
+  gboolean output_keep_opened;
+
+  /* presets */
+  GList   *presets;
+
+  /* additional stuff which is not configureable by the user */
+  gint     sync_size_ms;
+
+  /* additional stuff which is not saved to the config file */
+  gint     page;
+  gint     oss_page;
+  gint     xf_index;
+}
+config_t;
+
+
+/* some global vars... we should really get rid of those somehow */
+extern config_t *config;
+extern config_t  config_default;
+extern buffer_t *buffer;
+
+extern GStaticMutex buffer_mutex;
+
+extern gboolean opened;         /* XMMS-crossfade is opened */
+extern gboolean output_opened;  /* the output plugin is opened */
+extern gint     output_offset;
+extern gint64   output_streampos;
+
+extern OutputPlugin *the_op;
+extern gint          the_rate;
+
+#endif  /* _CROSSFADE_H_ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/debug.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,34 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+
+void debug(char *format, ...)
+{
+  va_list ap;
+
+  va_start(ap, format);
+  vfprintf(stderr, format, ap);
+  va_end  (ap);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/debug.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,34 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifndef __DEBUG_H__
+#define __DEBUG_H__
+
+#ifdef __GNUC__
+/* enable -Wformat with debug() */
+void debug(char *format, ...) __attribute__ ((format (printf, 1, 2)));
+#else
+void debug(char *format, ...);
+#endif
+
+#endif  /* __DEBUG_H__ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/effect.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,161 @@
+/* 
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *  
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include <string.h>
+#include "effect.h"
+
+void
+effect_init(effect_context_t *ec,
+	    EffectPlugin     *ep)
+{
+  memset(ec, 0, sizeof(*ec));
+  effect_set_plugin(ec, ep);
+}
+
+static char *
+plugin_name(EffectPlugin *ep)
+{
+  return ep->description ? ep->description : "<unnamed>";
+}
+
+
+void
+effect_set_plugin(effect_context_t *ec,
+		  EffectPlugin     *ep)
+{
+  if(ec->use_xmms_plugin && (ep == EFFECT_USE_XMMS_PLUGIN)) return;
+  if(ec->ep == ep) return;
+
+  if(ec->last_ep) {
+    if(ec->last_ep->cleanup) {
+      DEBUG(("[crossfade] effect: \"%s\" deselected, cleanup\n", plugin_name(ec->last_ep)));
+      ec->last_ep->cleanup();
+    }
+    else
+      DEBUG(("[crossfade] effect: \"%s\" deselected\n", plugin_name(ec->last_ep)));
+  }
+
+  ec->use_xmms_plugin = (ep == EFFECT_USE_XMMS_PLUGIN);
+  ec->ep        = ec->use_xmms_plugin ? NULL : ep;
+  ec->last_ep   = ec->ep;
+  ec->is_active = FALSE;
+
+  if(ec->ep) {
+    if(ec->ep->init) {
+      DEBUG(("[crossfade] effect: \"%s\" selected, init\n", plugin_name(ec->ep)));
+      ec->ep->init();
+    }
+    else
+      DEBUG(("[crossfade] effect: \"%s\" selected\n", plugin_name(ec->ep)));
+  }
+}
+
+gint
+effect_flow(effect_context_t *ec,
+	    gpointer         *buffer,
+	    gint              length,
+	    format_t         *format,
+	    gboolean          allow_format_change)
+{
+  EffectPlugin *ep;
+
+  if(ec->use_xmms_plugin ? effects_enabled() : (ec->ep != NULL)) {
+    ep = ec->use_xmms_plugin ? get_current_effect_plugin() : ec->ep;
+
+    if(ep != ec->last_ep) {
+      DEBUG(("[crossfade] effect: plugin: \"%s\"%s\n",
+	     ep ? plugin_name(ep) : "<none>",
+	     ec->use_xmms_plugin ? " (XMMS)" : ""));
+      ec->last_ep   = ep;
+      ec->is_active = FALSE;
+    }
+    if(ep == NULL) return length;
+
+    if(ep->query_format) {
+      AFormat fmt  = format->fmt;
+      gint    rate = format->rate;
+      gint    nch  = format->nch;
+      
+      ep->query_format(&fmt, &rate, &nch);
+      if(!ec->is_active
+	 || (ec->fmt  != fmt)
+	 || (ec->rate != rate)
+	 || (ec->nch  != nch)) {
+	if(!allow_format_change && (!format_match(fmt, format->fmt) ||
+				    (rate != format->rate) ||
+				    (nch  != format->nch))) {
+	  DEBUG(("[crossfade] effect: format mismatch: "
+		 "in=(%s/%d/%d) out=(%s/%d/%d)\n",
+		 format_name(format->fmt), format->rate, format->nch,
+		 format_name(fmt), rate, nch));
+	  ec->is_valid = FALSE;
+	}
+	else {
+	  if(setup_format(fmt, rate, nch, &ec->format) < 0) {
+	    DEBUG(("[crossfade] effect: format not supported "
+		   "(fmt=%s rate=%d nch=%d)!\n",
+		   format_name(fmt), rate, nch));
+	    ec->is_valid = FALSE;
+	  }
+	  else {
+	    ec->is_valid = TRUE;
+	    DEBUG(("[crossfade] effect: plugin enabled "
+		   "(fmt=%s rate=%d nch=%d)\n", format_name(fmt), rate, nch));
+	  }
+	}
+
+	ec->is_active = TRUE;
+	ec->fmt       = fmt;
+	ec->rate      = rate;
+	ec->nch       = nch;
+      }
+      if(ec->is_valid && ep->mod_samples) {
+	length = ep->mod_samples(buffer, length, format->fmt, format->rate, format->nch);
+	if(allow_format_change) format_copy(format, &ec->format);
+      }
+    }
+    else {
+      ec->is_active = TRUE;
+      if(ep->mod_samples)
+	length = ep->mod_samples(buffer, length, format->fmt, format->rate, format->nch);
+    }
+  }
+  else if(ec->is_active) {
+    ec->is_active = FALSE;
+    DEBUG(("[crossfade] effect: plugin disabled\n"));
+  }
+
+  return length;
+}
+
+void
+effect_free(effect_context_t *ec)
+{
+  /* nothing to do */
+}
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/effect.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,60 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifndef __EFFECT_H__
+#define __EFFECT_H__
+
+#include "crossfade.h"
+#include "format.h"
+
+#include <glib.h>
+
+
+#define EFFECT_USE_XMMS_PLUGIN GINT_TO_POINTER(-1)
+
+typedef struct
+{
+  EffectPlugin *ep;
+  EffectPlugin *last_ep;
+  gboolean      use_xmms_plugin;
+  gboolean      is_active;
+  gboolean      is_valid;
+  format_t      format;
+  AFormat       fmt;
+  gint          rate;
+  gint          nch;
+}
+effect_context_t;
+
+void effect_init      (effect_context_t *ec,
+		       EffectPlugin     *ep);
+void effect_set_plugin(effect_context_t *ec,
+		       EffectPlugin     *ep);
+gint effect_flow      (effect_context_t *ec,
+		       gpointer         *buffer,
+		       gint              length,
+		       format_t         *format,
+		       gboolean          allow_format_change);
+void effect_free      (effect_context_t *ec);
+
+#endif  /* _EFFECT_H_ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/export.sym	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,1 @@
+get_oplugin_info
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/fft.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,115 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+/*
+ *  FFT/volume playground. Does not do anything usefull yet.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include "fft.h"
+
+#include <math.h>
+#ifdef HAVE_RFFTW_H
+#  include <rfftw.h>
+#endif
+
+
+void
+fft_init(fft_context_t *fftc)
+{
+  DEBUG(("[crossfade] fft_init: fftc=0x%08lx\n", (glong)fftc));
+  if(!fftc) return;
+
+  memset(fftc, 0, sizeof(*fftc));
+  fftc->num_bands = 32;
+  fftc->plan      = rfftw_create_plan(fftc->num_bands, 
+				      FFTW_FORWARD,
+				      FFTW_ESTIMATE);
+  fftc->valid = TRUE;
+}
+
+void
+fft_flow(fft_context_t *fftc,
+	 gpointer       buffer,
+	 gint           length)
+{
+  gint isamp;
+  gint16 *in = buffer;
+
+  /* some sanity checks */
+  if(length & 3) {
+    DEBUG(("[crossfade] fft_flow: truncating %d bytes!", length & 3));
+    length &= -4;
+  }
+  isamp = length / 4;
+  if((isamp <= 0) || !fftc) return;
+
+  while(isamp--) {
+    gint16 val = (gint16)(((glong)*in++ + *in++)/2);
+    if(val < 0) val = -val;
+
+    if((fftc->used == 0) || (val > fftc->smooth[fftc->used-1])) {
+      int i, u;
+      if(fftc->used < FFT_SMOOTH_SIZE) {
+	fftc->smooth[fftc->used] = 0;
+	fftc->used++;
+      }
+      for(i=fftc->used-1; (i > 0) && (val > fftc->smooth[i-1]); i--);
+      for(u=fftc->used-1;  u > i; u--) fftc->smooth[i] = fftc->smooth[i-1];
+      fftc->smooth[i] = val;
+    }
+
+    if(fftc->ival++ == FFT_INTERVAL) {
+      int i, vu;
+
+      if(fftc->used) {
+	int sum=0;
+	for(i=0; i < fftc->used; i++)
+	  sum += fftc->smooth[i];
+	vu = (gint)((gfloat)sum/fftc->used/32768.0 * 100.0);
+	fftc->used = 0;
+      }
+      else
+	vu = 0;
+
+      DEBUG(("[crossfade] fft_flow: %03d %s\n", vu,
+	     "****************************************************************************************************"
+	     +100-MIN(vu,100)));
+
+      fftc->used = 0;
+      fftc->ival = 0;
+    }
+  }
+}
+
+void
+fft_free(fft_context_t *fftc)
+{
+  if(fftc->valid)
+    rfftw_destroy_plan(fftc->plan);
+  memset(fftc, 0, sizeof(*fftc));
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/format.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,145 @@
+/* 
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *  
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include <string.h>
+#include "format.h"
+
+gboolean
+setup_format(AFormat fmt, gint rate, gint nch, format_t *format)
+{
+  format->bps         = 0;
+  format->fmt         = fmt;
+  format->is_8bit     = FALSE;
+  format->is_swapped  = FALSE;
+  format->is_unsigned = FALSE;
+
+  /* check format */
+  switch(fmt) {
+  case FMT_U8:
+    format->is_8bit = TRUE;
+    format->is_unsigned = TRUE;
+    break;
+  case FMT_S8:
+    format->is_8bit = TRUE;
+    break;
+  case FMT_U16_LE:
+    format->is_unsigned = TRUE;
+#ifdef WORDS_BIGENDIAN
+    format->is_swapped = TRUE;
+#endif
+    break;
+  case FMT_U16_BE:
+    format->is_unsigned = TRUE;
+#ifndef WORDS_BIGENDIAN
+    format->is_swapped = TRUE;
+#endif
+    break;
+  case FMT_U16_NE:
+    format->is_unsigned = TRUE;
+    break;
+  case FMT_S16_LE:
+#ifdef WORDS_BIGENDIAN
+    format->is_swapped = TRUE;
+#endif
+    break;
+  case FMT_S16_BE:
+#ifndef WORDS_BIGENDIAN
+    format->is_swapped = TRUE;
+#endif
+    break;
+  case FMT_S16_NE:
+    break;
+  default:
+    DEBUG(("[crossfade] setup_format: unknown format (%d)!\n", fmt));
+    return -1;
+  }
+
+  /* check rate */
+  if((rate < 1) || (rate > 65535)) {
+    DEBUG(("[crossfade] setup_format: illegal rate (%d)!\n", rate));
+    return -1;
+  }
+  format->rate = rate;
+  
+  /* check channels */
+  switch(nch) {
+  case 1:
+  case 2:
+    format->nch = nch;
+    break;
+  default:
+    DEBUG(("[crossfade] setup_format: illegal # of channels (%d)!\n", nch));
+    return -1;
+  }
+
+  /* calculate bps */
+  format->bps = rate * nch;
+  if(!format->is_8bit) format->bps *= 2;
+
+  return 0;
+}
+
+gboolean format_match(AFormat fmt1, AFormat fmt2)
+{
+  if(fmt1 == fmt2) return TRUE;  /* exact match */
+
+  if((fmt2 == FMT_U16_NE) || (fmt2 == FMT_S16_NE)) {
+    AFormat fmt = fmt1;
+    fmt1 = fmt2;
+    fmt2 = fmt;
+  }
+
+#ifdef WORDS_BIGENDIAN
+  if(((fmt1 == FMT_U16_NE) && (fmt2 == FMT_U16_BE))
+  || ((fmt1 == FMT_S16_NE) && (fmt2 == FMT_S16_BE))) return TRUE;
+#else
+  if(((fmt1 == FMT_U16_NE) && (fmt2 == FMT_U16_LE))
+  || ((fmt1 == FMT_S16_NE) && (fmt2 == FMT_S16_LE))) return TRUE;
+#endif
+
+  return FALSE;  /* no match */
+}
+
+gchar *format_name(AFormat fmt)
+{
+  switch(fmt) {
+  case FMT_U8:     return "FMT_U8";
+  case FMT_S8:     return "FMT_S8";
+  case FMT_U16_LE: return "FMT_U16_LE";
+  case FMT_U16_BE: return "FMT_U16_BE";
+  case FMT_U16_NE: return "FMT_U16_NE";
+  case FMT_S16_LE: return "FMT_S16_LE";
+  case FMT_S16_BE: return "FMT_S16_BE";
+  case FMT_S16_NE: return "FMT_S16_NE";
+  }
+  return "UNKNOWN";
+}
+
+void format_copy(format_t *dest, format_t *src)
+{
+  memcpy(dest, src, sizeof(format_t));
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/format.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,56 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+/*
+ *  Verify format and setup a struct format_t
+ *  Returns -1 if an illegal format has been specified
+ */
+
+#ifndef __FORMAT_H__
+#define __FORMAT_H__
+
+#include "crossfade.h"
+
+typedef struct {
+  AFormat  fmt;
+  gint     rate;
+  gint     nch;
+
+  gint     bps;             /* format is valid if (bps > 0) */
+  gboolean is_8bit;
+  gboolean is_swapped;
+  gboolean is_unsigned;
+}
+format_t;
+
+gboolean setup_format(AFormat   fmt,
+		      gint      rate,
+		      gint      nch,
+		      format_t *format);
+
+gboolean format_match(AFormat fmt1, AFormat fmt2);
+gchar *  format_name (AFormat fmt);
+
+void format_copy(format_t *dest, format_t *src);
+
+#endif  /* _FORMAT_H_ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/interface-2.0.glade	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,6460 @@
+<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
+<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
+
+<glade-interface>
+
+<widget class="GtkWindow" id="config_win">
+  <property name="visible">True</property>
+  <property name="title" translatable="yes">Crossfade Configuration</property>
+  <property name="type">GTK_WINDOW_TOPLEVEL</property>
+  <property name="window_position">GTK_WIN_POS_NONE</property>
+  <property name="modal">False</property>
+  <property name="resizable">True</property>
+  <property name="destroy_with_parent">False</property>
+  <property name="decorated">True</property>
+  <property name="skip_taskbar_hint">False</property>
+  <property name="skip_pager_hint">False</property>
+  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
+  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+
+  <child>
+    <widget class="GtkVBox" id="config_vbox">
+      <property name="border_width">10</property>
+      <property name="visible">True</property>
+      <property name="homogeneous">False</property>
+      <property name="spacing">10</property>
+
+      <child>
+	<widget class="GtkNotebook" id="config_notebook">
+	  <property name="visible">True</property>
+	  <property name="can_focus">True</property>
+	  <property name="show_tabs">True</property>
+	  <property name="show_border">True</property>
+	  <property name="tab_pos">GTK_POS_TOP</property>
+	  <property name="scrollable">False</property>
+	  <property name="enable_popup">False</property>
+
+	  <child>
+	    <widget class="GtkVBox" id="config_output_page">
+	      <property name="border_width">5</property>
+	      <property name="visible">True</property>
+	      <property name="homogeneous">False</property>
+	      <property name="spacing">5</property>
+
+	      <child>
+		<widget class="GtkHBox" id="output_options_hbox">
+		  <property name="visible">True</property>
+		  <property name="homogeneous">False</property>
+		  <property name="spacing">6</property>
+
+		  <child>
+		    <widget class="GtkFrame" id="output_method_frame">
+		      <property name="visible">True</property>
+		      <property name="label_xalign">0</property>
+		      <property name="label_yalign">0.5</property>
+		      <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		      <child>
+			<widget class="GtkVBox" id="output_method_vbox">
+			  <property name="border_width">5</property>
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">2</property>
+
+			  <child>
+			    <widget class="GtkRadioButton" id="output_oss_radio">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">Use XMMS-crossfade's builtin OSS driver for output.</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">Builtin OSS driver</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			      <signal name="toggled" handler="on_output_oss_radio_toggled"/>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkRadioButton" id="output_plugin_radio">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">Use an existing plugin for output.</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">Output plugin</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			      <property name="group">output_oss_radio</property>
+			      <signal name="toggled" handler="on_output_plugin_radio_toggled"/>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkRadioButton" id="output_none_radio">
+			      <property name="sensitive">False</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">None [not implemented]</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			      <property name="group">output_oss_radio</property>
+			      <signal name="toggled" handler="on_output_none_radio_toggled"/>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+			</widget>
+		      </child>
+
+		      <child>
+			<widget class="GtkLabel" id="label1">
+			  <property name="visible">True</property>
+			  <property name="label" translatable="yes">Output method</property>
+			  <property name="use_underline">False</property>
+			  <property name="use_markup">False</property>
+			  <property name="justify">GTK_JUSTIFY_LEFT</property>
+			  <property name="wrap">False</property>
+			  <property name="selectable">False</property>
+			  <property name="xalign">0.5</property>
+			  <property name="yalign">0.5</property>
+			  <property name="xpad">0</property>
+			  <property name="ypad">0</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
+			</widget>
+			<packing>
+			  <property name="type">label_item</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">True</property>
+		      <property name="fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkFrame" id="output_resampling_frame">
+		      <property name="visible">True</property>
+		      <property name="label_xalign">0</property>
+		      <property name="label_yalign">0.5</property>
+		      <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		      <child>
+			<widget class="GtkTable" id="output_resampling_table">
+			  <property name="border_width">5</property>
+			  <property name="visible">True</property>
+			  <property name="n_rows">2</property>
+			  <property name="n_columns">2</property>
+			  <property name="homogeneous">False</property>
+			  <property name="row_spacing">2</property>
+			  <property name="column_spacing">2</property>
+
+			  <child>
+			    <widget class="GtkHBox" id="resampling_rate_hbox">
+			      <property name="visible">True</property>
+			      <property name="homogeneous">False</property>
+			      <property name="spacing">0</property>
+
+			      <child>
+				<widget class="GtkLabel" id="resampling_rate_label">
+				  <property name="visible">True</property>
+				  <property name="label" translatable="yes">Rate:</property>
+				  <property name="use_underline">False</property>
+				  <property name="use_markup">False</property>
+				  <property name="justify">GTK_JUSTIFY_LEFT</property>
+				  <property name="wrap">False</property>
+				  <property name="selectable">False</property>
+				  <property name="xalign">0.5</property>
+				  <property name="yalign">0.5</property>
+				  <property name="xpad">0</property>
+				  <property name="ypad">0</property>
+				  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				  <property name="width_chars">-1</property>
+				  <property name="single_line_mode">False</property>
+				  <property name="angle">0</property>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				  <property name="pack_type">GTK_PACK_END</property>
+				</packing>
+			      </child>
+			    </widget>
+			    <packing>
+			      <property name="left_attach">0</property>
+			      <property name="right_attach">1</property>
+			      <property name="top_attach">0</property>
+			      <property name="bottom_attach">1</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkHBox" id="resampling_quality_hbox">
+			      <property name="visible">True</property>
+			      <property name="homogeneous">False</property>
+			      <property name="spacing">0</property>
+
+			      <child>
+				<widget class="GtkLabel" id="resampling_quality_label">
+				  <property name="visible">True</property>
+				  <property name="label" translatable="yes">Quality:</property>
+				  <property name="use_underline">False</property>
+				  <property name="use_markup">False</property>
+				  <property name="justify">GTK_JUSTIFY_LEFT</property>
+				  <property name="wrap">False</property>
+				  <property name="selectable">False</property>
+				  <property name="xalign">0.5</property>
+				  <property name="yalign">0.5</property>
+				  <property name="xpad">0</property>
+				  <property name="ypad">0</property>
+				  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				  <property name="width_chars">-1</property>
+				  <property name="single_line_mode">False</property>
+				  <property name="angle">0</property>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				  <property name="pack_type">GTK_PACK_END</property>
+				</packing>
+			      </child>
+			    </widget>
+			    <packing>
+			      <property name="left_attach">0</property>
+			      <property name="right_attach">1</property>
+			      <property name="top_attach">1</property>
+			      <property name="bottom_attach">2</property>
+			      <property name="x_options">fill</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkOptionMenu" id="resampling_rate_optionmenu">
+			      <property name="visible">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="history">-1</property>
+			    </widget>
+			    <packing>
+			      <property name="left_attach">1</property>
+			      <property name="right_attach">2</property>
+			      <property name="top_attach">0</property>
+			      <property name="bottom_attach">1</property>
+			      <property name="x_options">fill</property>
+			      <property name="y_options"></property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkOptionMenu" id="resampling_quality_optionmenu">
+			      <property name="visible">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="history">-1</property>
+			    </widget>
+			    <packing>
+			      <property name="left_attach">1</property>
+			      <property name="right_attach">2</property>
+			      <property name="top_attach">1</property>
+			      <property name="bottom_attach">2</property>
+			      <property name="x_options">fill</property>
+			      <property name="y_options"></property>
+			    </packing>
+			  </child>
+			</widget>
+		      </child>
+
+		      <child>
+			<widget class="GtkLabel" id="output_resampling_label">
+			  <property name="visible">True</property>
+			  <property name="label" translatable="yes">Resampling</property>
+			  <property name="use_underline">False</property>
+			  <property name="use_markup">False</property>
+			  <property name="justify">GTK_JUSTIFY_LEFT</property>
+			  <property name="wrap">False</property>
+			  <property name="selectable">False</property>
+			  <property name="xalign">0.5</property>
+			  <property name="yalign">0.5</property>
+			  <property name="xpad">0</property>
+			  <property name="ypad">0</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
+			</widget>
+			<packing>
+			  <property name="type">label_item</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkNotebook" id="output_notebook">
+		  <property name="visible">True</property>
+		  <property name="show_tabs">False</property>
+		  <property name="show_border">False</property>
+		  <property name="tab_pos">GTK_POS_TOP</property>
+		  <property name="scrollable">False</property>
+		  <property name="enable_popup">False</property>
+
+		  <child>
+		    <widget class="GtkVBox" id="output_oss_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkNotebook" id="output_oss_notebook">
+			  <property name="visible">True</property>
+			  <property name="can_focus">True</property>
+			  <property name="show_tabs">True</property>
+			  <property name="show_border">True</property>
+			  <property name="tab_pos">GTK_POS_TOP</property>
+			  <property name="scrollable">False</property>
+			  <property name="enable_popup">False</property>
+
+			  <child>
+			    <widget class="GtkVBox" id="oss_device_page">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="homogeneous">False</property>
+			      <property name="spacing">5</property>
+
+			      <child>
+				<widget class="GtkFrame" id="oss_adevice_frame">
+				  <property name="visible">True</property>
+				  <property name="label_xalign">0</property>
+				  <property name="label_yalign">0.5</property>
+				  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+				  <child>
+				    <widget class="GtkVBox" id="oss_adevice_vbox">
+				      <property name="border_width">5</property>
+				      <property name="visible">True</property>
+				      <property name="homogeneous">False</property>
+				      <property name="spacing">2</property>
+
+				      <child>
+					<widget class="GtkHBox" id="oss_adevice_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">0</property>
+
+					  <child>
+					    <widget class="GtkOptionMenu" id="oss_adevice_optionmenu">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="history">0</property>
+
+					      <child internal-child="menu">
+						<widget class="GtkMenu" id="convertwidget1">
+						  <property name="visible">True</property>
+
+						  <child>
+						    <widget class="GtkMenuItem" id="convertwidget2">
+						      <property name="visible">True</property>
+						      <property name="label" translatable="yes">dummy</property>
+						      <property name="use_underline">True</property>
+						    </widget>
+						  </child>
+						</widget>
+					      </child>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">True</property>
+					  <property name="fill">True</property>
+					</packing>
+				      </child>
+
+				      <child>
+					<widget class="GtkHBox" id="oss_adevice_alt_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">0</property>
+
+					  <child>
+					    <widget class="GtkCheckButton" id="oss_adevice_alt_check">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="label" translatable="yes">Use alternate device:</property>
+					      <property name="use_underline">True</property>
+					      <property name="relief">GTK_RELIEF_NORMAL</property>
+					      <property name="focus_on_click">True</property>
+					      <property name="active">False</property>
+					      <property name="inconsistent">False</property>
+					      <property name="draw_indicator">True</property>
+					      <signal name="toggled" handler="on_config_adevice_alt_check_toggled"/>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">False</property>
+					      <property name="fill">False</property>
+					    </packing>
+					  </child>
+
+					  <child>
+					    <widget class="GtkEntry" id="oss_adevice_alt_entry">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="editable">True</property>
+					      <property name="visibility">True</property>
+					      <property name="max_length">0</property>
+					      <property name="text" translatable="yes"></property>
+					      <property name="has_frame">True</property>
+					      <property name="invisible_char">*</property>
+					      <property name="activates_default">False</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">True</property>
+					  <property name="fill">True</property>
+					</packing>
+				      </child>
+				    </widget>
+				  </child>
+
+				  <child>
+				    <widget class="GtkLabel" id="label3">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Audio device</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="type">label_item</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkFrame" id="oss_mdevice_frame">
+				  <property name="visible">True</property>
+				  <property name="label_xalign">0</property>
+				  <property name="label_yalign">0.5</property>
+				  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+				  <child>
+				    <widget class="GtkVBox" id="oss_mdevice_vbox">
+				      <property name="border_width">5</property>
+				      <property name="visible">True</property>
+				      <property name="homogeneous">False</property>
+				      <property name="spacing">2</property>
+
+				      <child>
+					<widget class="GtkHBox" id="oss_mdevice_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">0</property>
+
+					  <child>
+					    <widget class="GtkOptionMenu" id="oss_mdevice_optionmenu">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="history">0</property>
+
+					      <child internal-child="menu">
+						<widget class="GtkMenu" id="convertwidget3">
+						  <property name="visible">True</property>
+
+						  <child>
+						    <widget class="GtkMenuItem" id="convertwidget4">
+						      <property name="visible">True</property>
+						      <property name="label" translatable="yes">dummy</property>
+						      <property name="use_underline">True</property>
+						    </widget>
+						  </child>
+						</widget>
+					      </child>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">True</property>
+					  <property name="fill">True</property>
+					</packing>
+				      </child>
+
+				      <child>
+					<widget class="GtkHBox" id="oss_mdevice_alt_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">0</property>
+
+					  <child>
+					    <widget class="GtkCheckButton" id="oss_mdevice_alt_check">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="label" translatable="yes">Use alternate device:</property>
+					      <property name="use_underline">True</property>
+					      <property name="relief">GTK_RELIEF_NORMAL</property>
+					      <property name="focus_on_click">True</property>
+					      <property name="active">False</property>
+					      <property name="inconsistent">False</property>
+					      <property name="draw_indicator">True</property>
+					      <signal name="toggled" handler="on_config_mdevice_alt_check_toggled"/>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">False</property>
+					      <property name="fill">False</property>
+					    </packing>
+					  </child>
+
+					  <child>
+					    <widget class="GtkEntry" id="oss_mdevice_alt_entry">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="editable">True</property>
+					      <property name="visibility">True</property>
+					      <property name="max_length">0</property>
+					      <property name="text" translatable="yes"></property>
+					      <property name="has_frame">True</property>
+					      <property name="invisible_char">*</property>
+					      <property name="activates_default">False</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">False</property>
+					  <property name="fill">False</property>
+					</packing>
+				      </child>
+				    </widget>
+				  </child>
+
+				  <child>
+				    <widget class="GtkLabel" id="label4">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Mixer device</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="type">label_item</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				</packing>
+			      </child>
+			    </widget>
+			    <packing>
+			      <property name="tab_expand">False</property>
+			      <property name="tab_fill">True</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="oss_device_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Device</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">tab</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkVBox" id="oss_buffer_page">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="homogeneous">False</property>
+			      <property name="spacing">5</property>
+
+			      <child>
+				<widget class="GtkFrame" id="oss_buffer_frame">
+				  <property name="visible">True</property>
+				  <property name="label_xalign">0</property>
+				  <property name="label_yalign">0.5</property>
+				  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+				  <child>
+				    <widget class="GtkVBox" id="oss_buffer_vbox">
+				      <property name="border_width">5</property>
+				      <property name="visible">True</property>
+				      <property name="homogeneous">False</property>
+				      <property name="spacing">2</property>
+
+				      <child>
+					<widget class="GtkHBox" id="ossbuf_buffer_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">5</property>
+
+					  <child>
+					    <widget class="GtkLabel" id="ossbuf_buffer_label">
+					      <property name="visible">True</property>
+					      <property name="label" translatable="yes">Buffer size (ms):</property>
+					      <property name="use_underline">False</property>
+					      <property name="use_markup">False</property>
+					      <property name="justify">GTK_JUSTIFY_LEFT</property>
+					      <property name="wrap">False</property>
+					      <property name="selectable">False</property>
+					      <property name="xalign">0.5</property>
+					      <property name="yalign">0.5</property>
+					      <property name="xpad">0</property>
+					      <property name="ypad">0</property>
+					      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+					      <property name="width_chars">-1</property>
+					      <property name="single_line_mode">False</property>
+					      <property name="angle">0</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">False</property>
+					      <property name="fill">False</property>
+					    </packing>
+					  </child>
+
+					  <child>
+					    <widget class="GtkSpinButton" id="ossbuf_buffer_spin">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="climb_rate">0</property>
+					      <property name="digits">0</property>
+					      <property name="numeric">True</property>
+					      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+					      <property name="snap_to_ticks">False</property>
+					      <property name="wrap">False</property>
+					      <property name="adjustment">0 0 60000 10 100 10</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">False</property>
+					  <property name="fill">False</property>
+					</packing>
+				      </child>
+
+				      <child>
+					<widget class="GtkHBox" id="ossbuf_preload_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">5</property>
+
+					  <child>
+					    <widget class="GtkLabel" id="ossbuf_preload_label">
+					      <property name="visible">True</property>
+					      <property name="label" translatable="yes">Preload size (ms):</property>
+					      <property name="use_underline">False</property>
+					      <property name="use_markup">False</property>
+					      <property name="justify">GTK_JUSTIFY_LEFT</property>
+					      <property name="wrap">False</property>
+					      <property name="selectable">False</property>
+					      <property name="xalign">0.5</property>
+					      <property name="yalign">0.5</property>
+					      <property name="xpad">0</property>
+					      <property name="ypad">0</property>
+					      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+					      <property name="width_chars">-1</property>
+					      <property name="single_line_mode">False</property>
+					      <property name="angle">0</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">False</property>
+					      <property name="fill">False</property>
+					    </packing>
+					  </child>
+
+					  <child>
+					    <widget class="GtkSpinButton" id="ossbuf_preload_spin">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="climb_rate">0</property>
+					      <property name="digits">0</property>
+					      <property name="numeric">True</property>
+					      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+					      <property name="snap_to_ticks">False</property>
+					      <property name="wrap">False</property>
+					      <property name="adjustment">1500 0 60000 10 100 10</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">True</property>
+					  <property name="fill">True</property>
+					</packing>
+				      </child>
+				    </widget>
+				  </child>
+
+				  <child>
+				    <widget class="GtkLabel" id="label5">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Software buffer</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="type">label_item</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkFrame" id="oss_hwbuf_frame">
+				  <property name="visible">True</property>
+				  <property name="label_xalign">0</property>
+				  <property name="label_yalign">0.5</property>
+				  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+				  <child>
+				    <widget class="GtkVBox" id="oss_hwbuf_vbox">
+				      <property name="border_width">5</property>
+				      <property name="visible">True</property>
+				      <property name="homogeneous">False</property>
+				      <property name="spacing">2</property>
+
+				      <child>
+					<widget class="GtkCheckButton" id="osshwb_maxbuf_check">
+					  <property name="visible">True</property>
+					  <property name="can_focus">True</property>
+					  <property name="label" translatable="yes">Maximum device buffer size</property>
+					  <property name="use_underline">True</property>
+					  <property name="relief">GTK_RELIEF_NORMAL</property>
+					  <property name="focus_on_click">True</property>
+					  <property name="active">False</property>
+					  <property name="inconsistent">False</property>
+					  <property name="draw_indicator">True</property>
+					  <signal name="toggled" handler="on_osshwb_maxbuf_check_toggled"/>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">False</property>
+					  <property name="fill">False</property>
+					</packing>
+				      </child>
+
+				      <child>
+					<widget class="GtkHBox" id="osshwb_fragments_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">5</property>
+
+					  <child>
+					    <widget class="GtkLabel" id="osshwb_fragments_label">
+					      <property name="visible">True</property>
+					      <property name="label" translatable="yes">Number of Fragments:</property>
+					      <property name="use_underline">False</property>
+					      <property name="use_markup">False</property>
+					      <property name="justify">GTK_JUSTIFY_LEFT</property>
+					      <property name="wrap">False</property>
+					      <property name="selectable">False</property>
+					      <property name="xalign">0.5</property>
+					      <property name="yalign">0.5</property>
+					      <property name="xpad">0</property>
+					      <property name="ypad">0</property>
+					      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+					      <property name="width_chars">-1</property>
+					      <property name="single_line_mode">False</property>
+					      <property name="angle">0</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">False</property>
+					      <property name="fill">False</property>
+					    </packing>
+					  </child>
+
+					  <child>
+					    <widget class="GtkSpinButton" id="osshwb_fragments_spin">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="climb_rate">0</property>
+					      <property name="digits">0</property>
+					      <property name="numeric">True</property>
+					      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+					      <property name="snap_to_ticks">False</property>
+					      <property name="wrap">False</property>
+					      <property name="adjustment">50 2 65535 1 10 10</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">False</property>
+					  <property name="fill">False</property>
+					</packing>
+				      </child>
+
+				      <child>
+					<widget class="GtkHBox" id="osshwb_fragsize_hbox">
+					  <property name="visible">True</property>
+					  <property name="homogeneous">False</property>
+					  <property name="spacing">5</property>
+
+					  <child>
+					    <widget class="GtkLabel" id="osshwb_fragsize_label">
+					      <property name="visible">True</property>
+					      <property name="label" translatable="yes">Fragment size (2^x bytes):</property>
+					      <property name="use_underline">False</property>
+					      <property name="use_markup">False</property>
+					      <property name="justify">GTK_JUSTIFY_LEFT</property>
+					      <property name="wrap">False</property>
+					      <property name="selectable">False</property>
+					      <property name="xalign">0.5</property>
+					      <property name="yalign">0.5</property>
+					      <property name="xpad">0</property>
+					      <property name="ypad">0</property>
+					      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+					      <property name="width_chars">-1</property>
+					      <property name="single_line_mode">False</property>
+					      <property name="angle">0</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">False</property>
+					      <property name="fill">False</property>
+					    </packing>
+					  </child>
+
+					  <child>
+					    <widget class="GtkSpinButton" id="osshwb_fragsize_spin">
+					      <property name="visible">True</property>
+					      <property name="can_focus">True</property>
+					      <property name="climb_rate">0</property>
+					      <property name="digits">0</property>
+					      <property name="numeric">True</property>
+					      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+					      <property name="snap_to_ticks">False</property>
+					      <property name="wrap">False</property>
+					      <property name="adjustment">11 4 16 1 10 10</property>
+					    </widget>
+					    <packing>
+					      <property name="padding">0</property>
+					      <property name="expand">True</property>
+					      <property name="fill">True</property>
+					    </packing>
+					  </child>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">True</property>
+					  <property name="fill">True</property>
+					</packing>
+				      </child>
+				    </widget>
+				  </child>
+
+				  <child>
+				    <widget class="GtkLabel" id="label6">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Hardware device buffer</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="type">label_item</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">True</property>
+				  <property name="fill">True</property>
+				</packing>
+			      </child>
+			    </widget>
+			    <packing>
+			      <property name="tab_expand">False</property>
+			      <property name="tab_fill">True</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="oss_buffer_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Buffer</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">tab</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkVBox" id="oss_mixer_page">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="homogeneous">False</property>
+			      <property name="spacing">5</property>
+
+			      <child>
+				<widget class="GtkFrame" id="oss_mixer_frame">
+				  <property name="visible">True</property>
+				  <property name="label_xalign">0</property>
+				  <property name="label_yalign">0.5</property>
+				  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+				  <child>
+				    <widget class="GtkVBox" id="oss_mixer_vbox">
+				      <property name="border_width">5</property>
+				      <property name="visible">True</property>
+				      <property name="homogeneous">False</property>
+				      <property name="spacing">2</property>
+
+				      <child>
+					<widget class="GtkCheckButton" id="ossmixer_pcm_check">
+					  <property name="visible">True</property>
+					  <property name="can_focus">True</property>
+					  <property name="label" translatable="yes">Volume controls Master not PCM</property>
+					  <property name="use_underline">True</property>
+					  <property name="relief">GTK_RELIEF_NORMAL</property>
+					  <property name="focus_on_click">True</property>
+					  <property name="active">False</property>
+					  <property name="inconsistent">False</property>
+					  <property name="draw_indicator">True</property>
+					</widget>
+					<packing>
+					  <property name="padding">0</property>
+					  <property name="expand">False</property>
+					  <property name="fill">False</property>
+					</packing>
+				      </child>
+				    </widget>
+				  </child>
+
+				  <child>
+				    <widget class="GtkLabel" id="label7">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Mixer options</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="type">label_item</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				</packing>
+			      </child>
+			    </widget>
+			    <packing>
+			      <property name="tab_expand">False</property>
+			      <property name="tab_fill">True</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="oss_mixer_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Mixer</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">tab</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label29">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes"></property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="output_plugin_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkFrame" id="op_plugin_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkVBox" id="op_plugin_vbox">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="homogeneous">False</property>
+			      <property name="spacing">2</property>
+
+			      <child>
+				<widget class="GtkOptionMenu" id="op_plugin_optionmenu">
+				  <property name="visible">True</property>
+				  <property name="can_focus">True</property>
+				  <property name="history">0</property>
+
+				  <child internal-child="menu">
+				    <widget class="GtkMenu" id="convertwidget5">
+				      <property name="visible">True</property>
+
+				      <child>
+					<widget class="GtkMenuItem" id="convertwidget6">
+					  <property name="visible">True</property>
+					  <property name="label" translatable="yes">dummy</property>
+					  <property name="use_underline">True</property>
+					</widget>
+				      </child>
+				    </widget>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHButtonBox" id="op_plugin_buttonbox">
+				  <property name="visible">True</property>
+				  <property name="layout_style">GTK_BUTTONBOX_START</property>
+				  <property name="spacing">5</property>
+
+				  <child>
+				    <widget class="GtkButton" id="op_configure_button">
+				      <property name="visible">True</property>
+				      <property name="can_default">True</property>
+				      <property name="can_focus">True</property>
+				      <property name="label" translatable="yes">Configure</property>
+				      <property name="use_underline">True</property>
+				      <property name="relief">GTK_RELIEF_NORMAL</property>
+				      <property name="focus_on_click">True</property>
+				      <signal name="clicked" handler="on_output_plugin_configure_button_clicked"/>
+				    </widget>
+				  </child>
+
+				  <child>
+				    <widget class="GtkButton" id="op_about_button">
+				      <property name="visible">True</property>
+				      <property name="can_default">True</property>
+				      <property name="can_focus">True</property>
+				      <property name="label" translatable="yes">About</property>
+				      <property name="use_underline">True</property>
+				      <property name="relief">GTK_RELIEF_NORMAL</property>
+				      <property name="focus_on_click">True</property>
+				      <signal name="clicked" handler="on_output_plugin_about_button_clicked"/>
+				    </widget>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">True</property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label8">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Output plugin</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">True</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkFrame" id="op_options_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkVBox" id="op_options_vbox">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="homogeneous">False</property>
+			      <property name="spacing">2</property>
+
+			      <child>
+				<widget class="GtkCheckButton" id="op_throttle_check">
+				  <property name="visible">True</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">Throttle Output</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <signal name="toggled" handler="on_op_throttle_check_toggled"/>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="op_maxblock_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">5</property>
+
+				  <child>
+				    <widget class="GtkCheckButton" id="op_maxblock_check">
+				      <property name="visible">True</property>
+				      <property name="can_focus">True</property>
+				      <property name="label" translatable="yes">Max block size (bytes):</property>
+				      <property name="use_underline">True</property>
+				      <property name="relief">GTK_RELIEF_NORMAL</property>
+				      <property name="focus_on_click">True</property>
+				      <property name="active">False</property>
+				      <property name="inconsistent">False</property>
+				      <property name="draw_indicator">True</property>
+				      <signal name="toggled" handler="on_op_maxblock_check_toggled"/>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+
+				  <child>
+				    <widget class="GtkSpinButton" id="op_maxblock_spin">
+				      <property name="visible">True</property>
+				      <property name="can_focus">True</property>
+				      <property name="climb_rate">10</property>
+				      <property name="digits">0</property>
+				      <property name="numeric">True</property>
+				      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				      <property name="snap_to_ticks">True</property>
+				      <property name="wrap">False</property>
+				      <property name="adjustment">1024 4 1048580 4 16 10</property>
+				      <signal name="changed" handler="on_op_maxblock_spin_changed"/>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">True</property>
+				      <property name="fill">True</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">True</property>
+				  <property name="fill">True</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkCheckButton" id="op_forcereopen_check">
+				  <property name="visible">True</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">Force close/reopen on songchange</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <signal name="toggled" handler="on_op_forcereopen_check_toggled"/>
+				</widget>
+				<packing>
+				  <property name="padding">0</property>
+				  <property name="expand">False</property>
+				  <property name="fill">False</property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label9">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Plugin compatibility options</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">True</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label31">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes"></property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <placeholder/>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label32">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes"></property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <placeholder/>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label33">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes"></property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <placeholder/>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label34">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes"></property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkLabel" id="output_help_label">
+		  <property name="visible">True</property>
+		  <property name="label" translatable="yes">When modifying the Output Options or the Mixing buffer size, you need to stop/restart playback for the settings to take effect.</property>
+		  <property name="use_underline">False</property>
+		  <property name="use_markup">False</property>
+		  <property name="justify">GTK_JUSTIFY_LEFT</property>
+		  <property name="wrap">True</property>
+		  <property name="selectable">False</property>
+		  <property name="xalign">0.5</property>
+		  <property name="yalign">0.5</property>
+		  <property name="xpad">0</property>
+		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">True</property>
+		  <property name="fill">True</property>
+		  <property name="pack_type">GTK_PACK_END</property>
+		</packing>
+	      </child>
+	    </widget>
+	    <packing>
+	      <property name="tab_expand">False</property>
+	      <property name="tab_fill">True</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="config_devices_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Output</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="type">tab</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkVBox" id="config_effects_page">
+	      <property name="border_width">5</property>
+	      <property name="visible">True</property>
+	      <property name="homogeneous">False</property>
+	      <property name="spacing">5</property>
+
+	      <child>
+		<widget class="GtkFrame" id="ep_plugin_frame">
+		  <property name="visible">True</property>
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkVBox" id="ep_plugin_vbox">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">2</property>
+
+		      <child>
+			<widget class="GtkOptionMenu" id="ep_plugin_optionmenu">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Select an effect plugin. Take care not to use the same plugin as selected in XMMS' configuration dialog.</property>
+			  <property name="can_focus">True</property>
+			  <property name="history">0</property>
+
+			  <child internal-child="menu">
+			    <widget class="GtkMenu" id="convertwidget7">
+			      <property name="visible">True</property>
+
+			      <child>
+				<widget class="GtkMenuItem" id="convertwidget8">
+				  <property name="visible">True</property>
+				  <property name="label" translatable="yes">dummy</property>
+				  <property name="use_underline">True</property>
+				</widget>
+			      </child>
+			    </widget>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHButtonBox" id="ep_plugin_buttonbox">
+			  <property name="visible">True</property>
+			  <property name="layout_style">GTK_BUTTONBOX_START</property>
+			  <property name="spacing">5</property>
+
+			  <child>
+			    <widget class="GtkButton" id="ep_configure_button">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">Open the configuration dialog of the plugin selected above.</property>
+			      <property name="can_default">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">Configure</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <signal name="clicked" handler="on_ep_configure_button_clicked"/>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkButton" id="ep_about_button">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">Open the about dialog of the plugin selected above.</property>
+			      <property name="can_default">True</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">About</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <signal name="clicked" handler="on_ep_about_button_clicked"/>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkCheckButton" id="ep_enable_check">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">Enable the selected plugin. Note that after pressing 'Apply' it may take a while until you can hear the effect, since it is applied before the audio data goes into the buffer.</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">Use plugin</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			      <signal name="toggled" handler="on_ep_enable_check_toggled"/>
+			    </widget>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">True</property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label10">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Pre-mixing effect plugin</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkFrame" id="effects_volnorm_frame">
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkTable" id="effects_volnorm_table">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="n_rows">4</property>
+		      <property name="n_columns">2</property>
+		      <property name="homogeneous">False</property>
+		      <property name="row_spacing">2</property>
+		      <property name="column_spacing">5</property>
+
+		      <child>
+			<widget class="GtkCheckButton" id="volnorm_quantaudio_check">
+			  <property name="visible">True</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Read Quantaudio comment field</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">2</property>
+			  <property name="bottom_attach">3</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkSpinButton" id="volnorm_target_spin">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Set the maximum length for gaps at the end of a stream.
+Default: 500</property>
+			  <property name="can_focus">True</property>
+			  <property name="climb_rate">0</property>
+			  <property name="digits">0</property>
+			  <property name="numeric">True</property>
+			  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			  <property name="snap_to_ticks">False</property>
+			  <property name="wrap">False</property>
+			  <property name="adjustment">8000 0 32768 100 1000 10</property>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">3</property>
+			  <property name="bottom_attach">4</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHBox" id="volnorm_target_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">0</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="volnorm_target_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Target RMS:</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">3</property>
+			  <property name="bottom_attach">4</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options">fill</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="volnorm_enable_check">
+			  <property name="visible">True</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Enable</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			  <signal name="toggled" handler="on_volnorm_enable_check_toggled"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">0</property>
+			  <property name="bottom_attach">1</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="volnorm_rva2_check">
+			  <property name="visible">True</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Read ID3V2 RVA2 Tag</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">1</property>
+			  <property name="bottom_attach">2</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label11">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Volume normalizer</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkLabel" id="effects_help_label">
+		  <property name="visible">True</property>
+		  <property name="label" translatable="yes">You do not need to press 'Apply' after making changes to the effect plugin settings. It may take a while though until you can hear the change, since the plugin is applied before the mixing buffer.</property>
+		  <property name="use_underline">False</property>
+		  <property name="use_markup">False</property>
+		  <property name="justify">GTK_JUSTIFY_LEFT</property>
+		  <property name="wrap">True</property>
+		  <property name="selectable">False</property>
+		  <property name="xalign">0.5</property>
+		  <property name="yalign">0.5</property>
+		  <property name="xpad">0</property>
+		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">True</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+	    </widget>
+	    <packing>
+	      <property name="tab_expand">False</property>
+	      <property name="tab_fill">True</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="config_effects_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Effects</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="type">tab</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkVBox" id="config_crossfader_page">
+	      <property name="border_width">5</property>
+	      <property name="visible">True</property>
+	      <property name="homogeneous">False</property>
+	      <property name="spacing">2</property>
+
+	      <child>
+		<widget class="GtkHBox" id="xf_bufsize_hbox">
+		  <property name="visible">True</property>
+		  <property name="homogeneous">False</property>
+		  <property name="spacing">5</property>
+
+		  <child>
+		    <widget class="GtkLabel" id="xf_bufsize_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Mixing buffer size (ms):</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkSpinButton" id="xf_buffer_spin">
+		      <property name="visible">True</property>
+		      <property name="tooltip" translatable="yes">Specify the size of the mixing buffer. Mixing buffer space is required for pauses, fade-outs, offsetting (i.e. interleaving the end and beginning of two songs) and killing trailing gaps. Fade-ins and killing leading gaps are done on-the-fly and do not depend on mixing buffer space.
+Default: n/a - calculated automatically</property>
+		      <property name="can_focus">True</property>
+		      <property name="climb_rate">0</property>
+		      <property name="digits">0</property>
+		      <property name="numeric">True</property>
+		      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+		      <property name="snap_to_ticks">False</property>
+		      <property name="wrap">False</property>
+		      <property name="adjustment">8500 0 60000 100 1000 10</property>
+		      <signal name="changed" handler="on_xf_buffer_spin_changed"/>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">True</property>
+		      <property name="fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkCheckButton" id="xf_autobuf_check">
+		      <property name="visible">True</property>
+		      <property name="tooltip" translatable="yes">Automatically calculate an optimal buffer size.
+Default: On</property>
+		      <property name="can_focus">True</property>
+		      <property name="label" translatable="yes">auto</property>
+		      <property name="use_underline">True</property>
+		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
+		      <property name="active">False</property>
+		      <property name="inconsistent">False</property>
+		      <property name="draw_indicator">True</property>
+		      <signal name="toggled" handler="on_xf_autobuf_check_toggled"/>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkHBox" id="xf_config_hbox">
+		  <property name="visible">True</property>
+		  <property name="homogeneous">False</property>
+		  <property name="spacing">5</property>
+
+		  <child>
+		    <widget class="GtkLabel" id="xf_config_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Set parameters for:</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkOptionMenu" id="xf_config_optionmenu">
+		      <property name="visible">True</property>
+		      <property name="tooltip" translatable="yes">Select the type of songchange you want to configure:
+* Start of playback: When starting playback by pressing PLAY
+* Automatic songchange: When reaching the end of a song and the playlist advances to the next song
+* Manual songchange: When manually selecting another song, for example by pressing NEXT/PREV
+* Manual stop: When pressing the STOP button
+* End of playlist: After the last song in the playlist has been played
+* Seeking: When seeking within the current song</property>
+		      <property name="can_focus">True</property>
+		      <property name="history">0</property>
+
+		      <child internal-child="menu">
+			<widget class="GtkMenu" id="convertwidget9">
+			  <property name="visible">True</property>
+
+			  <child>
+			    <widget class="GtkMenuItem" id="convertwidget10">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">dummy</property>
+			      <property name="use_underline">True</property>
+			    </widget>
+			  </child>
+			</widget>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">True</property>
+		      <property name="fill">True</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkHBox" id="xf_type_hbox">
+		  <property name="visible">True</property>
+		  <property name="homogeneous">False</property>
+		  <property name="spacing">5</property>
+
+		  <child>
+		    <widget class="GtkLabel" id="xf_type_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Crossfade/Transition type:</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkOptionMenu" id="xf_type_optionmenu">
+		      <property name="visible">True</property>
+		      <property name="tooltip" translatable="yes">Select the transition to be used for the songchange type selected above:
+* Fade-in: Fade-in at 'Start of playback'
+* Reopen output device: Force a close/open on the output plugin. This will most certainly re-introduce gaps and clicks, but might be usefull with some plugins.
+* Flush output device: Keeps the output plugin opened, but flushes its buffers. This will give you almost instant reaction when pressing NEXT/PREV.
+* None (gapless/off): Gapless mode. Keeps the device opened, but does not do any fading.
+* Simple crossfade: Does a simple crossfade between the previous and the next song.
+* Advanced crossfade: Allows you to configure the crossfade in more detail.
+* Fade-out: Fade-out at 'Manual stop' or 'End of playlist'.</property>
+		      <property name="can_focus">True</property>
+		      <property name="history">0</property>
+
+		      <child internal-child="menu">
+			<widget class="GtkMenu" id="convertwidget11">
+			  <property name="visible">True</property>
+
+			  <child>
+			    <widget class="GtkMenuItem" id="convertwidget12">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">dummy</property>
+			      <property name="use_underline">True</property>
+			    </widget>
+			  </child>
+			</widget>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">True</property>
+		      <property name="fill">True</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkNotebook" id="xf_type_notebook">
+		  <property name="visible">True</property>
+		  <property name="show_tabs">False</property>
+		  <property name="show_border">False</property>
+		  <property name="tab_pos">GTK_POS_TOP</property>
+		  <property name="scrollable">False</property>
+		  <property name="enable_popup">False</property>
+
+		  <child>
+		    <placeholder/>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_reopen_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Reopen</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="xft_flush_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkFrame" id="xftf_pause_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xftf_pause_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">2</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkLabel" id="xftfp_length_label">
+				  <property name="visible">True</property>
+				  <property name="label" translatable="yes">Length (ms):</property>
+				  <property name="use_underline">False</property>
+				  <property name="use_markup">False</property>
+				  <property name="justify">GTK_JUSTIFY_LEFT</property>
+				  <property name="wrap">False</property>
+				  <property name="selectable">False</property>
+				  <property name="xalign">0.5</property>
+				  <property name="yalign">0.5</property>
+				  <property name="xpad">0</property>
+				  <property name="ypad">0</property>
+				  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				  <property name="width_chars">-1</property>
+				  <property name="single_line_mode">False</property>
+				  <property name="angle">0</property>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="x_options">fill</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfp_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Specify the length of the silence to be inserted between the tracks.
+Default: 2000</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">1000 0 60000 100 1000 10</property>
+				  <signal name="changed" handler="on_xftfp_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkCheckButton" id="xftfp_enable_check">
+				  <property name="visible">True</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">Enable</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <signal name="toggled" handler="on_xftfp_enable_check_toggled"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label12">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Pause</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkFrame" id="xftf_fadein_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xftf_fadein_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">3</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="xftffi_length_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftffi_length_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="xftffi_volume_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftffi_volume_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Start volume (%):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftffi_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the duration for the fadein of the next song.</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">1000 0 60000 100 1000 10</property>
+				  <signal name="changed" handler="on_xftffi_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkCheckButton" id="xftffi_enable_check">
+				  <property name="visible">True</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">Enable</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <signal name="toggled" handler="on_xftffi_enable_check_toggled"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftffi_volume_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.
+Default: 0</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">0 0 100 1 10 10</property>
+				  <signal name="changed" handler="on_xftffi_volume_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label13">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Fade in</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_flush_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Flush</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <placeholder/>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_none_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">None</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="xft_pause_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkFrame" id="xf_pause_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xf_pause_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">1</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="pause_length_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="pause_length_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="pause_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Specify the length of the silence to be inserted between the tracks.
+Default: 2000</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">1000 0 60000 100 1000 10</property>
+				  <signal name="changed" handler="on_pause_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label14">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Pause</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_pause_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Pause</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="xft_simplexf_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkFrame" id="xf_simple_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xf_simple_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">1</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="simple_length_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="simple_length_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="simple_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Specify the length of the crosssfade.
+Default: depends on songchange type</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">1500 0 60000 100 1000 10</property>
+				  <signal name="changed" handler="on_simple_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label15">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Crossfade</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_simplexf_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Simple XF</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="xft_advancedxf_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkFrame" id="xf_fadeout_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xf_fadeout_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">3</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="fadeout_length_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="fadeout_length_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="fadeout_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the duration for the fadeout of the previous song.</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">1000 0 60000 100 1000 10</property>
+				  <signal name="changed" handler="on_fadeout_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="fadeout_volume_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="fadeout_volume_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">End volume (%):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="fadeout_volume_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the end volume. XMMS-crossfade will fade from 100% to this volume during the time specified above.
+Default: 0</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">0 0 100 1 10 10</property>
+				  <signal name="changed" handler="on_fadeout_volume_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="fadeout_options_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">5</property>
+
+				  <child>
+				    <widget class="GtkCheckButton" id="fadeout_enable_check">
+				      <property name="visible">True</property>
+				      <property name="can_focus">True</property>
+				      <property name="label" translatable="yes">Enable</property>
+				      <property name="use_underline">True</property>
+				      <property name="relief">GTK_RELIEF_NORMAL</property>
+				      <property name="focus_on_click">True</property>
+				      <property name="active">False</property>
+				      <property name="inconsistent">False</property>
+				      <property name="draw_indicator">True</property>
+				      <signal name="toggled" handler="on_fadeout_enable_check_toggled"/>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label16">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Fade out</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkFrame" id="xf_offset_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xf_offset_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">4</property>
+			      <property name="n_columns">1</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="xfofs_custom_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">5</property>
+
+				  <child>
+				    <widget class="GtkRadioButton" id="xfofs_custom_radiobutton">
+				      <property name="visible">True</property>
+				      <property name="tooltip" translatable="yes">Set a custom offset.</property>
+				      <property name="can_focus">True</property>
+				      <property name="label" translatable="yes">Custom (ms):</property>
+				      <property name="use_underline">True</property>
+				      <property name="relief">GTK_RELIEF_NORMAL</property>
+				      <property name="focus_on_click">True</property>
+				      <property name="active">False</property>
+				      <property name="inconsistent">False</property>
+				      <property name="draw_indicator">True</property>
+				      <signal name="toggled" handler="on_xfofs_custom_radiobutton_toggled"/>
+				      <signal name="clicked" handler="on_xfofs_custom_radiobutton_clicked"/>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+
+				  <child>
+				    <widget class="GtkSpinButton" id="xfofs_custom_spin">
+				      <property name="visible">True</property>
+				      <property name="tooltip" translatable="yes">Set how much the end of the previous and the beginning of the next song should overlap.
+* Negative values indicate that the next song should start before the previous has reached the end.
+* A value of 0 means that the songs are concatenated seamlessly.
+* Positive values will yield insert silence inbetween..</property>
+				      <property name="can_focus">True</property>
+				      <property name="climb_rate">0</property>
+				      <property name="digits">0</property>
+				      <property name="numeric">True</property>
+				      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				      <property name="snap_to_ticks">False</property>
+				      <property name="wrap">False</property>
+				      <property name="adjustment">-2000 -60000 60000 100 1000 10</property>
+				      <signal name="changed" handler="on_xfofs_custom_spin_changed"/>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">True</property>
+				      <property name="fill">True</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">3</property>
+				  <property name="bottom_attach">4</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkRadioButton" id="xfofs_none_radiobutton">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Don't overlap the two songs. The next song will start immediatelly after the previous has ended.</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">None (0 ms)</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <property name="group">xfofs_custom_radiobutton</property>
+				  <signal name="clicked" handler="on_xfofs_none_radiobutton_clicked"/>
+				  <signal name="toggled" handler="on_xfofs_none_radiobutton_toggled"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkRadioButton" id="xfofs_lockout_radiobutton">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Overlap by the fadeout duration specified above.</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">Lock to fadeout length</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <property name="group">xfofs_custom_radiobutton</property>
+				  <signal name="toggled" handler="on_xfofs_lockout_radiobutton_toggled"/>
+				  <signal name="clicked" handler="on_xfofs_lockout_radiobutton_clicked"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkRadioButton" id="xfofs_lockin_radiobutton">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Overlap by the fadein duration specified below..</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">Lock to fadein length</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <property name="group">xfofs_custom_radiobutton</property>
+				  <signal name="toggled" handler="on_xfofs_lockin_radiobutton_toggled"/>
+				  <signal name="clicked" handler="on_xfofs_lockin_radiobutton_clicked"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label17">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Offset</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkFrame" id="xf_fadein_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xf_fadein_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">3</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="fadein_length_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="fadein_length_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="fadein_volume_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="fadein_volume_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Start volume (%):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="fadein_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the duration for the fadein of the next song.</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">1000 0 60000 100 1000 10</property>
+				  <signal name="changed" handler="on_fadein_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkCheckButton" id="fadein_enable_check">
+				  <property name="visible">True</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes"> Enable</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <signal name="toggled" handler="on_fadein_enable_check_toggled"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkCheckButton" id="fadein_lock_check">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Use the same settings as fade-out.</property>
+				  <property name="can_focus">True</property>
+				  <property name="label" translatable="yes">Lock to Fade-out</property>
+				  <property name="use_underline">True</property>
+				  <property name="relief">GTK_RELIEF_NORMAL</property>
+				  <property name="focus_on_click">True</property>
+				  <property name="active">False</property>
+				  <property name="inconsistent">False</property>
+				  <property name="draw_indicator">True</property>
+				  <signal name="toggled" handler="on_fadein_lock_check_toggled"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="fadein_volume_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.
+Default: 0</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">0 0 100 1 10 10</property>
+				  <signal name="changed" handler="on_fadein_volume_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label18">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Fade in</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_advancedxf_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Advanced XF</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="xft_fadein_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">0</property>
+
+		      <child>
+			<widget class="GtkFrame" id="xftfi_fadein_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xftfi_fadein_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">2</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfi_length_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfi_length_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfi_volume_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfi_volume_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Start volume (%):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfi_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the duration for the fadein when starting playback.</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">1000 0 60000 10 100 10</property>
+				  <signal name="changed" handler="on_fadein_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfi_volume_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.
+Default: 0</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">0 0 100 1 10 10</property>
+				  <signal name="changed" handler="on_fadein_volume_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label19">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Fade in</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_fadein_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Fade in</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="xft_fadeout_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkFrame" id="xftfo_fadeout_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xftfo_fadeout_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">2</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfo_length_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfo_length_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfo_length_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the duration for the fadeout of the last song.</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">500 0 60000 10 100 10</property>
+				  <signal name="changed" handler="on_fadeout_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfo_volume_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfo_volume_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">End volume (%):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfo_volume_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the end volume. XMMS-crossfade will fade from 100% to this volume during the time specified above.
+Default: 0</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">0 0 100 1 10 10</property>
+				  <signal name="changed" handler="on_fadeout_volume_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label20">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Fade out</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkFrame" id="xftfo_silence_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xftfo_silence_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">1</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfo_silence_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfo_silence_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Length (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfo_silence_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set how much additional silence should be played after the end of the last song. This way, you can avoid the clicks some soundcards produce when being shut down during playback.
+Default: 500</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">100 0 60000 10 100 10</property>
+				  <signal name="changed" handler="on_xfofs_custom_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label21">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Additional silence</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_fadeout_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Fade out</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <placeholder/>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_pause_none_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">None</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkVBox" id="xft_pause_adv_page">
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">5</property>
+
+		      <child>
+			<widget class="GtkFrame" id="xft_fadeoutin_frame">
+			  <property name="visible">True</property>
+			  <property name="label_xalign">0</property>
+			  <property name="label_yalign">0.5</property>
+			  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+			  <child>
+			    <widget class="GtkTable" id="xft_fadeoutin_table">
+			      <property name="border_width">5</property>
+			      <property name="visible">True</property>
+			      <property name="n_rows">3</property>
+			      <property name="n_columns">2</property>
+			      <property name="homogeneous">False</property>
+			      <property name="row_spacing">2</property>
+			      <property name="column_spacing">5</property>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfoi_fadeout_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the duration for the fadeout when pausing.
+Default: 100
+</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">100 0 60000 10 100 10</property>
+				  <signal name="changed" handler="on_fadeout_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfoi_silence_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set how much additional silence should be played after pausing. This way, you can avoid the clicks some soundcards produce when entering pause.
+Default: 100</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">100 0 60000 10 100 10</property>
+				  <signal name="changed" handler="on_xfofs_custom_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkSpinButton" id="xftfoi_fadein_spin">
+				  <property name="visible">True</property>
+				  <property name="tooltip" translatable="yes">Set the duration for the fadein when unpausing.
+Default: 100</property>
+				  <property name="can_focus">True</property>
+				  <property name="climb_rate">0</property>
+				  <property name="digits">0</property>
+				  <property name="numeric">True</property>
+				  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+				  <property name="snap_to_ticks">False</property>
+				  <property name="wrap">False</property>
+				  <property name="adjustment">100 0 60000 10 100 10</property>
+				  <signal name="changed" handler="on_fadein_length_spin_changed"/>
+				</widget>
+				<packing>
+				  <property name="left_attach">1</property>
+				  <property name="right_attach">2</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfoi_fadein_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfoi_fadein_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Fade out (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">0</property>
+				  <property name="bottom_attach">1</property>
+				  <property name="x_options">fill</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfoi_silence_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfoi_silence_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Silence (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">1</property>
+				  <property name="bottom_attach">2</property>
+				  <property name="x_options">fill</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+
+			      <child>
+				<widget class="GtkHBox" id="xftfoi_fadeout_hbox">
+				  <property name="visible">True</property>
+				  <property name="homogeneous">False</property>
+				  <property name="spacing">0</property>
+
+				  <child>
+				    <widget class="GtkLabel" id="xftfoi_fadeout_label">
+				      <property name="visible">True</property>
+				      <property name="label" translatable="yes">Fade in (ms):</property>
+				      <property name="use_underline">False</property>
+				      <property name="use_markup">False</property>
+				      <property name="justify">GTK_JUSTIFY_LEFT</property>
+				      <property name="wrap">False</property>
+				      <property name="selectable">False</property>
+				      <property name="xalign">0.5</property>
+				      <property name="yalign">0.5</property>
+				      <property name="xpad">0</property>
+				      <property name="ypad">0</property>
+				      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+				      <property name="width_chars">-1</property>
+				      <property name="single_line_mode">False</property>
+				      <property name="angle">0</property>
+				    </widget>
+				    <packing>
+				      <property name="padding">0</property>
+				      <property name="expand">False</property>
+				      <property name="fill">False</property>
+				    </packing>
+				  </child>
+				</widget>
+				<packing>
+				  <property name="left_attach">0</property>
+				  <property name="right_attach">1</property>
+				  <property name="top_attach">2</property>
+				  <property name="bottom_attach">3</property>
+				  <property name="x_options">fill</property>
+				  <property name="y_options"></property>
+				</packing>
+			      </child>
+			    </widget>
+			  </child>
+
+			  <child>
+			    <widget class="GtkLabel" id="label22">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Fade out / Fade in</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_LEFT</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="type">label_item</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		    <packing>
+		      <property name="tab_expand">False</property>
+		      <property name="tab_fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="xft_pause_adv_label">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Fade out / Fade in</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_CENTER</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">tab</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+	    </widget>
+	    <packing>
+	      <property name="tab_expand">False</property>
+	      <property name="tab_fill">True</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="config_crossfade_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Crossfader</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="type">tab</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkVBox" id="config_gapkiller_page">
+	      <property name="border_width">5</property>
+	      <property name="visible">True</property>
+	      <property name="homogeneous">False</property>
+	      <property name="spacing">5</property>
+
+	      <child>
+		<widget class="GtkFrame" id="gap_leading_frame">
+		  <property name="visible">True</property>
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkTable" id="gap_leading_table">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="n_rows">3</property>
+		      <property name="n_columns">2</property>
+		      <property name="homogeneous">False</property>
+		      <property name="row_spacing">2</property>
+		      <property name="column_spacing">5</property>
+
+		      <child>
+			<widget class="GtkSpinButton" id="lgap_length_spin">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Set the maximum length for gaps at the beginning of a stream.
+Default: 500</property>
+			  <property name="can_focus">True</property>
+			  <property name="climb_rate">0</property>
+			  <property name="digits">0</property>
+			  <property name="numeric">True</property>
+			  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			  <property name="snap_to_ticks">False</property>
+			  <property name="wrap">False</property>
+			  <property name="adjustment">500 0 60000 10 100 10</property>
+			  <signal name="changed" handler="on_lgap_length_spin_changed"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">1</property>
+			  <property name="bottom_attach">2</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkSpinButton" id="lgap_level_spin">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Set the maximum volume for gaps at the beginning of a stream. All samples below this value are considered as silent.
+Default: 512</property>
+			  <property name="can_focus">True</property>
+			  <property name="climb_rate">0</property>
+			  <property name="digits">0</property>
+			  <property name="numeric">True</property>
+			  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			  <property name="snap_to_ticks">False</property>
+			  <property name="wrap">False</property>
+			  <property name="adjustment">512 0 32767 16 256 10</property>
+			  <signal name="changed" handler="on_lgap_level_spin_changed"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">2</property>
+			  <property name="bottom_attach">3</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHBox" id="lgap_length_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">0</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="lgap_length_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Max. length (ms):</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">1</property>
+			  <property name="bottom_attach">2</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options">fill</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHBox" id="lgap_level_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">0</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="lgap_level_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Max. level (16bit sample):</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">2</property>
+			  <property name="bottom_attach">3</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options">fill</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="lgap_enable_check">
+			  <property name="visible">True</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Enable</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			  <signal name="toggled" handler="on_lgap_enable_check_toggled"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">0</property>
+			  <property name="bottom_attach">1</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label23">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Leading gap killer</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkFrame" id="gap_trailing_frame">
+		  <property name="visible">True</property>
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkTable" id="gap_trailing_table">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="n_rows">3</property>
+		      <property name="n_columns">2</property>
+		      <property name="homogeneous">False</property>
+		      <property name="row_spacing">2</property>
+		      <property name="column_spacing">5</property>
+
+		      <child>
+			<widget class="GtkHBox" id="tgap_length_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">0</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="tgap_length_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Max. length (ms):</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">1</property>
+			  <property name="bottom_attach">2</property>
+			  <property name="x_options">fill</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHBox" id="tgap_level_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">0</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="tgap_level_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Max. level (16bit sample):</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">2</property>
+			  <property name="bottom_attach">3</property>
+			  <property name="x_options">fill</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkSpinButton" id="tgap_length_spin">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Set the maximum length for gaps at the end of a stream.
+Default: 500</property>
+			  <property name="can_focus">True</property>
+			  <property name="climb_rate">0</property>
+			  <property name="digits">0</property>
+			  <property name="numeric">True</property>
+			  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			  <property name="snap_to_ticks">False</property>
+			  <property name="wrap">False</property>
+			  <property name="adjustment">500 0 60000 10 100 10</property>
+			  <signal name="changed" handler="on_tgap_length_spin_changed"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">1</property>
+			  <property name="bottom_attach">2</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkSpinButton" id="tgap_level_spin">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Set the maximum volume for gaps at the end of a stream. All samples below this value are considered as silent.
+Default: 512</property>
+			  <property name="can_focus">True</property>
+			  <property name="climb_rate">0</property>
+			  <property name="digits">0</property>
+			  <property name="numeric">True</property>
+			  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			  <property name="snap_to_ticks">False</property>
+			  <property name="wrap">False</property>
+			  <property name="adjustment">512 0 32767 1 16 10</property>
+			  <signal name="changed" handler="on_tgap_level_spin_changed"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">2</property>
+			  <property name="bottom_attach">3</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="tgap_lock_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Use the same settings as above.</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Lock to Leading</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			  <signal name="toggled" handler="on_tgap_lock_check_toggled"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">0</property>
+			  <property name="bottom_attach">1</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="tgap_enable_check">
+			  <property name="visible">True</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Enable</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			  <signal name="toggled" handler="on_tgap_enable_check_toggled"/>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">0</property>
+			  <property name="bottom_attach">1</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label24">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Trailing gap killer</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkFrame" id="gap_advanced_frame">
+		  <property name="visible">True</property>
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkVBox" id="gap_advanced_vbox">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">0</property>
+
+		      <child>
+			<widget class="GtkCheckButton" id="gadv_crossing_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">If enabled, XMMS-crossfade will take additional care to avoid clicks with pre-faded (gapless) tracks. XMMS-crossfade will cut off the end of the previous song (the beginning of the next song) only at a zero-crossing of the sample values.
+Default: On</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Skip to next zero crossing</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label25">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Advanced</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+	    </widget>
+	    <packing>
+	      <property name="tab_expand">False</property>
+	      <property name="tab_fill">True</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="config_gapkiller_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Gap Killer</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="type">tab</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkVBox" id="config_misc_page">
+	      <property name="border_width">5</property>
+	      <property name="visible">True</property>
+	      <property name="homogeneous">False</property>
+	      <property name="spacing">5</property>
+
+	      <child>
+		<widget class="GtkFrame" id="misc_debug_frame">
+		  <property name="visible">True</property>
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkVBox" id="misc_debug_vbox">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">2</property>
+
+		      <child>
+			<widget class="GtkCheckButton" id="debug_stderr_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Monitors what is going on in XMMS-crossfade. If you think you found a bug in XMMS-crossfade, please enable this option and send me the output.
+Note that you should disable debug output if you start XMMS from within Netscape. Netscape will spam you with dialogs containing the debug output captured from &lt;stderr&gt;.
+Default: Off</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Write debug output to &lt;stderr&gt;</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="debug_monitor_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Enables the Buffer Monitor. This is a small window which shows how much data is in the buffers. The top display belongs to the mixing buffer, the bottom shows how much data is being buffered by the output plugin.
+Default: Off</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Show Buffer Monitor</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label26">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Debug options</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkFrame" id="misc_mixopt_frame">
+		  <property name="visible">True</property>
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkVBox" id="misc_mixopt_vbox">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">2</property>
+
+		      <child>
+			<widget class="GtkCheckButton" id="mixopt_enable_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Enables/disables XMMS volume and balance controls.
+Default: On</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Enable volume control</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			  <signal name="toggled" handler="on_config_mixopt_enable_check_toggled"/>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="mixopt_reverse_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Reverses left and right with the balance control.
+Default: Off</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Reverse balance</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="mixopt_software_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Enable software mixer. Usefull for output plugins without mixer support.
+Default: Off</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Software Mixer</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label27">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Volume control options</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkFrame" id="misc_other_frame">
+		  <property name="visible">True</property>
+		  <property name="label_xalign">0</property>
+		  <property name="label_yalign">0.5</property>
+		  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+		  <child>
+		    <widget class="GtkVBox" id="misc_other_vbox">
+		      <property name="border_width">5</property>
+		      <property name="visible">True</property>
+		      <property name="homogeneous">False</property>
+		      <property name="spacing">2</property>
+
+		      <child>
+			<widget class="GtkHBox" id="moth_songchange_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">5</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="moth_songchange_label">
+			      <property name="visible">True</property>
+			      <property name="sensitive">False</property>
+			      <property name="label" translatable="yes">Songchange timeout (ms):</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkSpinButton" id="moth_songchange_spin">
+			      <property name="visible">True</property>
+			      <property name="sensitive">False</property>
+			      <property name="tooltip" translatable="yes">The songchange timeout is the maximum time XMMS-crossfade waits for the next song. If this timeout is exceeded, the output plugin/device is closed.
+Default: 500</property>
+			      <property name="can_focus">True</property>
+			      <property name="climb_rate">0</property>
+			      <property name="digits">0</property>
+			      <property name="numeric">True</property>
+			      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			      <property name="snap_to_ticks">False</property>
+			      <property name="wrap">False</property>
+			      <property name="adjustment">500 10 10000 10 100 10</property>
+			      <signal name="changed" handler="on_moth_songchange_spin_changed"/>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">True</property>
+			      <property name="fill">True</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">True</property>
+			  <property name="fill">True</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHBox" id="moth_preload_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">5</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="moth_preload_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Mixing buffer preload (ms):</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkSpinButton" id="moth_preload_spin">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">Tells XMMS-crossfade how much data it should buffer before it starts writing to the output plugin/device. Usually, this value can be set to 0, because the output plugin does preloading on its own.
+Default: 0</property>
+			      <property name="can_focus">True</property>
+			      <property name="climb_rate">0</property>
+			      <property name="digits">0</property>
+			      <property name="numeric">True</property>
+			      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			      <property name="snap_to_ticks">False</property>
+			      <property name="wrap">False</property>
+			      <property name="adjustment">0 0 60000 10 100 10</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">True</property>
+			      <property name="fill">True</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">True</property>
+			  <property name="fill">True</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHBox" id="moth_noxf_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">5</property>
+
+			  <child>
+			    <widget class="GtkLabel" id="moth_noxf_label">
+			      <property name="visible">True</property>
+			      <property name="label" translatable="yes">Don't  crossfade</property>
+			      <property name="use_underline">False</property>
+			      <property name="use_markup">False</property>
+			      <property name="justify">GTK_JUSTIFY_CENTER</property>
+			      <property name="wrap">False</property>
+			      <property name="selectable">False</property>
+			      <property name="xalign">0.5</property>
+			      <property name="yalign">0.5</property>
+			      <property name="xpad">0</property>
+			      <property name="ypad">0</property>
+			      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			      <property name="width_chars">-1</property>
+			      <property name="single_line_mode">False</property>
+			      <property name="angle">0</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkCheckButton" id="noxf_album_check">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">This option enables the automatic detection of pre-faded or gapless tracks, like the tracks on some compilations or on most live albums. If such tracks are detected, crossfading will be disabled and only the gapkiller (if enabled) will be used for the songchange.
+Default: On</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">successive tracks</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkCheckButton" id="noxf_samefile_check">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">This option disables crossfading between the same file. This can happen if you have only one file in the playlist and 'repeat' turned on.
+Default: Off</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">same file</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="moth_httpworkaround_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Enable this when you have problems playing internet HTTP audio streams. Unfortunatelly, it also breaks crossfading.
+Default: Off</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Enable HTTP buffer underrun workaround</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkHBox" id="moth_opmaxused_hbox">
+			  <property name="visible">True</property>
+			  <property name="homogeneous">False</property>
+			  <property name="spacing">5</property>
+
+			  <child>
+			    <widget class="GtkCheckButton" id="moth_opmaxused_check">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">With this option enabled, XMMS-crossfade will limit the amount of data being buffered by the output plugin. This way, you can decrease the latency between pressing STOP/NEXT/PREV and the new song actually being played. 
+Default: Off</property>
+			      <property name="can_focus">True</property>
+			      <property name="label" translatable="yes">Limit OP buffer usage (ms):</property>
+			      <property name="use_underline">True</property>
+			      <property name="relief">GTK_RELIEF_NORMAL</property>
+			      <property name="focus_on_click">True</property>
+			      <property name="active">False</property>
+			      <property name="inconsistent">False</property>
+			      <property name="draw_indicator">True</property>
+			      <signal name="toggled" handler="on_moth_opmaxused_check_toggled"/>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">False</property>
+			      <property name="fill">False</property>
+			    </packing>
+			  </child>
+
+			  <child>
+			    <widget class="GtkSpinButton" id="moth_opmaxused_spin">
+			      <property name="visible">True</property>
+			      <property name="tooltip" translatable="yes">Beware that setting this value too low also increases the chance of buffer underruns.
+Default: 250</property>
+			      <property name="can_focus">True</property>
+			      <property name="climb_rate">0</property>
+			      <property name="digits">0</property>
+			      <property name="numeric">True</property>
+			      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			      <property name="snap_to_ticks">False</property>
+			      <property name="wrap">False</property>
+			      <property name="adjustment">500 10 10000 10 100 10</property>
+			    </widget>
+			    <packing>
+			      <property name="padding">0</property>
+			      <property name="expand">True</property>
+			      <property name="fill">True</property>
+			    </packing>
+			  </child>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">True</property>
+			  <property name="fill">True</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="moth_quantaudio_check">
+			  <property name="tooltip" translatable="yes">Enable this when you have problems playing internet HTTP audio streams. Unfortunatelly, it also breaks crossfading.
+Default: Off</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Use Quantaudio timing comments</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkCheckButton" id="moth_outputkeepopened_check">
+			  <property name="visible">True</property>
+			  <property name="tooltip" translatable="yes">Keep the output device opened all the time, even if XMMS is stopped. This way, you can avoid clicks caused by the soundcard when the device is opened or closed
+Default: Off</property>
+			  <property name="can_focus">True</property>
+			  <property name="label" translatable="yes">Keep output opened</property>
+			  <property name="use_underline">True</property>
+			  <property name="relief">GTK_RELIEF_NORMAL</property>
+			  <property name="focus_on_click">True</property>
+			  <property name="active">False</property>
+			  <property name="inconsistent">False</property>
+			  <property name="draw_indicator">True</property>
+			</widget>
+			<packing>
+			  <property name="padding">0</property>
+			  <property name="expand">False</property>
+			  <property name="fill">False</property>
+			</packing>
+		      </child>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkLabel" id="label28">
+		      <property name="visible">True</property>
+		      <property name="label" translatable="yes">Advanced options</property>
+		      <property name="use_underline">False</property>
+		      <property name="use_markup">False</property>
+		      <property name="justify">GTK_JUSTIFY_LEFT</property>
+		      <property name="wrap">False</property>
+		      <property name="selectable">False</property>
+		      <property name="xalign">0.5</property>
+		      <property name="yalign">0.5</property>
+		      <property name="xpad">0</property>
+		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
+		    </widget>
+		    <packing>
+		      <property name="type">label_item</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+	    </widget>
+	    <packing>
+	      <property name="tab_expand">False</property>
+	      <property name="tab_fill">True</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="config_misc_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Advanced</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="type">tab</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkVBox" id="config_presets_page">
+	      <property name="border_width">5</property>
+	      <property name="homogeneous">False</property>
+	      <property name="spacing">5</property>
+
+	      <child>
+		<widget class="GtkHBox" id="presets_name_hbox">
+		  <property name="visible">True</property>
+		  <property name="homogeneous">False</property>
+		  <property name="spacing">5</property>
+
+		  <child>
+		    <widget class="GtkEntry" id="presets_name_entry">
+		      <property name="visible">True</property>
+		      <property name="can_focus">True</property>
+		      <property name="editable">True</property>
+		      <property name="visibility">True</property>
+		      <property name="max_length">0</property>
+		      <property name="text" translatable="yes"></property>
+		      <property name="has_frame">True</property>
+		      <property name="invisible_char">*</property>
+		      <property name="activates_default">False</property>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">True</property>
+		      <property name="fill">True</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkButton" id="presets_delete_button">
+		      <property name="visible">True</property>
+		      <property name="can_focus">True</property>
+		      <property name="label" translatable="yes">Delete</property>
+		      <property name="use_underline">True</property>
+		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+
+		  <child>
+		    <widget class="GtkButton" id="presets_new_button">
+		      <property name="visible">True</property>
+		      <property name="can_focus">True</property>
+		      <property name="label" translatable="yes">New</property>
+		      <property name="use_underline">True</property>
+		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
+		    </widget>
+		    <packing>
+		      <property name="padding">0</property>
+		      <property name="expand">False</property>
+		      <property name="fill">False</property>
+		    </packing>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkScrolledWindow" id="presets_list_scrolledwindow">
+		  <property name="visible">True</property>
+		  <property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
+		  <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
+		  <property name="shadow_type">GTK_SHADOW_IN</property>
+		  <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
+
+		  <child>
+		    <widget class="GtkTreeView" id="presets_list_list">
+		      <property name="visible">True</property>
+		      <property name="can_focus">True</property>
+		      <property name="headers_visible">True</property>
+		      <property name="rules_hint">False</property>
+		      <property name="reorderable">False</property>
+		      <property name="enable_search">True</property>
+		      <property name="fixed_height_mode">False</property>
+		      <property name="hover_selection">False</property>
+		      <property name="hover_expand">False</property>
+		      <signal name="click_column" handler="on_presets_list_click_column"/>
+		    </widget>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">True</property>
+		  <property name="fill">True</property>
+		</packing>
+	      </child>
+
+	      <child>
+		<widget class="GtkHButtonBox" id="presets_list_bbox">
+		  <property name="visible">True</property>
+		  <property name="layout_style">GTK_BUTTONBOX_END</property>
+		  <property name="spacing">5</property>
+
+		  <child>
+		    <widget class="GtkButton" id="presets_load_button">
+		      <property name="visible">True</property>
+		      <property name="can_default">True</property>
+		      <property name="can_focus">True</property>
+		      <property name="label" translatable="yes">Load</property>
+		      <property name="use_underline">True</property>
+		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
+		    </widget>
+		  </child>
+
+		  <child>
+		    <widget class="GtkButton" id="presets_save_button">
+		      <property name="visible">True</property>
+		      <property name="can_default">True</property>
+		      <property name="can_focus">True</property>
+		      <property name="label" translatable="yes">Save</property>
+		      <property name="use_underline">True</property>
+		      <property name="relief">GTK_RELIEF_NORMAL</property>
+		      <property name="focus_on_click">True</property>
+		    </widget>
+		  </child>
+		</widget>
+		<packing>
+		  <property name="padding">0</property>
+		  <property name="expand">False</property>
+		  <property name="fill">False</property>
+		</packing>
+	      </child>
+	    </widget>
+	    <packing>
+	      <property name="tab_expand">False</property>
+	      <property name="tab_fill">True</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="config_presets_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Presets</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="type">tab</property>
+	    </packing>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="padding">0</property>
+	  <property name="expand">True</property>
+	  <property name="fill">True</property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkHButtonBox" id="config_bbox">
+	  <property name="visible">True</property>
+	  <property name="layout_style">GTK_BUTTONBOX_END</property>
+	  <property name="spacing">5</property>
+
+	  <child>
+	    <widget class="GtkButton" id="config_ok">
+	      <property name="visible">True</property>
+	      <property name="can_default">True</property>
+	      <property name="can_focus">True</property>
+	      <property name="label" translatable="yes">OK</property>
+	      <property name="use_underline">True</property>
+	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
+	      <signal name="clicked" handler="on_config_ok_clicked"/>
+	    </widget>
+	  </child>
+
+	  <child>
+	    <widget class="GtkButton" id="config_cancel">
+	      <property name="visible">True</property>
+	      <property name="can_default">True</property>
+	      <property name="can_focus">True</property>
+	      <property name="label" translatable="yes">Cancel</property>
+	      <property name="use_underline">True</property>
+	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
+	      <signal name="clicked" handler="gtk_widget_destroy" object="config_win"/>
+	    </widget>
+	  </child>
+
+	  <child>
+	    <widget class="GtkButton" id="config_apply">
+	      <property name="visible">True</property>
+	      <property name="can_default">True</property>
+	      <property name="can_focus">True</property>
+	      <property name="label" translatable="yes">Apply</property>
+	      <property name="use_underline">True</property>
+	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
+	      <signal name="clicked" handler="on_config_apply_clicked"/>
+	    </widget>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="padding">0</property>
+	  <property name="expand">False</property>
+	  <property name="fill">True</property>
+	</packing>
+      </child>
+    </widget>
+  </child>
+</widget>
+
+<widget class="GtkWindow" id="monitor_win">
+  <property name="visible">True</property>
+  <property name="title" translatable="yes">Crossfade Buffer Monitor</property>
+  <property name="type">GTK_WINDOW_TOPLEVEL</property>
+  <property name="window_position">GTK_WIN_POS_NONE</property>
+  <property name="modal">False</property>
+  <property name="default_width">320</property>
+  <property name="resizable">True</property>
+  <property name="destroy_with_parent">False</property>
+  <property name="decorated">True</property>
+  <property name="skip_taskbar_hint">False</property>
+  <property name="skip_pager_hint">False</property>
+  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
+  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+  <signal name="delete_event" handler="on_monitor_win_delete_event"/>
+
+  <child>
+    <widget class="GtkTable" id="monitor_table">
+      <property name="border_width">5</property>
+      <property name="visible">True</property>
+      <property name="n_rows">3</property>
+      <property name="n_columns">2</property>
+      <property name="homogeneous">False</property>
+      <property name="row_spacing">3</property>
+      <property name="column_spacing">5</property>
+
+      <child>
+	<widget class="GtkHBox" id="monitor_output_hbox">
+	  <property name="visible">True</property>
+	  <property name="homogeneous">False</property>
+	  <property name="spacing">3</property>
+
+	  <child>
+	    <widget class="GtkProgressBar" id="monitor_output_progress">
+	      <property name="visible">True</property>
+	      <property name="orientation">GTK_PROGRESS_LEFT_TO_RIGHT</property>
+	      <property name="fraction">0</property>
+	      <property name="pulse_step">0.10000000149</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">True</property>
+	      <property name="fill">True</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monitor_output_label2">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">ms</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	    </packing>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="left_attach">1</property>
+	  <property name="right_attach">2</property>
+	  <property name="top_attach">1</property>
+	  <property name="bottom_attach">2</property>
+	  <property name="x_options">fill</property>
+	  <property name="y_options">fill</property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkHBox" id="monitor_displaylabel_hbox">
+	  <property name="visible">True</property>
+	  <property name="homogeneous">False</property>
+	  <property name="spacing">0</property>
+
+	  <child>
+	    <widget class="GtkLabel" id="monitor_display_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Mixing Buffer:</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	      <property name="pack_type">GTK_PACK_END</property>
+	    </packing>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="left_attach">0</property>
+	  <property name="right_attach">1</property>
+	  <property name="top_attach">0</property>
+	  <property name="bottom_attach">1</property>
+	  <property name="x_options">fill</property>
+	  <property name="y_options">fill</property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkHBox" id="monitor_position_hbox">
+	  <property name="visible">True</property>
+	  <property name="homogeneous">False</property>
+	  <property name="spacing">0</property>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_position_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">-:--.-</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_label1">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes"> / </property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_total_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">-:--</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_label2">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes"> total, </property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_left_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">-:--</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_label3">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes"> left</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_written_time_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">-:--:--.-</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	      <property name="pack_type">GTK_PACK_END</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_output_time_separator_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes"> / </property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	      <property name="pack_type">GTK_PACK_END</property>
+	    </packing>
+	  </child>
+
+	  <child>
+	    <widget class="GtkLabel" id="monpos_output_time_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">-:--.---</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	      <property name="pack_type">GTK_PACK_END</property>
+	    </packing>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="left_attach">1</property>
+	  <property name="right_attach">2</property>
+	  <property name="top_attach">2</property>
+	  <property name="bottom_attach">3</property>
+	  <property name="x_options">fill</property>
+	  <property name="y_options">fill</property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkHBox" id="monitor_outputlabel_hbox">
+	  <property name="visible">True</property>
+	  <property name="homogeneous">False</property>
+	  <property name="spacing">0</property>
+
+	  <child>
+	    <widget class="GtkLabel" id="monitor_output_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Output Buffer:</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	      <property name="pack_type">GTK_PACK_END</property>
+	    </packing>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="left_attach">0</property>
+	  <property name="right_attach">1</property>
+	  <property name="top_attach">1</property>
+	  <property name="bottom_attach">2</property>
+	  <property name="x_options">fill</property>
+	  <property name="y_options">fill</property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkHBox" id="monitor_positionlabel_hbox">
+	  <property name="visible">True</property>
+	  <property name="homogeneous">False</property>
+	  <property name="spacing">0</property>
+
+	  <child>
+	    <widget class="GtkLabel" id="monitor_position_label">
+	      <property name="visible">True</property>
+	      <property name="label" translatable="yes">Position:</property>
+	      <property name="use_underline">False</property>
+	      <property name="use_markup">False</property>
+	      <property name="justify">GTK_JUSTIFY_CENTER</property>
+	      <property name="wrap">False</property>
+	      <property name="selectable">False</property>
+	      <property name="xalign">0.5</property>
+	      <property name="yalign">0.5</property>
+	      <property name="xpad">0</property>
+	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
+	    </widget>
+	    <packing>
+	      <property name="padding">0</property>
+	      <property name="expand">False</property>
+	      <property name="fill">False</property>
+	      <property name="pack_type">GTK_PACK_END</property>
+	    </packing>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="left_attach">0</property>
+	  <property name="right_attach">1</property>
+	  <property name="top_attach">2</property>
+	  <property name="bottom_attach">3</property>
+	  <property name="x_options">fill</property>
+	  <property name="y_options"></property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkFrame" id="monitor_display_frame">
+	  <property name="visible">True</property>
+	  <property name="label_xalign">0</property>
+	  <property name="label_yalign">0.5</property>
+	  <property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
+
+	  <child>
+	    <widget class="GtkDrawingArea" id="monitor_display_drawingarea">
+	      <property name="visible">True</property>
+	      <signal name="expose_event" handler="on_monitor_display_drawingarea_expose_event"/>
+	    </widget>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="left_attach">1</property>
+	  <property name="right_attach">2</property>
+	  <property name="top_attach">0</property>
+	  <property name="bottom_attach">1</property>
+	</packing>
+      </child>
+    </widget>
+  </child>
+</widget>
+
+<widget class="GtkDialog" id="about_win">
+  <property name="visible">True</property>
+  <property name="title" translatable="yes">About XMMS Crossfade Plugin</property>
+  <property name="type">GTK_WINDOW_TOPLEVEL</property>
+  <property name="window_position">GTK_WIN_POS_NONE</property>
+  <property name="modal">False</property>
+  <property name="resizable">True</property>
+  <property name="destroy_with_parent">False</property>
+  <property name="decorated">True</property>
+  <property name="skip_taskbar_hint">False</property>
+  <property name="skip_pager_hint">False</property>
+  <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
+  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+  <property name="has_separator">True</property>
+
+  <child internal-child="vbox">
+    <widget class="GtkVBox" id="about_vbox">
+      <property name="visible">True</property>
+      <property name="homogeneous">False</property>
+      <property name="spacing">0</property>
+
+      <child internal-child="action_area">
+	<widget class="GtkHButtonBox" id="about_actionarea">
+	  <property name="visible">True</property>
+	  <property name="layout_style">GTK_BUTTONBOX_END</property>
+
+	  <child>
+	    <widget class="GtkButton" id="about_ok">
+	      <property name="visible">True</property>
+	      <property name="can_focus">True</property>
+	      <property name="label" translatable="yes">OK</property>
+	      <property name="use_underline">True</property>
+	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
+	      <property name="response_id">0</property>
+	      <signal name="clicked" handler="gtk_widget_destroy" object="about_win" last_modification_time="Wed, 30 Jun 2004 06:15:58 GMT"/>
+	      <signal name="leave" handler="gtk_widget_hide" after="yes" last_modification_time="Wed, 30 Jun 2004 06:16:23 GMT"/>
+	    </widget>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="padding">0</property>
+	  <property name="expand">False</property>
+	  <property name="fill">True</property>
+	  <property name="pack_type">GTK_PACK_END</property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkLabel" id="about_label">
+	  <property name="visible">True</property>
+	  <property name="label" translatable="yes">dummy</property>
+	  <property name="use_underline">False</property>
+	  <property name="use_markup">False</property>
+	  <property name="justify">GTK_JUSTIFY_CENTER</property>
+	  <property name="wrap">False</property>
+	  <property name="selectable">False</property>
+	  <property name="xalign">0.5</property>
+	  <property name="yalign">0.5</property>
+	  <property name="xpad">0</property>
+	  <property name="ypad">0</property>
+	  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	  <property name="width_chars">-1</property>
+	  <property name="single_line_mode">False</property>
+	  <property name="angle">0</property>
+	</widget>
+	<packing>
+	  <property name="padding">0</property>
+	  <property name="expand">False</property>
+	  <property name="fill">False</property>
+	</packing>
+      </child>
+    </widget>
+  </child>
+</widget>
+
+<widget class="GtkWindow" id="help_win">
+  <property name="visible">True</property>
+  <property name="title" translatable="yes">Help</property>
+  <property name="type">GTK_WINDOW_TOPLEVEL</property>
+  <property name="window_position">GTK_WIN_POS_NONE</property>
+  <property name="modal">False</property>
+  <property name="resizable">True</property>
+  <property name="destroy_with_parent">False</property>
+  <property name="decorated">True</property>
+  <property name="skip_taskbar_hint">False</property>
+  <property name="skip_pager_hint">False</property>
+  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
+  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+
+  <child>
+    <widget class="GtkVBox" id="help_vbox">
+      <property name="border_width">5</property>
+      <property name="visible">True</property>
+      <property name="homogeneous">False</property>
+      <property name="spacing">0</property>
+
+      <child>
+	<widget class="GtkScrolledWindow" id="help_scrolledwindow">
+	  <property name="visible">True</property>
+	  <property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
+	  <property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
+	  <property name="shadow_type">GTK_SHADOW_IN</property>
+	  <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
+
+	  <child>
+	    <widget class="GtkTextView" id="help_text">
+	      <property name="visible">True</property>
+	      <property name="can_focus">True</property>
+	      <property name="editable">False</property>
+	      <property name="overwrite">False</property>
+	      <property name="accepts_tab">True</property>
+	      <property name="justification">GTK_JUSTIFY_LEFT</property>
+	      <property name="wrap_mode">GTK_WRAP_WORD</property>
+	      <property name="cursor_visible">True</property>
+	      <property name="pixels_above_lines">0</property>
+	      <property name="pixels_below_lines">0</property>
+	      <property name="pixels_inside_wrap">0</property>
+	      <property name="left_margin">0</property>
+	      <property name="right_margin">0</property>
+	      <property name="indent">0</property>
+	      <property name="text" translatable="yes">&lt;dummy&gt;
+</property>
+	    </widget>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="padding">0</property>
+	  <property name="expand">True</property>
+	  <property name="fill">True</property>
+	</packing>
+      </child>
+
+      <child>
+	<widget class="GtkHButtonBox" id="help_buttonbox">
+	  <property name="visible">True</property>
+	  <property name="layout_style">GTK_BUTTONBOX_END</property>
+	  <property name="spacing">30</property>
+
+	  <child>
+	    <widget class="GtkButton" id="help_close_button">
+	      <property name="visible">True</property>
+	      <property name="can_default">True</property>
+	      <property name="can_focus">True</property>
+	      <property name="label" translatable="yes">Close</property>
+	      <property name="use_underline">True</property>
+	      <property name="relief">GTK_RELIEF_NORMAL</property>
+	      <property name="focus_on_click">True</property>
+	      <signal name="clicked" handler="on_help_close_button_clicked"/>
+	    </widget>
+	  </child>
+	</widget>
+	<packing>
+	  <property name="padding">0</property>
+	  <property name="expand">False</property>
+	  <property name="fill">False</property>
+	</packing>
+      </child>
+    </widget>
+  </child>
+</widget>
+
+</glade-interface>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/interface-2.0.gladep	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,16 @@
+<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
+<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
+
+<glade-project>
+  <name>XMMS-crossfade</name>
+  <program_name>xmms-crossfade</program_name>
+  <source_directory></source_directory>
+  <gnome_support>FALSE</gnome_support>
+  <gettext_support>FALSE</gettext_support>
+  <output_main_file>FALSE</output_main_file>
+  <output_build_files>FALSE</output_build_files>
+  <main_source_file>interface-2.0.c</main_source_file>
+  <main_header_file>interface-2.0.h</main_header_file>
+  <support_source_file>support-2.0.c</support_source_file>
+  <support_header_file>support-2.0.h</support_header_file>
+</glade-project>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/interface.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,3252 @@
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <string.h>
+
+#include <gdk/gdkkeysyms.h>
+#include <gtk/gtk.h>
+
+#include "callbacks.h"
+#include "interface.h"
+#include "support.h"
+
+GtkWidget*
+create_config_win (void)
+{
+  GtkWidget *config_win;
+  GtkWidget *config_vbox;
+  GtkWidget *config_notebook;
+  GtkWidget *config_output_page;
+  GtkWidget *output_options_hbox;
+  GtkWidget *output_method_frame;
+  GtkWidget *output_method_vbox;
+  GSList *output_method_group_group = NULL;
+  GtkWidget *output_oss_radio;
+  GtkWidget *output_plugin_radio;
+  GtkWidget *output_none_radio;
+  GtkWidget *output_resampling_frame;
+  GtkWidget *output_resampling_table;
+  GtkWidget *resampling_rate_optionmenu;
+  GtkWidget *resampling_rate_optionmenu_menu;
+  GtkWidget *resampling_quality_optionmenu;
+  GtkWidget *resampling_quality_optionmenu_menu;
+  GtkWidget *resampling_rate_hbox;
+  GtkWidget *resampling_rate_label;
+  GtkWidget *resampling_quality_hbox;
+  GtkWidget *resampling_quality_label;
+  GtkWidget *output_notebook;
+  GtkWidget *output_oss_page;
+  GtkWidget *output_oss_notebook;
+  GtkWidget *oss_device_page;
+  GtkWidget *oss_adevice_frame;
+  GtkWidget *oss_adevice_vbox;
+  GtkWidget *oss_adevice_hbox;
+  GtkWidget *oss_adevice_optionmenu;
+  GtkWidget *oss_adevice_optionmenu_menu;
+  GtkWidget *glade_menuitem;
+  GtkWidget *oss_adevice_alt_hbox;
+  GtkWidget *oss_adevice_alt_check;
+  GtkWidget *oss_adevice_alt_entry;
+  GtkWidget *oss_mdevice_frame;
+  GtkWidget *oss_mdevice_vbox;
+  GtkWidget *oss_mdevice_hbox;
+  GtkWidget *oss_mdevice_optionmenu;
+  GtkWidget *oss_mdevice_optionmenu_menu;
+  GtkWidget *oss_mdevice_alt_hbox;
+  GtkWidget *oss_mdevice_alt_check;
+  GtkWidget *oss_mdevice_alt_entry;
+  GtkWidget *oss_device_label;
+  GtkWidget *oss_buffer_page;
+  GtkWidget *oss_buffer_frame;
+  GtkWidget *oss_buffer_vbox;
+  GtkWidget *ossbuf_buffer_hbox;
+  GtkWidget *ossbuf_buffer_label;
+  GtkObject *ossbuf_buffer_spin_adj;
+  GtkWidget *ossbuf_buffer_spin;
+  GtkWidget *ossbuf_preload_hbox;
+  GtkWidget *ossbuf_preload_label;
+  GtkObject *ossbuf_preload_spin_adj;
+  GtkWidget *ossbuf_preload_spin;
+  GtkWidget *oss_hwbuf_frame;
+  GtkWidget *oss_hwbuf_vbox;
+  GtkWidget *osshwb_maxbuf_check;
+  GtkWidget *osshwb_fragments_hbox;
+  GtkWidget *osshwb_fragments_label;
+  GtkObject *osshwb_fragments_spin_adj;
+  GtkWidget *osshwb_fragments_spin;
+  GtkWidget *osshwb_fragsize_hbox;
+  GtkWidget *osshwb_fragsize_label;
+  GtkObject *osshwb_fragsize_spin_adj;
+  GtkWidget *osshwb_fragsize_spin;
+  GtkWidget *oss_buffer_label;
+  GtkWidget *oss_mixer_page;
+  GtkWidget *oss_mixer_frame;
+  GtkWidget *oss_mixer_vbox;
+  GtkWidget *ossmixer_pcm_check;
+  GtkWidget *oss_mixer_label;
+  GtkWidget *output_plugin_page;
+  GtkWidget *op_plugin_frame;
+  GtkWidget *op_plugin_vbox;
+  GtkWidget *op_plugin_optionmenu;
+  GtkWidget *op_plugin_optionmenu_menu;
+  GtkWidget *op_plugin_buttonbox;
+  GtkWidget *op_configure_button;
+  GtkWidget *op_about_button;
+  GtkWidget *op_options_frame;
+  GtkWidget *op_options_vbox;
+  GtkWidget *op_throttle_check;
+  GtkWidget *op_maxblock_hbox;
+  GtkWidget *op_maxblock_check;
+  GtkObject *op_maxblock_spin_adj;
+  GtkWidget *op_maxblock_spin;
+  GtkWidget *op_forcereopen_check;
+  GtkWidget *empty_notebook_page;
+  GtkWidget *output_help_label;
+  GtkWidget *config_devices_label;
+  GtkWidget *config_effects_page;
+  GtkWidget *ep_plugin_frame;
+  GtkWidget *ep_plugin_vbox;
+  GtkWidget *ep_plugin_optionmenu;
+  GtkWidget *ep_plugin_optionmenu_menu;
+  GtkWidget *ep_plugin_buttonbox;
+  GtkWidget *ep_configure_button;
+  GtkWidget *ep_about_button;
+  GtkWidget *ep_enable_check;
+  GtkWidget *effects_volnorm_frame;
+  GtkWidget *effects_volnorm_table;
+  GtkWidget *volnorm_quantaudio_check;
+  GtkObject *volnorm_target_spin_adj;
+  GtkWidget *volnorm_target_spin;
+  GtkWidget *volnorm_target_hbox;
+  GtkWidget *volnorm_target_label;
+  GtkWidget *volnorm_enable_check;
+  GtkWidget *volnorm_rva2_check;
+  GtkWidget *effects_help_label;
+  GtkWidget *config_effects_label;
+  GtkWidget *config_crossfader_page;
+  GtkWidget *xf_bufsize_hbox;
+  GtkWidget *xf_bufsize_label;
+  GtkObject *xf_buffer_spin_adj;
+  GtkWidget *xf_buffer_spin;
+  GtkWidget *xf_autobuf_check;
+  GtkWidget *xf_config_hbox;
+  GtkWidget *xf_config_label;
+  GtkWidget *xf_config_optionmenu;
+  GtkWidget *xf_config_optionmenu_menu;
+  GtkWidget *xf_type_hbox;
+  GtkWidget *xf_type_label;
+  GtkWidget *xf_type_optionmenu;
+  GtkWidget *xf_type_optionmenu_menu;
+  GtkWidget *xf_type_notebook;
+  GtkWidget *xft_reopen_label;
+  GtkWidget *xft_flush_page;
+  GtkWidget *xftf_pause_frame;
+  GtkWidget *xftf_pause_table;
+  GtkWidget *xftfp_length_label;
+  GtkObject *xftfp_length_spin_adj;
+  GtkWidget *xftfp_length_spin;
+  GtkWidget *xftfp_enable_check;
+  GtkWidget *xftf_fadein_frame;
+  GtkWidget *xftf_fadein_table;
+  GtkWidget *xftffi_length_hbox;
+  GtkWidget *xftffi_length_label;
+  GtkWidget *xftffi_volume_hbox;
+  GtkWidget *xftffi_volume_label;
+  GtkObject *xftffi_length_spin_adj;
+  GtkWidget *xftffi_length_spin;
+  GtkWidget *xftffi_enable_check;
+  GtkObject *xftffi_volume_spin_adj;
+  GtkWidget *xftffi_volume_spin;
+  GtkWidget *xft_flush_label;
+  GtkWidget *xft_none_label;
+  GtkWidget *xft_pause_page;
+  GtkWidget *xf_pause_frame;
+  GtkWidget *xf_pause_table;
+  GtkWidget *pause_length_hbox;
+  GtkWidget *pause_length_label;
+  GtkObject *pause_length_spin_adj;
+  GtkWidget *pause_length_spin;
+  GtkWidget *xft_pause_label;
+  GtkWidget *xft_simplexf_page;
+  GtkWidget *xf_simple_frame;
+  GtkWidget *xf_simple_table;
+  GtkWidget *simple_length_hbox;
+  GtkWidget *simple_length_label;
+  GtkObject *simple_length_spin_adj;
+  GtkWidget *simple_length_spin;
+  GtkWidget *xft_simplexf_label;
+  GtkWidget *xft_advancedxf_page;
+  GtkWidget *xf_fadeout_frame;
+  GtkWidget *xf_fadeout_table;
+  GtkWidget *fadeout_length_hbox;
+  GtkWidget *fadeout_length_label;
+  GtkObject *fadeout_length_spin_adj;
+  GtkWidget *fadeout_length_spin;
+  GtkWidget *fadeout_volume_hbox;
+  GtkWidget *fadeout_volume_label;
+  GtkObject *fadeout_volume_spin_adj;
+  GtkWidget *fadeout_volume_spin;
+  GtkWidget *fadeout_options_hbox;
+  GtkWidget *fadeout_enable_check;
+  GtkWidget *xf_offset_frame;
+  GtkWidget *xf_offset_table;
+  GtkWidget *xfofs_custom_hbox;
+  GSList *offset_group_group = NULL;
+  GtkWidget *xfofs_custom_radiobutton;
+  GtkObject *xfofs_custom_spin_adj;
+  GtkWidget *xfofs_custom_spin;
+  GtkWidget *xfofs_none_radiobutton;
+  GtkWidget *xfofs_lockout_radiobutton;
+  GtkWidget *xfofs_lockin_radiobutton;
+  GtkWidget *xf_fadein_frame;
+  GtkWidget *xf_fadein_table;
+  GtkWidget *fadein_length_hbox;
+  GtkWidget *fadein_length_label;
+  GtkWidget *fadein_volume_hbox;
+  GtkWidget *fadein_volume_label;
+  GtkObject *fadein_length_spin_adj;
+  GtkWidget *fadein_length_spin;
+  GtkWidget *fadein_enable_check;
+  GtkWidget *fadein_lock_check;
+  GtkObject *fadein_volume_spin_adj;
+  GtkWidget *fadein_volume_spin;
+  GtkWidget *xft_advancedxf_label;
+  GtkWidget *xft_fadein_page;
+  GtkWidget *xftfi_fadein_frame;
+  GtkWidget *xftfi_fadein_table;
+  GtkWidget *xftfi_length_hbox;
+  GtkWidget *xftfi_length_label;
+  GtkWidget *xftfi_volume_hbox;
+  GtkWidget *xftfi_volume_label;
+  GtkObject *xftfi_length_spin_adj;
+  GtkWidget *xftfi_length_spin;
+  GtkObject *xftfi_volume_spin_adj;
+  GtkWidget *xftfi_volume_spin;
+  GtkWidget *xft_fadein_label;
+  GtkWidget *xft_fadeout_page;
+  GtkWidget *xftfo_fadeout_frame;
+  GtkWidget *xftfo_fadeout_table;
+  GtkWidget *xftfo_length_hbox;
+  GtkWidget *xftfo_length_label;
+  GtkObject *xftfo_length_spin_adj;
+  GtkWidget *xftfo_length_spin;
+  GtkWidget *xftfo_volume_hbox;
+  GtkWidget *xftfo_volume_label;
+  GtkObject *xftfo_volume_spin_adj;
+  GtkWidget *xftfo_volume_spin;
+  GtkWidget *xftfo_silence_frame;
+  GtkWidget *xftfo_silence_table;
+  GtkWidget *xftfo_silence_hbox;
+  GtkWidget *xftfo_silence_label;
+  GtkObject *xftfo_silence_spin_adj;
+  GtkWidget *xftfo_silence_spin;
+  GtkWidget *xft_fadeout_label;
+  GtkWidget *xft_pause_none_label;
+  GtkWidget *xft_pause_adv_page;
+  GtkWidget *xft_fadeoutin_frame;
+  GtkWidget *xft_fadeoutin_table;
+  GtkObject *xftfoi_fadeout_spin_adj;
+  GtkWidget *xftfoi_fadeout_spin;
+  GtkObject *xftfoi_silence_spin_adj;
+  GtkWidget *xftfoi_silence_spin;
+  GtkObject *xftfoi_fadein_spin_adj;
+  GtkWidget *xftfoi_fadein_spin;
+  GtkWidget *xftfoi_fadein_hbox;
+  GtkWidget *xftfoi_fadein_label;
+  GtkWidget *xftfoi_silence_hbox;
+  GtkWidget *xftfoi_silence_label;
+  GtkWidget *xftfoi_fadeout_hbox;
+  GtkWidget *xftfoi_fadeout_label;
+  GtkWidget *xft_pause_adv_label;
+  GtkWidget *config_crossfade_label;
+  GtkWidget *config_gapkiller_page;
+  GtkWidget *gap_leading_frame;
+  GtkWidget *gap_leading_table;
+  GtkObject *lgap_length_spin_adj;
+  GtkWidget *lgap_length_spin;
+  GtkObject *lgap_level_spin_adj;
+  GtkWidget *lgap_level_spin;
+  GtkWidget *lgap_length_hbox;
+  GtkWidget *lgap_length_label;
+  GtkWidget *lgap_level_hbox;
+  GtkWidget *lgap_level_label;
+  GtkWidget *lgap_enable_check;
+  GtkWidget *gap_trailing_frame;
+  GtkWidget *gap_trailing_table;
+  GtkWidget *tgap_length_hbox;
+  GtkWidget *tgap_length_label;
+  GtkWidget *tgap_level_hbox;
+  GtkWidget *tgap_level_label;
+  GtkObject *tgap_length_spin_adj;
+  GtkWidget *tgap_length_spin;
+  GtkObject *tgap_level_spin_adj;
+  GtkWidget *tgap_level_spin;
+  GtkWidget *tgap_lock_check;
+  GtkWidget *tgap_enable_check;
+  GtkWidget *gap_advanced_frame;
+  GtkWidget *gap_advanced_vbox;
+  GtkWidget *gadv_crossing_check;
+  GtkWidget *config_gapkiller_label;
+  GtkWidget *config_misc_page;
+  GtkWidget *misc_debug_frame;
+  GtkWidget *misc_debug_vbox;
+  GtkWidget *debug_stderr_check;
+  GtkWidget *debug_monitor_check;
+  GtkWidget *misc_mixopt_frame;
+  GtkWidget *misc_mixopt_vbox;
+  GtkWidget *mixopt_enable_check;
+  GtkWidget *mixopt_reverse_check;
+  GtkWidget *mixopt_software_check;
+  GtkWidget *misc_other_frame;
+  GtkWidget *misc_other_vbox;
+  GtkWidget *moth_songchange_hbox;
+  GtkWidget *moth_songchange_label;
+  GtkObject *moth_songchange_spin_adj;
+  GtkWidget *moth_songchange_spin;
+  GtkWidget *moth_preload_hbox;
+  GtkWidget *moth_preload_label;
+  GtkObject *moth_preload_spin_adj;
+  GtkWidget *moth_preload_spin;
+  GtkWidget *moth_noxf_hbox;
+  GtkWidget *moth_noxf_label;
+  GtkWidget *noxf_album_check;
+  GtkWidget *noxf_samefile_check;
+  GtkWidget *moth_httpworkaround_check;
+  GtkWidget *moth_opmaxused_hbox;
+  GtkWidget *moth_opmaxused_check;
+  GtkObject *moth_opmaxused_spin_adj;
+  GtkWidget *moth_opmaxused_spin;
+  GtkWidget *moth_quantaudio_check;
+  GtkWidget *moth_outputkeepopened_check;
+  GtkWidget *config_misc_label;
+  GtkWidget *config_presets_page;
+  GtkWidget *presets_name_hbox;
+  GtkWidget *presets_name_entry;
+  GtkWidget *presets_delete_button;
+  GtkWidget *presets_new_button;
+  GtkWidget *presets_list_scrolledwindow;
+  GtkWidget *presets_list_list;
+  GtkWidget *label6;
+  GtkWidget *label7;
+  GtkWidget *label8;
+  GtkWidget *presets_list_bbox;
+  GtkWidget *presets_load_button;
+  GtkWidget *presets_save_button;
+  GtkWidget *config_presets_label;
+  GtkWidget *config_bbox;
+  GtkWidget *config_ok;
+  GtkWidget *config_cancel;
+  GtkWidget *config_apply;
+  GtkTooltips *tooltips;
+
+  tooltips = gtk_tooltips_new ();
+
+  config_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  gtk_object_set_data (GTK_OBJECT (config_win), "config_win", config_win);
+  gtk_window_set_title (GTK_WINDOW (config_win), "Crossfade Configuration");
+
+  config_vbox = gtk_vbox_new (FALSE, 10);
+  gtk_widget_ref (config_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_vbox", config_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_vbox);
+  gtk_container_add (GTK_CONTAINER (config_win), config_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (config_vbox), 10);
+
+  config_notebook = gtk_notebook_new ();
+  gtk_widget_ref (config_notebook);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_notebook", config_notebook,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_notebook);
+  gtk_box_pack_start (GTK_BOX (config_vbox), config_notebook, TRUE, TRUE, 0);
+
+  config_output_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (config_output_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_output_page", config_output_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_output_page);
+  gtk_container_add (GTK_CONTAINER (config_notebook), config_output_page);
+  gtk_container_set_border_width (GTK_CONTAINER (config_output_page), 5);
+
+  output_options_hbox = gtk_hbox_new (FALSE, 6);
+  gtk_widget_ref (output_options_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_options_hbox", output_options_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_options_hbox);
+  gtk_box_pack_start (GTK_BOX (config_output_page), output_options_hbox, FALSE, TRUE, 0);
+
+  output_method_frame = gtk_frame_new ("Output method");
+  gtk_widget_ref (output_method_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_method_frame", output_method_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_method_frame);
+  gtk_box_pack_start (GTK_BOX (output_options_hbox), output_method_frame, TRUE, TRUE, 0);
+
+  output_method_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (output_method_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_method_vbox", output_method_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_method_vbox);
+  gtk_container_add (GTK_CONTAINER (output_method_frame), output_method_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (output_method_vbox), 5);
+
+  output_oss_radio = gtk_radio_button_new_with_label (output_method_group_group, "Builtin OSS driver");
+  output_method_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (output_oss_radio));
+  gtk_widget_ref (output_oss_radio);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_oss_radio", output_oss_radio,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_oss_radio);
+  gtk_box_pack_start (GTK_BOX (output_method_vbox), output_oss_radio, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, output_oss_radio, "Use XMMS-crossfade's builtin OSS driver for output.", NULL);
+
+  output_plugin_radio = gtk_radio_button_new_with_label (output_method_group_group, "Output plugin");
+  output_method_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (output_plugin_radio));
+  gtk_widget_ref (output_plugin_radio);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_plugin_radio", output_plugin_radio,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_plugin_radio);
+  gtk_box_pack_start (GTK_BOX (output_method_vbox), output_plugin_radio, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, output_plugin_radio, "Use an existing plugin for output.", NULL);
+
+  output_none_radio = gtk_radio_button_new_with_label (output_method_group_group, "None [not implemented]");
+  output_method_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (output_none_radio));
+  gtk_widget_ref (output_none_radio);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_none_radio", output_none_radio,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_box_pack_start (GTK_BOX (output_method_vbox), output_none_radio, FALSE, FALSE, 0);
+  gtk_widget_set_sensitive (output_none_radio, FALSE);
+
+  output_resampling_frame = gtk_frame_new ("Resampling");
+  gtk_widget_ref (output_resampling_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_resampling_frame", output_resampling_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_resampling_frame);
+  gtk_box_pack_start (GTK_BOX (output_options_hbox), output_resampling_frame, FALSE, TRUE, 0);
+
+  output_resampling_table = gtk_table_new (2, 2, FALSE);
+  gtk_widget_ref (output_resampling_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_resampling_table", output_resampling_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_resampling_table);
+  gtk_container_add (GTK_CONTAINER (output_resampling_frame), output_resampling_table);
+  gtk_container_set_border_width (GTK_CONTAINER (output_resampling_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (output_resampling_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (output_resampling_table), 2);
+
+  resampling_rate_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (resampling_rate_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "resampling_rate_optionmenu", resampling_rate_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (resampling_rate_optionmenu);
+  gtk_table_attach (GTK_TABLE (output_resampling_table), resampling_rate_optionmenu, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, resampling_rate_optionmenu, "Set the sample rate for playback. Internally, XMMS-crossfade will resample all audio to this sample rate before playback.\nDefault: 44100 Hz", NULL);
+  resampling_rate_optionmenu_menu = gtk_menu_new ();
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (resampling_rate_optionmenu), resampling_rate_optionmenu_menu);
+
+  resampling_quality_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (resampling_quality_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "resampling_quality_optionmenu", resampling_quality_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (resampling_quality_optionmenu);
+  gtk_table_attach (GTK_TABLE (output_resampling_table), resampling_quality_optionmenu, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, resampling_quality_optionmenu, "Set the resampling quality. Note that higher quality also means higher CPU usage.", NULL);
+  resampling_quality_optionmenu_menu = gtk_menu_new ();
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (resampling_quality_optionmenu), resampling_quality_optionmenu_menu);
+
+  resampling_rate_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (resampling_rate_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "resampling_rate_hbox", resampling_rate_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (resampling_rate_hbox);
+  gtk_table_attach (GTK_TABLE (output_resampling_table), resampling_rate_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  resampling_rate_label = gtk_label_new ("Rate:");
+  gtk_widget_ref (resampling_rate_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "resampling_rate_label", resampling_rate_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (resampling_rate_label);
+  gtk_box_pack_end (GTK_BOX (resampling_rate_hbox), resampling_rate_label, FALSE, FALSE, 0);
+
+  resampling_quality_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (resampling_quality_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "resampling_quality_hbox", resampling_quality_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (resampling_quality_hbox);
+  gtk_table_attach (GTK_TABLE (output_resampling_table), resampling_quality_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  resampling_quality_label = gtk_label_new ("Quality:");
+  gtk_widget_ref (resampling_quality_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "resampling_quality_label", resampling_quality_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (resampling_quality_label);
+  gtk_box_pack_end (GTK_BOX (resampling_quality_hbox), resampling_quality_label, FALSE, FALSE, 0);
+
+  output_notebook = gtk_notebook_new ();
+  gtk_widget_ref (output_notebook);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_notebook", output_notebook,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_notebook);
+  gtk_box_pack_start (GTK_BOX (config_output_page), output_notebook, FALSE, TRUE, 0);
+  GTK_WIDGET_UNSET_FLAGS (output_notebook, GTK_CAN_FOCUS);
+  gtk_notebook_set_show_tabs (GTK_NOTEBOOK (output_notebook), FALSE);
+  gtk_notebook_set_show_border (GTK_NOTEBOOK (output_notebook), FALSE);
+
+  output_oss_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (output_oss_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_oss_page", output_oss_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_oss_page);
+  gtk_container_add (GTK_CONTAINER (output_notebook), output_oss_page);
+
+  output_oss_notebook = gtk_notebook_new ();
+  gtk_widget_ref (output_oss_notebook);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_oss_notebook", output_oss_notebook,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_oss_notebook);
+  gtk_box_pack_start (GTK_BOX (output_oss_page), output_oss_notebook, FALSE, FALSE, 0);
+
+  oss_device_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (oss_device_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_device_page", oss_device_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_device_page);
+  gtk_container_add (GTK_CONTAINER (output_oss_notebook), oss_device_page);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_device_page), 5);
+
+  oss_adevice_frame = gtk_frame_new ("Audio device");
+  gtk_widget_ref (oss_adevice_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_adevice_frame", oss_adevice_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_adevice_frame);
+  gtk_box_pack_start (GTK_BOX (oss_device_page), oss_adevice_frame, FALSE, FALSE, 0);
+
+  oss_adevice_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (oss_adevice_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_adevice_vbox", oss_adevice_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_adevice_vbox);
+  gtk_container_add (GTK_CONTAINER (oss_adevice_frame), oss_adevice_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_adevice_vbox), 5);
+
+  oss_adevice_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (oss_adevice_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_adevice_hbox", oss_adevice_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_adevice_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_adevice_vbox), oss_adevice_hbox, TRUE, TRUE, 0);
+
+  oss_adevice_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (oss_adevice_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_adevice_optionmenu", oss_adevice_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_adevice_optionmenu);
+  gtk_box_pack_start (GTK_BOX (oss_adevice_hbox), oss_adevice_optionmenu, TRUE, TRUE, 0);
+  oss_adevice_optionmenu_menu = gtk_menu_new ();
+  glade_menuitem = gtk_menu_item_new_with_label ("dummy");
+  gtk_widget_show (glade_menuitem);
+  gtk_menu_append (GTK_MENU (oss_adevice_optionmenu_menu), glade_menuitem);
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (oss_adevice_optionmenu), oss_adevice_optionmenu_menu);
+
+  oss_adevice_alt_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (oss_adevice_alt_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_adevice_alt_hbox", oss_adevice_alt_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_adevice_alt_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_adevice_vbox), oss_adevice_alt_hbox, TRUE, TRUE, 0);
+
+  oss_adevice_alt_check = gtk_check_button_new_with_label ("Use alternate device:");
+  gtk_widget_ref (oss_adevice_alt_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_adevice_alt_check", oss_adevice_alt_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_adevice_alt_check);
+  gtk_box_pack_start (GTK_BOX (oss_adevice_alt_hbox), oss_adevice_alt_check, FALSE, FALSE, 0);
+
+  oss_adevice_alt_entry = gtk_entry_new ();
+  gtk_widget_ref (oss_adevice_alt_entry);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_adevice_alt_entry", oss_adevice_alt_entry,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_adevice_alt_entry);
+  gtk_box_pack_start (GTK_BOX (oss_adevice_alt_hbox), oss_adevice_alt_entry, TRUE, TRUE, 0);
+
+  oss_mdevice_frame = gtk_frame_new ("Mixer device");
+  gtk_widget_ref (oss_mdevice_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mdevice_frame", oss_mdevice_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mdevice_frame);
+  gtk_box_pack_start (GTK_BOX (oss_device_page), oss_mdevice_frame, FALSE, FALSE, 0);
+
+  oss_mdevice_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (oss_mdevice_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mdevice_vbox", oss_mdevice_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mdevice_vbox);
+  gtk_container_add (GTK_CONTAINER (oss_mdevice_frame), oss_mdevice_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_mdevice_vbox), 5);
+
+  oss_mdevice_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (oss_mdevice_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mdevice_hbox", oss_mdevice_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mdevice_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_mdevice_vbox), oss_mdevice_hbox, TRUE, TRUE, 0);
+
+  oss_mdevice_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (oss_mdevice_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mdevice_optionmenu", oss_mdevice_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mdevice_optionmenu);
+  gtk_box_pack_start (GTK_BOX (oss_mdevice_hbox), oss_mdevice_optionmenu, TRUE, TRUE, 0);
+  oss_mdevice_optionmenu_menu = gtk_menu_new ();
+  glade_menuitem = gtk_menu_item_new_with_label ("dummy");
+  gtk_widget_show (glade_menuitem);
+  gtk_menu_append (GTK_MENU (oss_mdevice_optionmenu_menu), glade_menuitem);
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (oss_mdevice_optionmenu), oss_mdevice_optionmenu_menu);
+
+  oss_mdevice_alt_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (oss_mdevice_alt_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mdevice_alt_hbox", oss_mdevice_alt_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mdevice_alt_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_mdevice_vbox), oss_mdevice_alt_hbox, FALSE, FALSE, 0);
+
+  oss_mdevice_alt_check = gtk_check_button_new_with_label ("Use alternate device:");
+  gtk_widget_ref (oss_mdevice_alt_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mdevice_alt_check", oss_mdevice_alt_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mdevice_alt_check);
+  gtk_box_pack_start (GTK_BOX (oss_mdevice_alt_hbox), oss_mdevice_alt_check, FALSE, FALSE, 0);
+
+  oss_mdevice_alt_entry = gtk_entry_new ();
+  gtk_widget_ref (oss_mdevice_alt_entry);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mdevice_alt_entry", oss_mdevice_alt_entry,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mdevice_alt_entry);
+  gtk_box_pack_start (GTK_BOX (oss_mdevice_alt_hbox), oss_mdevice_alt_entry, TRUE, TRUE, 0);
+
+  oss_device_label = gtk_label_new ("Device");
+  gtk_widget_ref (oss_device_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_device_label", oss_device_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_device_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (output_oss_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (output_oss_notebook), 0), oss_device_label);
+
+  oss_buffer_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (oss_buffer_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_buffer_page", oss_buffer_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_buffer_page);
+  gtk_container_add (GTK_CONTAINER (output_oss_notebook), oss_buffer_page);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_buffer_page), 5);
+
+  oss_buffer_frame = gtk_frame_new ("Software buffer");
+  gtk_widget_ref (oss_buffer_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_buffer_frame", oss_buffer_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_buffer_frame);
+  gtk_box_pack_start (GTK_BOX (oss_buffer_page), oss_buffer_frame, FALSE, FALSE, 0);
+
+  oss_buffer_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (oss_buffer_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_buffer_vbox", oss_buffer_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_buffer_vbox);
+  gtk_container_add (GTK_CONTAINER (oss_buffer_frame), oss_buffer_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_buffer_vbox), 5);
+
+  ossbuf_buffer_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (ossbuf_buffer_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ossbuf_buffer_hbox", ossbuf_buffer_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ossbuf_buffer_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_buffer_vbox), ossbuf_buffer_hbox, FALSE, FALSE, 0);
+
+  ossbuf_buffer_label = gtk_label_new ("Buffer size (ms):");
+  gtk_widget_ref (ossbuf_buffer_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ossbuf_buffer_label", ossbuf_buffer_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ossbuf_buffer_label);
+  gtk_box_pack_start (GTK_BOX (ossbuf_buffer_hbox), ossbuf_buffer_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (ossbuf_buffer_label), GTK_JUSTIFY_LEFT);
+
+  ossbuf_buffer_spin_adj = gtk_adjustment_new (0, 0, 60000, 10, 100, 10);
+  ossbuf_buffer_spin = gtk_spin_button_new (GTK_ADJUSTMENT (ossbuf_buffer_spin_adj), 0, 0);
+  gtk_widget_ref (ossbuf_buffer_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ossbuf_buffer_spin", ossbuf_buffer_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ossbuf_buffer_spin);
+  gtk_box_pack_start (GTK_BOX (ossbuf_buffer_hbox), ossbuf_buffer_spin, TRUE, TRUE, 0);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (ossbuf_buffer_spin), TRUE);
+
+  ossbuf_preload_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (ossbuf_preload_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ossbuf_preload_hbox", ossbuf_preload_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ossbuf_preload_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_buffer_vbox), ossbuf_preload_hbox, TRUE, TRUE, 0);
+
+  ossbuf_preload_label = gtk_label_new ("Preload size (ms):");
+  gtk_widget_ref (ossbuf_preload_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ossbuf_preload_label", ossbuf_preload_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ossbuf_preload_label);
+  gtk_box_pack_start (GTK_BOX (ossbuf_preload_hbox), ossbuf_preload_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (ossbuf_preload_label), GTK_JUSTIFY_LEFT);
+
+  ossbuf_preload_spin_adj = gtk_adjustment_new (1500, 0, 60000, 10, 100, 10);
+  ossbuf_preload_spin = gtk_spin_button_new (GTK_ADJUSTMENT (ossbuf_preload_spin_adj), 0, 0);
+  gtk_widget_ref (ossbuf_preload_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ossbuf_preload_spin", ossbuf_preload_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ossbuf_preload_spin);
+  gtk_box_pack_start (GTK_BOX (ossbuf_preload_hbox), ossbuf_preload_spin, TRUE, TRUE, 0);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (ossbuf_preload_spin), TRUE);
+
+  oss_hwbuf_frame = gtk_frame_new ("Hardware device buffer");
+  gtk_widget_ref (oss_hwbuf_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_hwbuf_frame", oss_hwbuf_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_hwbuf_frame);
+  gtk_box_pack_start (GTK_BOX (oss_buffer_page), oss_hwbuf_frame, TRUE, TRUE, 0);
+
+  oss_hwbuf_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (oss_hwbuf_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_hwbuf_vbox", oss_hwbuf_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_hwbuf_vbox);
+  gtk_container_add (GTK_CONTAINER (oss_hwbuf_frame), oss_hwbuf_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_hwbuf_vbox), 5);
+
+  osshwb_maxbuf_check = gtk_check_button_new_with_label ("Maximum device buffer size");
+  gtk_widget_ref (osshwb_maxbuf_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "osshwb_maxbuf_check", osshwb_maxbuf_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (osshwb_maxbuf_check);
+  gtk_box_pack_start (GTK_BOX (oss_hwbuf_vbox), osshwb_maxbuf_check, FALSE, FALSE, 0);
+
+  osshwb_fragments_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (osshwb_fragments_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "osshwb_fragments_hbox", osshwb_fragments_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (osshwb_fragments_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_hwbuf_vbox), osshwb_fragments_hbox, FALSE, FALSE, 0);
+
+  osshwb_fragments_label = gtk_label_new ("Number of Fragments:");
+  gtk_widget_ref (osshwb_fragments_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "osshwb_fragments_label", osshwb_fragments_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (osshwb_fragments_label);
+  gtk_box_pack_start (GTK_BOX (osshwb_fragments_hbox), osshwb_fragments_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (osshwb_fragments_label), GTK_JUSTIFY_LEFT);
+
+  osshwb_fragments_spin_adj = gtk_adjustment_new (50, 2, 65535, 1, 10, 10);
+  osshwb_fragments_spin = gtk_spin_button_new (GTK_ADJUSTMENT (osshwb_fragments_spin_adj), 0, 0);
+  gtk_widget_ref (osshwb_fragments_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "osshwb_fragments_spin", osshwb_fragments_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (osshwb_fragments_spin);
+  gtk_box_pack_start (GTK_BOX (osshwb_fragments_hbox), osshwb_fragments_spin, TRUE, TRUE, 0);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (osshwb_fragments_spin), TRUE);
+
+  osshwb_fragsize_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (osshwb_fragsize_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "osshwb_fragsize_hbox", osshwb_fragsize_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (osshwb_fragsize_hbox);
+  gtk_box_pack_start (GTK_BOX (oss_hwbuf_vbox), osshwb_fragsize_hbox, TRUE, TRUE, 0);
+
+  osshwb_fragsize_label = gtk_label_new ("Fragment size (2^x bytes):");
+  gtk_widget_ref (osshwb_fragsize_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "osshwb_fragsize_label", osshwb_fragsize_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (osshwb_fragsize_label);
+  gtk_box_pack_start (GTK_BOX (osshwb_fragsize_hbox), osshwb_fragsize_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (osshwb_fragsize_label), GTK_JUSTIFY_LEFT);
+
+  osshwb_fragsize_spin_adj = gtk_adjustment_new (11, 4, 16, 1, 10, 10);
+  osshwb_fragsize_spin = gtk_spin_button_new (GTK_ADJUSTMENT (osshwb_fragsize_spin_adj), 0, 0);
+  gtk_widget_ref (osshwb_fragsize_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "osshwb_fragsize_spin", osshwb_fragsize_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (osshwb_fragsize_spin);
+  gtk_box_pack_start (GTK_BOX (osshwb_fragsize_hbox), osshwb_fragsize_spin, TRUE, TRUE, 0);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (osshwb_fragsize_spin), TRUE);
+
+  oss_buffer_label = gtk_label_new ("Buffer");
+  gtk_widget_ref (oss_buffer_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_buffer_label", oss_buffer_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_buffer_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (output_oss_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (output_oss_notebook), 1), oss_buffer_label);
+
+  oss_mixer_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (oss_mixer_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mixer_page", oss_mixer_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mixer_page);
+  gtk_container_add (GTK_CONTAINER (output_oss_notebook), oss_mixer_page);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_mixer_page), 5);
+
+  oss_mixer_frame = gtk_frame_new ("Mixer options");
+  gtk_widget_ref (oss_mixer_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mixer_frame", oss_mixer_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mixer_frame);
+  gtk_box_pack_start (GTK_BOX (oss_mixer_page), oss_mixer_frame, FALSE, FALSE, 0);
+
+  oss_mixer_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (oss_mixer_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mixer_vbox", oss_mixer_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mixer_vbox);
+  gtk_container_add (GTK_CONTAINER (oss_mixer_frame), oss_mixer_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (oss_mixer_vbox), 5);
+
+  ossmixer_pcm_check = gtk_check_button_new_with_label ("Volume controls Master not PCM");
+  gtk_widget_ref (ossmixer_pcm_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ossmixer_pcm_check", ossmixer_pcm_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ossmixer_pcm_check);
+  gtk_box_pack_start (GTK_BOX (oss_mixer_vbox), ossmixer_pcm_check, FALSE, FALSE, 0);
+
+  oss_mixer_label = gtk_label_new ("Mixer");
+  gtk_widget_ref (oss_mixer_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "oss_mixer_label", oss_mixer_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (oss_mixer_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (output_oss_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (output_oss_notebook), 2), oss_mixer_label);
+
+  output_plugin_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (output_plugin_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_plugin_page", output_plugin_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_plugin_page);
+  gtk_container_add (GTK_CONTAINER (output_notebook), output_plugin_page);
+
+  op_plugin_frame = gtk_frame_new ("Output plugin");
+  gtk_widget_ref (op_plugin_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_plugin_frame", op_plugin_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_plugin_frame);
+  gtk_box_pack_start (GTK_BOX (output_plugin_page), op_plugin_frame, FALSE, TRUE, 0);
+
+  op_plugin_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (op_plugin_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_plugin_vbox", op_plugin_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_plugin_vbox);
+  gtk_container_add (GTK_CONTAINER (op_plugin_frame), op_plugin_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (op_plugin_vbox), 5);
+
+  op_plugin_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (op_plugin_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_plugin_optionmenu", op_plugin_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_plugin_optionmenu);
+  gtk_box_pack_start (GTK_BOX (op_plugin_vbox), op_plugin_optionmenu, FALSE, FALSE, 0);
+  op_plugin_optionmenu_menu = gtk_menu_new ();
+  glade_menuitem = gtk_menu_item_new_with_label ("dummy");
+  gtk_widget_show (glade_menuitem);
+  gtk_menu_append (GTK_MENU (op_plugin_optionmenu_menu), glade_menuitem);
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (op_plugin_optionmenu), op_plugin_optionmenu_menu);
+
+  op_plugin_buttonbox = gtk_hbutton_box_new ();
+  gtk_widget_ref (op_plugin_buttonbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_plugin_buttonbox", op_plugin_buttonbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_plugin_buttonbox);
+  gtk_box_pack_start (GTK_BOX (op_plugin_vbox), op_plugin_buttonbox, FALSE, TRUE, 0);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (op_plugin_buttonbox), GTK_BUTTONBOX_START);
+  gtk_button_box_set_spacing (GTK_BUTTON_BOX (op_plugin_buttonbox), 5);
+
+  op_configure_button = gtk_button_new_with_label ("Configure");
+  gtk_widget_ref (op_configure_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_configure_button", op_configure_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_configure_button);
+  gtk_container_add (GTK_CONTAINER (op_plugin_buttonbox), op_configure_button);
+  GTK_WIDGET_SET_FLAGS (op_configure_button, GTK_CAN_DEFAULT);
+
+  op_about_button = gtk_button_new_with_label ("About");
+  gtk_widget_ref (op_about_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_about_button", op_about_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_about_button);
+  gtk_container_add (GTK_CONTAINER (op_plugin_buttonbox), op_about_button);
+  GTK_WIDGET_SET_FLAGS (op_about_button, GTK_CAN_DEFAULT);
+
+  op_options_frame = gtk_frame_new ("Plugin compatibility options");
+  gtk_widget_ref (op_options_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_options_frame", op_options_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_options_frame);
+  gtk_box_pack_start (GTK_BOX (output_plugin_page), op_options_frame, FALSE, TRUE, 0);
+
+  op_options_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (op_options_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_options_vbox", op_options_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_options_vbox);
+  gtk_container_add (GTK_CONTAINER (op_options_frame), op_options_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (op_options_vbox), 5);
+
+  op_throttle_check = gtk_check_button_new_with_label ("Throttle Output");
+  gtk_widget_ref (op_throttle_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_throttle_check", op_throttle_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_throttle_check);
+  gtk_box_pack_start (GTK_BOX (op_options_vbox), op_throttle_check, FALSE, FALSE, 0);
+
+  op_maxblock_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (op_maxblock_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_maxblock_hbox", op_maxblock_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_maxblock_hbox);
+  gtk_box_pack_start (GTK_BOX (op_options_vbox), op_maxblock_hbox, TRUE, TRUE, 0);
+
+  op_maxblock_check = gtk_check_button_new_with_label ("Max block size (bytes):");
+  gtk_widget_ref (op_maxblock_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_maxblock_check", op_maxblock_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_maxblock_check);
+  gtk_box_pack_start (GTK_BOX (op_maxblock_hbox), op_maxblock_check, FALSE, FALSE, 0);
+
+  op_maxblock_spin_adj = gtk_adjustment_new (1024, 4, 1.04858e+06, 4, 16, 10);
+  op_maxblock_spin = gtk_spin_button_new (GTK_ADJUSTMENT (op_maxblock_spin_adj), 10, 0);
+  gtk_widget_ref (op_maxblock_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_maxblock_spin", op_maxblock_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_maxblock_spin);
+  gtk_box_pack_start (GTK_BOX (op_maxblock_hbox), op_maxblock_spin, TRUE, TRUE, 0);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (op_maxblock_spin), TRUE);
+  gtk_spin_button_set_snap_to_ticks (GTK_SPIN_BUTTON (op_maxblock_spin), TRUE);
+
+  op_forcereopen_check = gtk_check_button_new_with_label ("Force close/reopen on songchange");
+  gtk_widget_ref (op_forcereopen_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "op_forcereopen_check", op_forcereopen_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (op_forcereopen_check);
+  gtk_box_pack_start (GTK_BOX (op_options_vbox), op_forcereopen_check, FALSE, FALSE, 0);
+
+  empty_notebook_page = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (empty_notebook_page);
+  gtk_container_add (GTK_CONTAINER (output_notebook), empty_notebook_page);
+
+  output_help_label = gtk_label_new ("When modifying the Output Options or the Mixing buffer size, you need to stop/restart playback for the settings to take effect.");
+  gtk_widget_ref (output_help_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "output_help_label", output_help_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (output_help_label);
+  gtk_box_pack_end (GTK_BOX (config_output_page), output_help_label, TRUE, TRUE, 0);
+  gtk_label_set_justify (GTK_LABEL (output_help_label), GTK_JUSTIFY_LEFT);
+  gtk_label_set_line_wrap (GTK_LABEL (output_help_label), TRUE);
+
+  config_devices_label = gtk_label_new ("Output");
+  gtk_widget_ref (config_devices_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_devices_label", config_devices_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_devices_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (config_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (config_notebook), 0), config_devices_label);
+
+  config_effects_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (config_effects_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_effects_page", config_effects_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_effects_page);
+  gtk_container_add (GTK_CONTAINER (config_notebook), config_effects_page);
+  gtk_container_set_border_width (GTK_CONTAINER (config_effects_page), 5);
+
+  ep_plugin_frame = gtk_frame_new ("Pre-mixing effect plugin");
+  gtk_widget_ref (ep_plugin_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ep_plugin_frame", ep_plugin_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ep_plugin_frame);
+  gtk_box_pack_start (GTK_BOX (config_effects_page), ep_plugin_frame, FALSE, TRUE, 0);
+
+  ep_plugin_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (ep_plugin_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ep_plugin_vbox", ep_plugin_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ep_plugin_vbox);
+  gtk_container_add (GTK_CONTAINER (ep_plugin_frame), ep_plugin_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (ep_plugin_vbox), 5);
+
+  ep_plugin_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (ep_plugin_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ep_plugin_optionmenu", ep_plugin_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ep_plugin_optionmenu);
+  gtk_box_pack_start (GTK_BOX (ep_plugin_vbox), ep_plugin_optionmenu, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, ep_plugin_optionmenu, "Select an effect plugin. Take care not to use the same plugin as selected in XMMS' configuration dialog.", NULL);
+  ep_plugin_optionmenu_menu = gtk_menu_new ();
+  glade_menuitem = gtk_menu_item_new_with_label ("dummy");
+  gtk_widget_show (glade_menuitem);
+  gtk_menu_append (GTK_MENU (ep_plugin_optionmenu_menu), glade_menuitem);
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (ep_plugin_optionmenu), ep_plugin_optionmenu_menu);
+
+  ep_plugin_buttonbox = gtk_hbutton_box_new ();
+  gtk_widget_ref (ep_plugin_buttonbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ep_plugin_buttonbox", ep_plugin_buttonbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ep_plugin_buttonbox);
+  gtk_box_pack_start (GTK_BOX (ep_plugin_vbox), ep_plugin_buttonbox, FALSE, TRUE, 0);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (ep_plugin_buttonbox), GTK_BUTTONBOX_START);
+  gtk_button_box_set_spacing (GTK_BUTTON_BOX (ep_plugin_buttonbox), 5);
+
+  ep_configure_button = gtk_button_new_with_label ("Configure");
+  gtk_widget_ref (ep_configure_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ep_configure_button", ep_configure_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ep_configure_button);
+  gtk_container_add (GTK_CONTAINER (ep_plugin_buttonbox), ep_configure_button);
+  GTK_WIDGET_SET_FLAGS (ep_configure_button, GTK_CAN_DEFAULT);
+  gtk_tooltips_set_tip (tooltips, ep_configure_button, "Open the configuration dialog of the plugin selected above.", NULL);
+
+  ep_about_button = gtk_button_new_with_label ("About");
+  gtk_widget_ref (ep_about_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ep_about_button", ep_about_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ep_about_button);
+  gtk_container_add (GTK_CONTAINER (ep_plugin_buttonbox), ep_about_button);
+  GTK_WIDGET_SET_FLAGS (ep_about_button, GTK_CAN_DEFAULT);
+  gtk_tooltips_set_tip (tooltips, ep_about_button, "Open the about dialog of the plugin selected above.", NULL);
+
+  ep_enable_check = gtk_check_button_new_with_label ("Use plugin");
+  gtk_widget_ref (ep_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "ep_enable_check", ep_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (ep_enable_check);
+  gtk_container_add (GTK_CONTAINER (ep_plugin_buttonbox), ep_enable_check);
+  gtk_tooltips_set_tip (tooltips, ep_enable_check, "Enable the selected plugin. Note that after pressing 'Apply' it may take a while until you can hear the effect, since it is applied before the audio data goes into the buffer.", NULL);
+
+  effects_volnorm_frame = gtk_frame_new ("Volume normalizer");
+  gtk_widget_ref (effects_volnorm_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "effects_volnorm_frame", effects_volnorm_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_box_pack_start (GTK_BOX (config_effects_page), effects_volnorm_frame, FALSE, FALSE, 0);
+
+  effects_volnorm_table = gtk_table_new (4, 2, FALSE);
+  gtk_widget_ref (effects_volnorm_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "effects_volnorm_table", effects_volnorm_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (effects_volnorm_table);
+  gtk_container_add (GTK_CONTAINER (effects_volnorm_frame), effects_volnorm_table);
+  gtk_container_set_border_width (GTK_CONTAINER (effects_volnorm_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (effects_volnorm_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (effects_volnorm_table), 5);
+
+  volnorm_quantaudio_check = gtk_check_button_new_with_label ("Read Quantaudio comment field");
+  gtk_widget_ref (volnorm_quantaudio_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "volnorm_quantaudio_check", volnorm_quantaudio_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (volnorm_quantaudio_check);
+  gtk_table_attach (GTK_TABLE (effects_volnorm_table), volnorm_quantaudio_check, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  volnorm_target_spin_adj = gtk_adjustment_new (8000, 0, 32768, 100, 1000, 10);
+  volnorm_target_spin = gtk_spin_button_new (GTK_ADJUSTMENT (volnorm_target_spin_adj), 0, 0);
+  gtk_widget_ref (volnorm_target_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "volnorm_target_spin", volnorm_target_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (volnorm_target_spin);
+  gtk_table_attach (GTK_TABLE (effects_volnorm_table), volnorm_target_spin, 1, 2, 3, 4,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, volnorm_target_spin, "Set the maximum length for gaps at the end of a stream.\nDefault: 500", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (volnorm_target_spin), TRUE);
+
+  volnorm_target_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (volnorm_target_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "volnorm_target_hbox", volnorm_target_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (volnorm_target_hbox);
+  gtk_table_attach (GTK_TABLE (effects_volnorm_table), volnorm_target_hbox, 0, 1, 3, 4,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  volnorm_target_label = gtk_label_new ("Target RMS:");
+  gtk_widget_ref (volnorm_target_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "volnorm_target_label", volnorm_target_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (volnorm_target_label);
+  gtk_box_pack_start (GTK_BOX (volnorm_target_hbox), volnorm_target_label, FALSE, FALSE, 0);
+
+  volnorm_enable_check = gtk_check_button_new_with_label ("Enable");
+  gtk_widget_ref (volnorm_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "volnorm_enable_check", volnorm_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (volnorm_enable_check);
+  gtk_table_attach (GTK_TABLE (effects_volnorm_table), volnorm_enable_check, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  volnorm_rva2_check = gtk_check_button_new_with_label ("Read ID3V2 RVA2 Tag");
+  gtk_widget_ref (volnorm_rva2_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "volnorm_rva2_check", volnorm_rva2_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (volnorm_rva2_check);
+  gtk_table_attach (GTK_TABLE (effects_volnorm_table), volnorm_rva2_check, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  effects_help_label = gtk_label_new ("You do not need to press 'Apply' after making changes to the effect plugin settings. It may take a while though until you can hear the change, since the plugin is applied before the mixing buffer.");
+  gtk_widget_ref (effects_help_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "effects_help_label", effects_help_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (effects_help_label);
+  gtk_box_pack_start (GTK_BOX (config_effects_page), effects_help_label, TRUE, TRUE, 0);
+  gtk_label_set_justify (GTK_LABEL (effects_help_label), GTK_JUSTIFY_LEFT);
+  gtk_label_set_line_wrap (GTK_LABEL (effects_help_label), TRUE);
+
+  config_effects_label = gtk_label_new ("Effects");
+  gtk_widget_ref (config_effects_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_effects_label", config_effects_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_effects_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (config_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (config_notebook), 1), config_effects_label);
+
+  config_crossfader_page = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (config_crossfader_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_crossfader_page", config_crossfader_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_crossfader_page);
+  gtk_container_add (GTK_CONTAINER (config_notebook), config_crossfader_page);
+  gtk_container_set_border_width (GTK_CONTAINER (config_crossfader_page), 5);
+
+  xf_bufsize_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (xf_bufsize_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_bufsize_hbox", xf_bufsize_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_bufsize_hbox);
+  gtk_box_pack_start (GTK_BOX (config_crossfader_page), xf_bufsize_hbox, FALSE, FALSE, 0);
+
+  xf_bufsize_label = gtk_label_new ("Mixing buffer size (ms):");
+  gtk_widget_ref (xf_bufsize_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_bufsize_label", xf_bufsize_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_bufsize_label);
+  gtk_box_pack_start (GTK_BOX (xf_bufsize_hbox), xf_bufsize_label, FALSE, FALSE, 0);
+
+  xf_buffer_spin_adj = gtk_adjustment_new (8500, 0, 60000, 100, 1000, 10);
+  xf_buffer_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xf_buffer_spin_adj), 0, 0);
+  gtk_widget_ref (xf_buffer_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_buffer_spin", xf_buffer_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_buffer_spin);
+  gtk_box_pack_start (GTK_BOX (xf_bufsize_hbox), xf_buffer_spin, TRUE, TRUE, 0);
+  gtk_tooltips_set_tip (tooltips, xf_buffer_spin, "Specify the size of the mixing buffer. Mixing buffer space is required for pauses, fade-outs, offsetting (i.e. interleaving the end and beginning of two songs) and killing trailing gaps. Fade-ins and killing leading gaps are done on-the-fly and do not depend on mixing buffer space.\nDefault: n/a - calculated automatically", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xf_buffer_spin), TRUE);
+
+  xf_autobuf_check = gtk_check_button_new_with_label ("auto");
+  gtk_widget_ref (xf_autobuf_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_autobuf_check", xf_autobuf_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_autobuf_check);
+  gtk_box_pack_start (GTK_BOX (xf_bufsize_hbox), xf_autobuf_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, xf_autobuf_check, "Automatically calculate an optimal buffer size.\nDefault: On", NULL);
+
+  xf_config_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (xf_config_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_config_hbox", xf_config_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_config_hbox);
+  gtk_box_pack_start (GTK_BOX (config_crossfader_page), xf_config_hbox, FALSE, FALSE, 0);
+
+  xf_config_label = gtk_label_new ("Set parameters for:");
+  gtk_widget_ref (xf_config_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_config_label", xf_config_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_config_label);
+  gtk_box_pack_start (GTK_BOX (xf_config_hbox), xf_config_label, FALSE, FALSE, 0);
+
+  xf_config_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (xf_config_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_config_optionmenu", xf_config_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_config_optionmenu);
+  gtk_box_pack_start (GTK_BOX (xf_config_hbox), xf_config_optionmenu, TRUE, TRUE, 0);
+  gtk_tooltips_set_tip (tooltips, xf_config_optionmenu, "Select the type of songchange you want to configure:\n* Start of playback: When starting playback by pressing PLAY\n* Automatic songchange: When reaching the end of a song and the playlist advances to the next song\n* Manual songchange: When manually selecting another song, for example by pressing NEXT/PREV\n* Manual stop: When pressing the STOP button\n* End of playlist: After the last song in the playlist has been played\n* Seeking: When seeking within the current song", NULL);
+  xf_config_optionmenu_menu = gtk_menu_new ();
+  glade_menuitem = gtk_menu_item_new_with_label ("dummy");
+  gtk_widget_show (glade_menuitem);
+  gtk_menu_append (GTK_MENU (xf_config_optionmenu_menu), glade_menuitem);
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (xf_config_optionmenu), xf_config_optionmenu_menu);
+
+  xf_type_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (xf_type_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_type_hbox", xf_type_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_type_hbox);
+  gtk_box_pack_start (GTK_BOX (config_crossfader_page), xf_type_hbox, FALSE, FALSE, 0);
+
+  xf_type_label = gtk_label_new ("Crossfade/Transition type:");
+  gtk_widget_ref (xf_type_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_type_label", xf_type_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_type_label);
+  gtk_box_pack_start (GTK_BOX (xf_type_hbox), xf_type_label, FALSE, FALSE, 0);
+
+  xf_type_optionmenu = gtk_option_menu_new ();
+  gtk_widget_ref (xf_type_optionmenu);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_type_optionmenu", xf_type_optionmenu,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_type_optionmenu);
+  gtk_box_pack_start (GTK_BOX (xf_type_hbox), xf_type_optionmenu, TRUE, TRUE, 0);
+  gtk_tooltips_set_tip (tooltips, xf_type_optionmenu, "Select the transition to be used for the songchange type selected above:\n* Fade-in: Fade-in at 'Start of playback'\n* Reopen output device: Force a close/open on the output plugin. This will most certainly re-introduce gaps and clicks, but might be usefull with some plugins.\n* Flush output device: Keeps the output plugin opened, but flushes its buffers. This will give you almost instant reaction when pressing NEXT/PREV.\n* None (gapless/off): Gapless mode. Keeps the device opened, but does not do any fading.\n* Simple crossfade: Does a simple crossfade between the previous and the next song.\n* Advanced crossfade: Allows you to configure the crossfade in more detail.\n* Fade-out: Fade-out at 'Manual stop' or 'End of playlist'.", NULL);
+  xf_type_optionmenu_menu = gtk_menu_new ();
+  glade_menuitem = gtk_menu_item_new_with_label ("dummy");
+  gtk_widget_show (glade_menuitem);
+  gtk_menu_append (GTK_MENU (xf_type_optionmenu_menu), glade_menuitem);
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (xf_type_optionmenu), xf_type_optionmenu_menu);
+
+  xf_type_notebook = gtk_notebook_new ();
+  gtk_widget_ref (xf_type_notebook);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_type_notebook", xf_type_notebook,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_type_notebook);
+  gtk_box_pack_start (GTK_BOX (config_crossfader_page), xf_type_notebook, FALSE, FALSE, 0);
+  GTK_WIDGET_UNSET_FLAGS (xf_type_notebook, GTK_CAN_FOCUS);
+  gtk_notebook_set_show_tabs (GTK_NOTEBOOK (xf_type_notebook), FALSE);
+  gtk_notebook_set_show_border (GTK_NOTEBOOK (xf_type_notebook), FALSE);
+
+  empty_notebook_page = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (empty_notebook_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), empty_notebook_page);
+
+  xft_reopen_label = gtk_label_new ("Reopen");
+  gtk_widget_ref (xft_reopen_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_reopen_label", xft_reopen_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_reopen_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 0), xft_reopen_label);
+
+  xft_flush_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (xft_flush_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_flush_page", xft_flush_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_flush_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), xft_flush_page);
+
+  xftf_pause_frame = gtk_frame_new ("Pause");
+  gtk_widget_ref (xftf_pause_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftf_pause_frame", xftf_pause_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftf_pause_frame);
+  gtk_box_pack_start (GTK_BOX (xft_flush_page), xftf_pause_frame, FALSE, FALSE, 0);
+
+  xftf_pause_table = gtk_table_new (2, 2, FALSE);
+  gtk_widget_ref (xftf_pause_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftf_pause_table", xftf_pause_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftf_pause_table);
+  gtk_container_add (GTK_CONTAINER (xftf_pause_frame), xftf_pause_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xftf_pause_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xftf_pause_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xftf_pause_table), 5);
+
+  xftfp_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (xftfp_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfp_length_label", xftfp_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfp_length_label);
+  gtk_table_attach (GTK_TABLE (xftf_pause_table), xftfp_length_label, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfp_length_label), GTK_JUSTIFY_LEFT);
+
+  xftfp_length_spin_adj = gtk_adjustment_new (1000, 0, 60000, 100, 1000, 10);
+  xftfp_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfp_length_spin_adj), 0, 0);
+  gtk_widget_ref (xftfp_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfp_length_spin", xftfp_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfp_length_spin);
+  gtk_table_attach (GTK_TABLE (xftf_pause_table), xftfp_length_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfp_length_spin, "Specify the length of the silence to be inserted between the tracks.\nDefault: 2000", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfp_length_spin), TRUE);
+
+  xftfp_enable_check = gtk_check_button_new_with_label ("Enable");
+  gtk_widget_ref (xftfp_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfp_enable_check", xftfp_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfp_enable_check);
+  gtk_table_attach (GTK_TABLE (xftf_pause_table), xftfp_enable_check, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  xftf_fadein_frame = gtk_frame_new ("Fade in");
+  gtk_widget_ref (xftf_fadein_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftf_fadein_frame", xftf_fadein_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftf_fadein_frame);
+  gtk_box_pack_start (GTK_BOX (xft_flush_page), xftf_fadein_frame, FALSE, FALSE, 0);
+
+  xftf_fadein_table = gtk_table_new (3, 2, FALSE);
+  gtk_widget_ref (xftf_fadein_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftf_fadein_table", xftf_fadein_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftf_fadein_table);
+  gtk_container_add (GTK_CONTAINER (xftf_fadein_frame), xftf_fadein_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xftf_fadein_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xftf_fadein_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xftf_fadein_table), 5);
+
+  xftffi_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftffi_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftffi_length_hbox", xftffi_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftffi_length_hbox);
+  gtk_table_attach (GTK_TABLE (xftf_fadein_table), xftffi_length_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xftffi_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (xftffi_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftffi_length_label", xftffi_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftffi_length_label);
+  gtk_box_pack_start (GTK_BOX (xftffi_length_hbox), xftffi_length_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftffi_length_label), GTK_JUSTIFY_LEFT);
+
+  xftffi_volume_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftffi_volume_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftffi_volume_hbox", xftffi_volume_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftffi_volume_hbox);
+  gtk_table_attach (GTK_TABLE (xftf_fadein_table), xftffi_volume_hbox, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xftffi_volume_label = gtk_label_new ("Start volume (%):");
+  gtk_widget_ref (xftffi_volume_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftffi_volume_label", xftffi_volume_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftffi_volume_label);
+  gtk_box_pack_start (GTK_BOX (xftffi_volume_hbox), xftffi_volume_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftffi_volume_label), GTK_JUSTIFY_LEFT);
+
+  xftffi_length_spin_adj = gtk_adjustment_new (1000, 0, 60000, 100, 1000, 10);
+  xftffi_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftffi_length_spin_adj), 0, 0);
+  gtk_widget_ref (xftffi_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftffi_length_spin", xftffi_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftffi_length_spin);
+  gtk_table_attach (GTK_TABLE (xftf_fadein_table), xftffi_length_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftffi_length_spin, "Set the duration for the fadein of the next song.", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftffi_length_spin), TRUE);
+
+  xftffi_enable_check = gtk_check_button_new_with_label ("Enable");
+  gtk_widget_ref (xftffi_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftffi_enable_check", xftffi_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftffi_enable_check);
+  gtk_table_attach (GTK_TABLE (xftf_fadein_table), xftffi_enable_check, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  xftffi_volume_spin_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
+  xftffi_volume_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftffi_volume_spin_adj), 0, 0);
+  gtk_widget_ref (xftffi_volume_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftffi_volume_spin", xftffi_volume_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftffi_volume_spin);
+  gtk_table_attach (GTK_TABLE (xftf_fadein_table), xftffi_volume_spin, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftffi_volume_spin, "Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.\nDefault: 0", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftffi_volume_spin), TRUE);
+
+  xft_flush_label = gtk_label_new ("Flush");
+  gtk_widget_ref (xft_flush_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_flush_label", xft_flush_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_flush_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 1), xft_flush_label);
+
+  empty_notebook_page = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (empty_notebook_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), empty_notebook_page);
+
+  xft_none_label = gtk_label_new ("None");
+  gtk_widget_ref (xft_none_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_none_label", xft_none_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_none_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 2), xft_none_label);
+
+  xft_pause_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (xft_pause_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_pause_page", xft_pause_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_pause_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), xft_pause_page);
+
+  xf_pause_frame = gtk_frame_new ("Pause");
+  gtk_widget_ref (xf_pause_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_pause_frame", xf_pause_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_pause_frame);
+  gtk_box_pack_start (GTK_BOX (xft_pause_page), xf_pause_frame, FALSE, FALSE, 0);
+
+  xf_pause_table = gtk_table_new (1, 2, FALSE);
+  gtk_widget_ref (xf_pause_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_pause_table", xf_pause_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_pause_table);
+  gtk_container_add (GTK_CONTAINER (xf_pause_frame), xf_pause_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xf_pause_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xf_pause_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xf_pause_table), 5);
+
+  pause_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (pause_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "pause_length_hbox", pause_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (pause_length_hbox);
+  gtk_table_attach (GTK_TABLE (xf_pause_table), pause_length_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  pause_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (pause_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "pause_length_label", pause_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (pause_length_label);
+  gtk_box_pack_start (GTK_BOX (pause_length_hbox), pause_length_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (pause_length_label), GTK_JUSTIFY_LEFT);
+
+  pause_length_spin_adj = gtk_adjustment_new (1000, 0, 60000, 100, 1000, 10);
+  pause_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (pause_length_spin_adj), 0, 0);
+  gtk_widget_ref (pause_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "pause_length_spin", pause_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (pause_length_spin);
+  gtk_table_attach (GTK_TABLE (xf_pause_table), pause_length_spin, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, pause_length_spin, "Specify the length of the silence to be inserted between the tracks.\nDefault: 2000", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (pause_length_spin), TRUE);
+
+  xft_pause_label = gtk_label_new ("Pause");
+  gtk_widget_ref (xft_pause_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_pause_label", xft_pause_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_pause_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 3), xft_pause_label);
+
+  xft_simplexf_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (xft_simplexf_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_simplexf_page", xft_simplexf_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_simplexf_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), xft_simplexf_page);
+
+  xf_simple_frame = gtk_frame_new ("Crossfade");
+  gtk_widget_ref (xf_simple_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_simple_frame", xf_simple_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_simple_frame);
+  gtk_box_pack_start (GTK_BOX (xft_simplexf_page), xf_simple_frame, FALSE, FALSE, 0);
+
+  xf_simple_table = gtk_table_new (1, 2, FALSE);
+  gtk_widget_ref (xf_simple_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_simple_table", xf_simple_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_simple_table);
+  gtk_container_add (GTK_CONTAINER (xf_simple_frame), xf_simple_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xf_simple_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xf_simple_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xf_simple_table), 5);
+
+  simple_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (simple_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "simple_length_hbox", simple_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (simple_length_hbox);
+  gtk_table_attach (GTK_TABLE (xf_simple_table), simple_length_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  simple_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (simple_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "simple_length_label", simple_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (simple_length_label);
+  gtk_box_pack_start (GTK_BOX (simple_length_hbox), simple_length_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (simple_length_label), GTK_JUSTIFY_LEFT);
+
+  simple_length_spin_adj = gtk_adjustment_new (1500, 0, 60000, 100, 1000, 10);
+  simple_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (simple_length_spin_adj), 0, 0);
+  gtk_widget_ref (simple_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "simple_length_spin", simple_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (simple_length_spin);
+  gtk_table_attach (GTK_TABLE (xf_simple_table), simple_length_spin, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, simple_length_spin, "Specify the length of the crosssfade.\nDefault: depends on songchange type", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (simple_length_spin), TRUE);
+
+  xft_simplexf_label = gtk_label_new ("Simple XF");
+  gtk_widget_ref (xft_simplexf_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_simplexf_label", xft_simplexf_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_simplexf_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 4), xft_simplexf_label);
+
+  xft_advancedxf_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (xft_advancedxf_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_advancedxf_page", xft_advancedxf_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_advancedxf_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), xft_advancedxf_page);
+
+  xf_fadeout_frame = gtk_frame_new ("Fade out");
+  gtk_widget_ref (xf_fadeout_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_fadeout_frame", xf_fadeout_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_fadeout_frame);
+  gtk_box_pack_start (GTK_BOX (xft_advancedxf_page), xf_fadeout_frame, FALSE, FALSE, 0);
+
+  xf_fadeout_table = gtk_table_new (3, 2, FALSE);
+  gtk_widget_ref (xf_fadeout_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_fadeout_table", xf_fadeout_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_fadeout_table);
+  gtk_container_add (GTK_CONTAINER (xf_fadeout_frame), xf_fadeout_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xf_fadeout_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xf_fadeout_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xf_fadeout_table), 5);
+
+  fadeout_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (fadeout_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_length_hbox", fadeout_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_length_hbox);
+  gtk_table_attach (GTK_TABLE (xf_fadeout_table), fadeout_length_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  fadeout_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (fadeout_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_length_label", fadeout_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_length_label);
+  gtk_box_pack_start (GTK_BOX (fadeout_length_hbox), fadeout_length_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (fadeout_length_label), GTK_JUSTIFY_LEFT);
+
+  fadeout_length_spin_adj = gtk_adjustment_new (1000, 0, 60000, 100, 1000, 10);
+  fadeout_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (fadeout_length_spin_adj), 0, 0);
+  gtk_widget_ref (fadeout_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_length_spin", fadeout_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_length_spin);
+  gtk_table_attach (GTK_TABLE (xf_fadeout_table), fadeout_length_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, fadeout_length_spin, "Set the duration for the fadeout of the previous song.", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fadeout_length_spin), TRUE);
+
+  fadeout_volume_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (fadeout_volume_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_volume_hbox", fadeout_volume_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_volume_hbox);
+  gtk_table_attach (GTK_TABLE (xf_fadeout_table), fadeout_volume_hbox, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  fadeout_volume_label = gtk_label_new ("End volume (%):");
+  gtk_widget_ref (fadeout_volume_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_volume_label", fadeout_volume_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_volume_label);
+  gtk_box_pack_start (GTK_BOX (fadeout_volume_hbox), fadeout_volume_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (fadeout_volume_label), GTK_JUSTIFY_LEFT);
+
+  fadeout_volume_spin_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
+  fadeout_volume_spin = gtk_spin_button_new (GTK_ADJUSTMENT (fadeout_volume_spin_adj), 0, 0);
+  gtk_widget_ref (fadeout_volume_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_volume_spin", fadeout_volume_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_volume_spin);
+  gtk_table_attach (GTK_TABLE (xf_fadeout_table), fadeout_volume_spin, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, fadeout_volume_spin, "Set the end volume. XMMS-crossfade will fade from 100% to this volume during the time specified above.\nDefault: 0", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fadeout_volume_spin), TRUE);
+
+  fadeout_options_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (fadeout_options_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_options_hbox", fadeout_options_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_options_hbox);
+  gtk_table_attach (GTK_TABLE (xf_fadeout_table), fadeout_options_hbox, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  fadeout_enable_check = gtk_check_button_new_with_label ("Enable");
+  gtk_widget_ref (fadeout_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadeout_enable_check", fadeout_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadeout_enable_check);
+  gtk_box_pack_start (GTK_BOX (fadeout_options_hbox), fadeout_enable_check, FALSE, FALSE, 0);
+
+  xf_offset_frame = gtk_frame_new ("Offset");
+  gtk_widget_ref (xf_offset_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_offset_frame", xf_offset_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_offset_frame);
+  gtk_box_pack_start (GTK_BOX (xft_advancedxf_page), xf_offset_frame, FALSE, FALSE, 0);
+
+  xf_offset_table = gtk_table_new (4, 1, FALSE);
+  gtk_widget_ref (xf_offset_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_offset_table", xf_offset_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_offset_table);
+  gtk_container_add (GTK_CONTAINER (xf_offset_frame), xf_offset_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xf_offset_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xf_offset_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xf_offset_table), 5);
+
+  xfofs_custom_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (xfofs_custom_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xfofs_custom_hbox", xfofs_custom_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xfofs_custom_hbox);
+  gtk_table_attach (GTK_TABLE (xf_offset_table), xfofs_custom_hbox, 0, 1, 3, 4,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xfofs_custom_radiobutton = gtk_radio_button_new_with_label (offset_group_group, "Custom (ms):");
+  offset_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (xfofs_custom_radiobutton));
+  gtk_widget_ref (xfofs_custom_radiobutton);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xfofs_custom_radiobutton", xfofs_custom_radiobutton,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xfofs_custom_radiobutton);
+  gtk_box_pack_start (GTK_BOX (xfofs_custom_hbox), xfofs_custom_radiobutton, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, xfofs_custom_radiobutton, "Set a custom offset.", NULL);
+
+  xfofs_custom_spin_adj = gtk_adjustment_new (-2000, -60000, 60000, 100, 1000, 10);
+  xfofs_custom_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xfofs_custom_spin_adj), 0, 0);
+  gtk_widget_ref (xfofs_custom_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xfofs_custom_spin", xfofs_custom_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xfofs_custom_spin);
+  gtk_box_pack_start (GTK_BOX (xfofs_custom_hbox), xfofs_custom_spin, TRUE, TRUE, 0);
+  gtk_tooltips_set_tip (tooltips, xfofs_custom_spin, "Set how much the end of the previous and the beginning of the next song should overlap.\n* Negative values indicate that the next song should start before the previous has reached the end.\n* A value of 0 means that the songs are concatenated seamlessly.\n* Positive values will yield insert silence inbetween..", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xfofs_custom_spin), TRUE);
+
+  xfofs_none_radiobutton = gtk_radio_button_new_with_label (offset_group_group, "None (0 ms)");
+  offset_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (xfofs_none_radiobutton));
+  gtk_widget_ref (xfofs_none_radiobutton);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xfofs_none_radiobutton", xfofs_none_radiobutton,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xfofs_none_radiobutton);
+  gtk_table_attach (GTK_TABLE (xf_offset_table), xfofs_none_radiobutton, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xfofs_none_radiobutton, "Don't overlap the two songs. The next song will start immediatelly after the previous has ended.", NULL);
+
+  xfofs_lockout_radiobutton = gtk_radio_button_new_with_label (offset_group_group, "Lock to fadeout length");
+  offset_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (xfofs_lockout_radiobutton));
+  gtk_widget_ref (xfofs_lockout_radiobutton);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xfofs_lockout_radiobutton", xfofs_lockout_radiobutton,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xfofs_lockout_radiobutton);
+  gtk_table_attach (GTK_TABLE (xf_offset_table), xfofs_lockout_radiobutton, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xfofs_lockout_radiobutton, "Overlap by the fadeout duration specified above.", NULL);
+
+  xfofs_lockin_radiobutton = gtk_radio_button_new_with_label (offset_group_group, "Lock to fadein length");
+  offset_group_group = gtk_radio_button_group (GTK_RADIO_BUTTON (xfofs_lockin_radiobutton));
+  gtk_widget_ref (xfofs_lockin_radiobutton);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xfofs_lockin_radiobutton", xfofs_lockin_radiobutton,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xfofs_lockin_radiobutton);
+  gtk_table_attach (GTK_TABLE (xf_offset_table), xfofs_lockin_radiobutton, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xfofs_lockin_radiobutton, "Overlap by the fadein duration specified below..", NULL);
+
+  xf_fadein_frame = gtk_frame_new ("Fade in");
+  gtk_widget_ref (xf_fadein_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_fadein_frame", xf_fadein_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_fadein_frame);
+  gtk_box_pack_start (GTK_BOX (xft_advancedxf_page), xf_fadein_frame, FALSE, FALSE, 0);
+
+  xf_fadein_table = gtk_table_new (3, 2, FALSE);
+  gtk_widget_ref (xf_fadein_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xf_fadein_table", xf_fadein_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xf_fadein_table);
+  gtk_container_add (GTK_CONTAINER (xf_fadein_frame), xf_fadein_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xf_fadein_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xf_fadein_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xf_fadein_table), 5);
+
+  fadein_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (fadein_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_length_hbox", fadein_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_length_hbox);
+  gtk_table_attach (GTK_TABLE (xf_fadein_table), fadein_length_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  fadein_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (fadein_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_length_label", fadein_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_length_label);
+  gtk_box_pack_start (GTK_BOX (fadein_length_hbox), fadein_length_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (fadein_length_label), GTK_JUSTIFY_LEFT);
+
+  fadein_volume_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (fadein_volume_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_volume_hbox", fadein_volume_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_volume_hbox);
+  gtk_table_attach (GTK_TABLE (xf_fadein_table), fadein_volume_hbox, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  fadein_volume_label = gtk_label_new ("Start volume (%):");
+  gtk_widget_ref (fadein_volume_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_volume_label", fadein_volume_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_volume_label);
+  gtk_box_pack_start (GTK_BOX (fadein_volume_hbox), fadein_volume_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (fadein_volume_label), GTK_JUSTIFY_LEFT);
+
+  fadein_length_spin_adj = gtk_adjustment_new (1000, 0, 60000, 100, 1000, 10);
+  fadein_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (fadein_length_spin_adj), 0, 0);
+  gtk_widget_ref (fadein_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_length_spin", fadein_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_length_spin);
+  gtk_table_attach (GTK_TABLE (xf_fadein_table), fadein_length_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, fadein_length_spin, "Set the duration for the fadein of the next song.", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fadein_length_spin), TRUE);
+
+  fadein_enable_check = gtk_check_button_new_with_label (" Enable");
+  gtk_widget_ref (fadein_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_enable_check", fadein_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_enable_check);
+  gtk_table_attach (GTK_TABLE (xf_fadein_table), fadein_enable_check, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  fadein_lock_check = gtk_check_button_new_with_label ("Lock to Fade-out");
+  gtk_widget_ref (fadein_lock_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_lock_check", fadein_lock_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_lock_check);
+  gtk_table_attach (GTK_TABLE (xf_fadein_table), fadein_lock_check, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, fadein_lock_check, "Use the same settings as fade-out.", NULL);
+
+  fadein_volume_spin_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
+  fadein_volume_spin = gtk_spin_button_new (GTK_ADJUSTMENT (fadein_volume_spin_adj), 0, 0);
+  gtk_widget_ref (fadein_volume_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "fadein_volume_spin", fadein_volume_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (fadein_volume_spin);
+  gtk_table_attach (GTK_TABLE (xf_fadein_table), fadein_volume_spin, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, fadein_volume_spin, "Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.\nDefault: 0", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (fadein_volume_spin), TRUE);
+
+  xft_advancedxf_label = gtk_label_new ("Advanced XF");
+  gtk_widget_ref (xft_advancedxf_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_advancedxf_label", xft_advancedxf_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_advancedxf_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 5), xft_advancedxf_label);
+
+  xft_fadein_page = gtk_vbox_new (FALSE, 0);
+  gtk_widget_ref (xft_fadein_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_fadein_page", xft_fadein_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_fadein_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), xft_fadein_page);
+
+  xftfi_fadein_frame = gtk_frame_new ("Fade in");
+  gtk_widget_ref (xftfi_fadein_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_fadein_frame", xftfi_fadein_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_fadein_frame);
+  gtk_box_pack_start (GTK_BOX (xft_fadein_page), xftfi_fadein_frame, FALSE, FALSE, 0);
+
+  xftfi_fadein_table = gtk_table_new (2, 2, FALSE);
+  gtk_widget_ref (xftfi_fadein_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_fadein_table", xftfi_fadein_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_fadein_table);
+  gtk_container_add (GTK_CONTAINER (xftfi_fadein_frame), xftfi_fadein_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xftfi_fadein_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xftfi_fadein_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xftfi_fadein_table), 5);
+
+  xftfi_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfi_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_length_hbox", xftfi_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_length_hbox);
+  gtk_table_attach (GTK_TABLE (xftfi_fadein_table), xftfi_length_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xftfi_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (xftfi_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_length_label", xftfi_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_length_label);
+  gtk_box_pack_start (GTK_BOX (xftfi_length_hbox), xftfi_length_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfi_length_label), GTK_JUSTIFY_LEFT);
+
+  xftfi_volume_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfi_volume_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_volume_hbox", xftfi_volume_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_volume_hbox);
+  gtk_table_attach (GTK_TABLE (xftfi_fadein_table), xftfi_volume_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xftfi_volume_label = gtk_label_new ("Start volume (%):");
+  gtk_widget_ref (xftfi_volume_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_volume_label", xftfi_volume_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_volume_label);
+  gtk_box_pack_start (GTK_BOX (xftfi_volume_hbox), xftfi_volume_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfi_volume_label), GTK_JUSTIFY_LEFT);
+
+  xftfi_length_spin_adj = gtk_adjustment_new (1000, 0, 60000, 10, 100, 10);
+  xftfi_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfi_length_spin_adj), 0, 0);
+  gtk_widget_ref (xftfi_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_length_spin", xftfi_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_length_spin);
+  gtk_table_attach (GTK_TABLE (xftfi_fadein_table), xftfi_length_spin, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfi_length_spin, "Set the duration for the fadein when starting playback.", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfi_length_spin), TRUE);
+
+  xftfi_volume_spin_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
+  xftfi_volume_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfi_volume_spin_adj), 0, 0);
+  gtk_widget_ref (xftfi_volume_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfi_volume_spin", xftfi_volume_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfi_volume_spin);
+  gtk_table_attach (GTK_TABLE (xftfi_fadein_table), xftfi_volume_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfi_volume_spin, "Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.\nDefault: 0", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfi_volume_spin), TRUE);
+
+  xft_fadein_label = gtk_label_new ("Fade in");
+  gtk_widget_ref (xft_fadein_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_fadein_label", xft_fadein_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_fadein_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 6), xft_fadein_label);
+
+  xft_fadeout_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (xft_fadeout_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_fadeout_page", xft_fadeout_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_fadeout_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), xft_fadeout_page);
+
+  xftfo_fadeout_frame = gtk_frame_new ("Fade out");
+  gtk_widget_ref (xftfo_fadeout_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_fadeout_frame", xftfo_fadeout_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_fadeout_frame);
+  gtk_box_pack_start (GTK_BOX (xft_fadeout_page), xftfo_fadeout_frame, FALSE, FALSE, 0);
+
+  xftfo_fadeout_table = gtk_table_new (2, 2, FALSE);
+  gtk_widget_ref (xftfo_fadeout_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_fadeout_table", xftfo_fadeout_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_fadeout_table);
+  gtk_container_add (GTK_CONTAINER (xftfo_fadeout_frame), xftfo_fadeout_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xftfo_fadeout_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xftfo_fadeout_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xftfo_fadeout_table), 5);
+
+  xftfo_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfo_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_length_hbox", xftfo_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_length_hbox);
+  gtk_table_attach (GTK_TABLE (xftfo_fadeout_table), xftfo_length_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xftfo_length_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (xftfo_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_length_label", xftfo_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_length_label);
+  gtk_box_pack_start (GTK_BOX (xftfo_length_hbox), xftfo_length_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfo_length_label), GTK_JUSTIFY_LEFT);
+
+  xftfo_length_spin_adj = gtk_adjustment_new (500, 0, 60000, 10, 100, 10);
+  xftfo_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfo_length_spin_adj), 0, 0);
+  gtk_widget_ref (xftfo_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_length_spin", xftfo_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_length_spin);
+  gtk_table_attach (GTK_TABLE (xftfo_fadeout_table), xftfo_length_spin, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfo_length_spin, "Set the duration for the fadeout of the last song.", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfo_length_spin), TRUE);
+
+  xftfo_volume_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfo_volume_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_volume_hbox", xftfo_volume_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_volume_hbox);
+  gtk_table_attach (GTK_TABLE (xftfo_fadeout_table), xftfo_volume_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xftfo_volume_label = gtk_label_new ("End volume (%):");
+  gtk_widget_ref (xftfo_volume_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_volume_label", xftfo_volume_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_volume_label);
+  gtk_box_pack_start (GTK_BOX (xftfo_volume_hbox), xftfo_volume_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfo_volume_label), GTK_JUSTIFY_LEFT);
+
+  xftfo_volume_spin_adj = gtk_adjustment_new (0, 0, 100, 1, 10, 10);
+  xftfo_volume_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfo_volume_spin_adj), 0, 0);
+  gtk_widget_ref (xftfo_volume_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_volume_spin", xftfo_volume_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_volume_spin);
+  gtk_table_attach (GTK_TABLE (xftfo_fadeout_table), xftfo_volume_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfo_volume_spin, "Set the end volume. XMMS-crossfade will fade from 100% to this volume during the time specified above.\nDefault: 0", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfo_volume_spin), TRUE);
+
+  xftfo_silence_frame = gtk_frame_new ("Additional silence");
+  gtk_widget_ref (xftfo_silence_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_silence_frame", xftfo_silence_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_silence_frame);
+  gtk_box_pack_start (GTK_BOX (xft_fadeout_page), xftfo_silence_frame, FALSE, FALSE, 0);
+
+  xftfo_silence_table = gtk_table_new (1, 2, FALSE);
+  gtk_widget_ref (xftfo_silence_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_silence_table", xftfo_silence_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_silence_table);
+  gtk_container_add (GTK_CONTAINER (xftfo_silence_frame), xftfo_silence_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xftfo_silence_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xftfo_silence_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xftfo_silence_table), 5);
+
+  xftfo_silence_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfo_silence_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_silence_hbox", xftfo_silence_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_silence_hbox);
+  gtk_table_attach (GTK_TABLE (xftfo_silence_table), xftfo_silence_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  xftfo_silence_label = gtk_label_new ("Length (ms):");
+  gtk_widget_ref (xftfo_silence_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_silence_label", xftfo_silence_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_silence_label);
+  gtk_box_pack_start (GTK_BOX (xftfo_silence_hbox), xftfo_silence_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfo_silence_label), GTK_JUSTIFY_LEFT);
+
+  xftfo_silence_spin_adj = gtk_adjustment_new (100, 0, 60000, 10, 100, 10);
+  xftfo_silence_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfo_silence_spin_adj), 0, 0);
+  gtk_widget_ref (xftfo_silence_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfo_silence_spin", xftfo_silence_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfo_silence_spin);
+  gtk_table_attach (GTK_TABLE (xftfo_silence_table), xftfo_silence_spin, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfo_silence_spin, "Set how much additional silence should be played after the end of the last song. This way, you can avoid the clicks some soundcards produce when being shut down during playback.\nDefault: 500", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfo_silence_spin), TRUE);
+
+  xft_fadeout_label = gtk_label_new ("Fade out");
+  gtk_widget_ref (xft_fadeout_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_fadeout_label", xft_fadeout_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_fadeout_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 7), xft_fadeout_label);
+
+  empty_notebook_page = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (empty_notebook_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), empty_notebook_page);
+
+  xft_pause_none_label = gtk_label_new ("None");
+  gtk_widget_ref (xft_pause_none_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_pause_none_label", xft_pause_none_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_pause_none_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 8), xft_pause_none_label);
+
+  xft_pause_adv_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (xft_pause_adv_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_pause_adv_page", xft_pause_adv_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_pause_adv_page);
+  gtk_container_add (GTK_CONTAINER (xf_type_notebook), xft_pause_adv_page);
+
+  xft_fadeoutin_frame = gtk_frame_new ("Fade out / Fade in");
+  gtk_widget_ref (xft_fadeoutin_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_fadeoutin_frame", xft_fadeoutin_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_fadeoutin_frame);
+  gtk_box_pack_start (GTK_BOX (xft_pause_adv_page), xft_fadeoutin_frame, FALSE, FALSE, 0);
+
+  xft_fadeoutin_table = gtk_table_new (3, 2, FALSE);
+  gtk_widget_ref (xft_fadeoutin_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_fadeoutin_table", xft_fadeoutin_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_fadeoutin_table);
+  gtk_container_add (GTK_CONTAINER (xft_fadeoutin_frame), xft_fadeoutin_table);
+  gtk_container_set_border_width (GTK_CONTAINER (xft_fadeoutin_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (xft_fadeoutin_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (xft_fadeoutin_table), 5);
+
+  xftfoi_fadeout_spin_adj = gtk_adjustment_new (100, 0, 60000, 10, 100, 10);
+  xftfoi_fadeout_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfoi_fadeout_spin_adj), 0, 0);
+  gtk_widget_ref (xftfoi_fadeout_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_fadeout_spin", xftfoi_fadeout_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_fadeout_spin);
+  gtk_table_attach (GTK_TABLE (xft_fadeoutin_table), xftfoi_fadeout_spin, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfoi_fadeout_spin, "Set the duration for the fadeout when pausing.\nDefault: 100\n", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfoi_fadeout_spin), TRUE);
+
+  xftfoi_silence_spin_adj = gtk_adjustment_new (100, 0, 60000, 10, 100, 10);
+  xftfoi_silence_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfoi_silence_spin_adj), 0, 0);
+  gtk_widget_ref (xftfoi_silence_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_silence_spin", xftfoi_silence_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_silence_spin);
+  gtk_table_attach (GTK_TABLE (xft_fadeoutin_table), xftfoi_silence_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfoi_silence_spin, "Set how much additional silence should be played after pausing. This way, you can avoid the clicks some soundcards produce when entering pause.\nDefault: 100", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfoi_silence_spin), TRUE);
+
+  xftfoi_fadein_spin_adj = gtk_adjustment_new (100, 0, 60000, 10, 100, 10);
+  xftfoi_fadein_spin = gtk_spin_button_new (GTK_ADJUSTMENT (xftfoi_fadein_spin_adj), 0, 0);
+  gtk_widget_ref (xftfoi_fadein_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_fadein_spin", xftfoi_fadein_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_fadein_spin);
+  gtk_table_attach (GTK_TABLE (xft_fadeoutin_table), xftfoi_fadein_spin, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, xftfoi_fadein_spin, "Set the duration for the fadein when unpausing.\nDefault: 100", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xftfoi_fadein_spin), TRUE);
+
+  xftfoi_fadein_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfoi_fadein_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_fadein_hbox", xftfoi_fadein_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_fadein_hbox);
+  gtk_table_attach (GTK_TABLE (xft_fadeoutin_table), xftfoi_fadein_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  xftfoi_fadein_label = gtk_label_new ("Fade out (ms):");
+  gtk_widget_ref (xftfoi_fadein_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_fadein_label", xftfoi_fadein_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_fadein_label);
+  gtk_box_pack_start (GTK_BOX (xftfoi_fadein_hbox), xftfoi_fadein_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfoi_fadein_label), GTK_JUSTIFY_LEFT);
+
+  xftfoi_silence_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfoi_silence_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_silence_hbox", xftfoi_silence_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_silence_hbox);
+  gtk_table_attach (GTK_TABLE (xft_fadeoutin_table), xftfoi_silence_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  xftfoi_silence_label = gtk_label_new ("Silence (ms):");
+  gtk_widget_ref (xftfoi_silence_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_silence_label", xftfoi_silence_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_silence_label);
+  gtk_box_pack_start (GTK_BOX (xftfoi_silence_hbox), xftfoi_silence_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfoi_silence_label), GTK_JUSTIFY_LEFT);
+
+  xftfoi_fadeout_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (xftfoi_fadeout_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_fadeout_hbox", xftfoi_fadeout_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_fadeout_hbox);
+  gtk_table_attach (GTK_TABLE (xft_fadeoutin_table), xftfoi_fadeout_hbox, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  xftfoi_fadeout_label = gtk_label_new ("Fade in (ms):");
+  gtk_widget_ref (xftfoi_fadeout_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xftfoi_fadeout_label", xftfoi_fadeout_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xftfoi_fadeout_label);
+  gtk_box_pack_start (GTK_BOX (xftfoi_fadeout_hbox), xftfoi_fadeout_label, FALSE, FALSE, 0);
+  gtk_label_set_justify (GTK_LABEL (xftfoi_fadeout_label), GTK_JUSTIFY_LEFT);
+
+  xft_pause_adv_label = gtk_label_new ("Fade out / Fade in");
+  gtk_widget_ref (xft_pause_adv_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "xft_pause_adv_label", xft_pause_adv_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (xft_pause_adv_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (xf_type_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (xf_type_notebook), 9), xft_pause_adv_label);
+
+  config_crossfade_label = gtk_label_new ("Crossfader");
+  gtk_widget_ref (config_crossfade_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_crossfade_label", config_crossfade_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_crossfade_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (config_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (config_notebook), 2), config_crossfade_label);
+
+  config_gapkiller_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (config_gapkiller_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_gapkiller_page", config_gapkiller_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_gapkiller_page);
+  gtk_container_add (GTK_CONTAINER (config_notebook), config_gapkiller_page);
+  gtk_container_set_border_width (GTK_CONTAINER (config_gapkiller_page), 5);
+
+  gap_leading_frame = gtk_frame_new ("Leading gap killer");
+  gtk_widget_ref (gap_leading_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "gap_leading_frame", gap_leading_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (gap_leading_frame);
+  gtk_box_pack_start (GTK_BOX (config_gapkiller_page), gap_leading_frame, FALSE, TRUE, 0);
+
+  gap_leading_table = gtk_table_new (3, 2, FALSE);
+  gtk_widget_ref (gap_leading_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "gap_leading_table", gap_leading_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (gap_leading_table);
+  gtk_container_add (GTK_CONTAINER (gap_leading_frame), gap_leading_table);
+  gtk_container_set_border_width (GTK_CONTAINER (gap_leading_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (gap_leading_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (gap_leading_table), 5);
+
+  lgap_length_spin_adj = gtk_adjustment_new (500, 0, 60000, 10, 100, 10);
+  lgap_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (lgap_length_spin_adj), 0, 0);
+  gtk_widget_ref (lgap_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "lgap_length_spin", lgap_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (lgap_length_spin);
+  gtk_table_attach (GTK_TABLE (gap_leading_table), lgap_length_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, lgap_length_spin, "Set the maximum length for gaps at the beginning of a stream.\nDefault: 500", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (lgap_length_spin), TRUE);
+
+  lgap_level_spin_adj = gtk_adjustment_new (512, 0, 32767, 16, 256, 10);
+  lgap_level_spin = gtk_spin_button_new (GTK_ADJUSTMENT (lgap_level_spin_adj), 0, 0);
+  gtk_widget_ref (lgap_level_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "lgap_level_spin", lgap_level_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (lgap_level_spin);
+  gtk_table_attach (GTK_TABLE (gap_leading_table), lgap_level_spin, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, lgap_level_spin, "Set the maximum volume for gaps at the beginning of a stream. All samples below this value are considered as silent.\nDefault: 512", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (lgap_level_spin), TRUE);
+
+  lgap_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (lgap_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "lgap_length_hbox", lgap_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (lgap_length_hbox);
+  gtk_table_attach (GTK_TABLE (gap_leading_table), lgap_length_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  lgap_length_label = gtk_label_new ("Max. length (ms):");
+  gtk_widget_ref (lgap_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "lgap_length_label", lgap_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (lgap_length_label);
+  gtk_box_pack_start (GTK_BOX (lgap_length_hbox), lgap_length_label, FALSE, FALSE, 0);
+
+  lgap_level_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (lgap_level_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "lgap_level_hbox", lgap_level_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (lgap_level_hbox);
+  gtk_table_attach (GTK_TABLE (gap_leading_table), lgap_level_hbox, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  lgap_level_label = gtk_label_new ("Max. level (16bit sample):");
+  gtk_widget_ref (lgap_level_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "lgap_level_label", lgap_level_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (lgap_level_label);
+  gtk_box_pack_start (GTK_BOX (lgap_level_hbox), lgap_level_label, FALSE, FALSE, 0);
+
+  lgap_enable_check = gtk_check_button_new_with_label ("Enable");
+  gtk_widget_ref (lgap_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "lgap_enable_check", lgap_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (lgap_enable_check);
+  gtk_table_attach (GTK_TABLE (gap_leading_table), lgap_enable_check, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  gap_trailing_frame = gtk_frame_new ("Trailing gap killer");
+  gtk_widget_ref (gap_trailing_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "gap_trailing_frame", gap_trailing_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (gap_trailing_frame);
+  gtk_box_pack_start (GTK_BOX (config_gapkiller_page), gap_trailing_frame, FALSE, TRUE, 0);
+
+  gap_trailing_table = gtk_table_new (3, 2, FALSE);
+  gtk_widget_ref (gap_trailing_table);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "gap_trailing_table", gap_trailing_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (gap_trailing_table);
+  gtk_container_add (GTK_CONTAINER (gap_trailing_frame), gap_trailing_table);
+  gtk_container_set_border_width (GTK_CONTAINER (gap_trailing_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (gap_trailing_table), 2);
+  gtk_table_set_col_spacings (GTK_TABLE (gap_trailing_table), 5);
+
+  tgap_length_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (tgap_length_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_length_hbox", tgap_length_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_length_hbox);
+  gtk_table_attach (GTK_TABLE (gap_trailing_table), tgap_length_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  tgap_length_label = gtk_label_new ("Max. length (ms):");
+  gtk_widget_ref (tgap_length_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_length_label", tgap_length_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_length_label);
+  gtk_box_pack_start (GTK_BOX (tgap_length_hbox), tgap_length_label, FALSE, FALSE, 0);
+
+  tgap_level_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (tgap_level_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_level_hbox", tgap_level_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_level_hbox);
+  gtk_table_attach (GTK_TABLE (gap_trailing_table), tgap_level_hbox, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+  tgap_level_label = gtk_label_new ("Max. level (16bit sample):");
+  gtk_widget_ref (tgap_level_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_level_label", tgap_level_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_level_label);
+  gtk_box_pack_start (GTK_BOX (tgap_level_hbox), tgap_level_label, FALSE, FALSE, 0);
+
+  tgap_length_spin_adj = gtk_adjustment_new (500, 0, 60000, 10, 100, 10);
+  tgap_length_spin = gtk_spin_button_new (GTK_ADJUSTMENT (tgap_length_spin_adj), 0, 0);
+  gtk_widget_ref (tgap_length_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_length_spin", tgap_length_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_length_spin);
+  gtk_table_attach (GTK_TABLE (gap_trailing_table), tgap_length_spin, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, tgap_length_spin, "Set the maximum length for gaps at the end of a stream.\nDefault: 500", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tgap_length_spin), TRUE);
+
+  tgap_level_spin_adj = gtk_adjustment_new (512, 0, 32767, 1, 16, 10);
+  tgap_level_spin = gtk_spin_button_new (GTK_ADJUSTMENT (tgap_level_spin_adj), 0, 0);
+  gtk_widget_ref (tgap_level_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_level_spin", tgap_level_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_level_spin);
+  gtk_table_attach (GTK_TABLE (gap_trailing_table), tgap_level_spin, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, tgap_level_spin, "Set the maximum volume for gaps at the end of a stream. All samples below this value are considered as silent.\nDefault: 512", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tgap_level_spin), TRUE);
+
+  tgap_lock_check = gtk_check_button_new_with_label ("Lock to Leading");
+  gtk_widget_ref (tgap_lock_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_lock_check", tgap_lock_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_lock_check);
+  gtk_table_attach (GTK_TABLE (gap_trailing_table), tgap_lock_check, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+  gtk_tooltips_set_tip (tooltips, tgap_lock_check, "Use the same settings as above.", NULL);
+
+  tgap_enable_check = gtk_check_button_new_with_label ("Enable");
+  gtk_widget_ref (tgap_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "tgap_enable_check", tgap_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (tgap_enable_check);
+  gtk_table_attach (GTK_TABLE (gap_trailing_table), tgap_enable_check, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  gap_advanced_frame = gtk_frame_new ("Advanced");
+  gtk_widget_ref (gap_advanced_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "gap_advanced_frame", gap_advanced_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (gap_advanced_frame);
+  gtk_box_pack_start (GTK_BOX (config_gapkiller_page), gap_advanced_frame, FALSE, FALSE, 0);
+
+  gap_advanced_vbox = gtk_vbox_new (FALSE, 0);
+  gtk_widget_ref (gap_advanced_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "gap_advanced_vbox", gap_advanced_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (gap_advanced_vbox);
+  gtk_container_add (GTK_CONTAINER (gap_advanced_frame), gap_advanced_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (gap_advanced_vbox), 5);
+
+  gadv_crossing_check = gtk_check_button_new_with_label ("Skip to next zero crossing");
+  gtk_widget_ref (gadv_crossing_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "gadv_crossing_check", gadv_crossing_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (gadv_crossing_check);
+  gtk_box_pack_start (GTK_BOX (gap_advanced_vbox), gadv_crossing_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, gadv_crossing_check, "If enabled, XMMS-crossfade will take additional care to avoid clicks with pre-faded (gapless) tracks. XMMS-crossfade will cut off the end of the previous song (the beginning of the next song) only at a zero-crossing of the sample values.\nDefault: On", NULL);
+
+  config_gapkiller_label = gtk_label_new ("Gap Killer");
+  gtk_widget_ref (config_gapkiller_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_gapkiller_label", config_gapkiller_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_gapkiller_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (config_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (config_notebook), 3), config_gapkiller_label);
+
+  config_misc_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (config_misc_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_misc_page", config_misc_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_misc_page);
+  gtk_container_add (GTK_CONTAINER (config_notebook), config_misc_page);
+  gtk_container_set_border_width (GTK_CONTAINER (config_misc_page), 5);
+
+  misc_debug_frame = gtk_frame_new ("Debug options");
+  gtk_widget_ref (misc_debug_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "misc_debug_frame", misc_debug_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (misc_debug_frame);
+  gtk_box_pack_start (GTK_BOX (config_misc_page), misc_debug_frame, FALSE, FALSE, 0);
+
+  misc_debug_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (misc_debug_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "misc_debug_vbox", misc_debug_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (misc_debug_vbox);
+  gtk_container_add (GTK_CONTAINER (misc_debug_frame), misc_debug_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (misc_debug_vbox), 5);
+
+  debug_stderr_check = gtk_check_button_new_with_label ("Write debug output to <stderr>");
+  gtk_widget_ref (debug_stderr_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "debug_stderr_check", debug_stderr_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (debug_stderr_check);
+  gtk_box_pack_start (GTK_BOX (misc_debug_vbox), debug_stderr_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, debug_stderr_check, "Monitors what is going on in XMMS-crossfade. If you think you found a bug in XMMS-crossfade, please enable this option and send me the output.\nNote that you should disable debug output if you start XMMS from within Netscape. Netscape will spam you with dialogs containing the debug output captured from <stderr>.\nDefault: Off", NULL);
+
+  debug_monitor_check = gtk_check_button_new_with_label ("Show Buffer Monitor");
+  gtk_widget_ref (debug_monitor_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "debug_monitor_check", debug_monitor_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (debug_monitor_check);
+  gtk_box_pack_start (GTK_BOX (misc_debug_vbox), debug_monitor_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, debug_monitor_check, "Enables the Buffer Monitor. This is a small window which shows how much data is in the buffers. The top display belongs to the mixing buffer, the bottom shows how much data is being buffered by the output plugin.\nDefault: Off", NULL);
+
+  misc_mixopt_frame = gtk_frame_new ("Volume control options");
+  gtk_widget_ref (misc_mixopt_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "misc_mixopt_frame", misc_mixopt_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (misc_mixopt_frame);
+  gtk_box_pack_start (GTK_BOX (config_misc_page), misc_mixopt_frame, FALSE, FALSE, 0);
+
+  misc_mixopt_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (misc_mixopt_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "misc_mixopt_vbox", misc_mixopt_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (misc_mixopt_vbox);
+  gtk_container_add (GTK_CONTAINER (misc_mixopt_frame), misc_mixopt_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (misc_mixopt_vbox), 5);
+
+  mixopt_enable_check = gtk_check_button_new_with_label ("Enable volume control");
+  gtk_widget_ref (mixopt_enable_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "mixopt_enable_check", mixopt_enable_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (mixopt_enable_check);
+  gtk_box_pack_start (GTK_BOX (misc_mixopt_vbox), mixopt_enable_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, mixopt_enable_check, "Enables/disables XMMS volume and balance controls.\nDefault: On", NULL);
+
+  mixopt_reverse_check = gtk_check_button_new_with_label ("Reverse balance");
+  gtk_widget_ref (mixopt_reverse_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "mixopt_reverse_check", mixopt_reverse_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (mixopt_reverse_check);
+  gtk_box_pack_start (GTK_BOX (misc_mixopt_vbox), mixopt_reverse_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, mixopt_reverse_check, "Reverses left and right with the balance control.\nDefault: Off", NULL);
+
+  mixopt_software_check = gtk_check_button_new_with_label ("Software Mixer (delayed operation)");
+  gtk_widget_ref (mixopt_software_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "mixopt_software_check", mixopt_software_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (mixopt_software_check);
+  gtk_box_pack_start (GTK_BOX (misc_mixopt_vbox), mixopt_software_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, mixopt_software_check, "Enable software mixer. Usefull for output plugins without mixer support.\nDefault: Off", NULL);
+
+  misc_other_frame = gtk_frame_new ("Advanced options");
+  gtk_widget_ref (misc_other_frame);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "misc_other_frame", misc_other_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (misc_other_frame);
+  gtk_box_pack_start (GTK_BOX (config_misc_page), misc_other_frame, FALSE, TRUE, 0);
+
+  misc_other_vbox = gtk_vbox_new (FALSE, 2);
+  gtk_widget_ref (misc_other_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "misc_other_vbox", misc_other_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (misc_other_vbox);
+  gtk_container_add (GTK_CONTAINER (misc_other_frame), misc_other_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (misc_other_vbox), 5);
+
+  moth_songchange_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (moth_songchange_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_songchange_hbox", moth_songchange_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_songchange_hbox);
+  gtk_box_pack_start (GTK_BOX (misc_other_vbox), moth_songchange_hbox, TRUE, TRUE, 0);
+
+  moth_songchange_label = gtk_label_new ("Songchange timeout (ms):");
+  gtk_widget_ref (moth_songchange_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_songchange_label", moth_songchange_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_songchange_label);
+  gtk_box_pack_start (GTK_BOX (moth_songchange_hbox), moth_songchange_label, FALSE, FALSE, 0);
+  gtk_widget_set_sensitive (moth_songchange_label, FALSE);
+
+  moth_songchange_spin_adj = gtk_adjustment_new (500, 10, 10000, 10, 100, 10);
+  moth_songchange_spin = gtk_spin_button_new (GTK_ADJUSTMENT (moth_songchange_spin_adj), 0, 0);
+  gtk_widget_ref (moth_songchange_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_songchange_spin", moth_songchange_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_songchange_spin);
+  gtk_box_pack_start (GTK_BOX (moth_songchange_hbox), moth_songchange_spin, TRUE, TRUE, 0);
+  gtk_widget_set_sensitive (moth_songchange_spin, FALSE);
+  gtk_tooltips_set_tip (tooltips, moth_songchange_spin, "The songchange timeout is the maximum time XMMS-crossfade waits for the next song. If this timeout is exceeded, the output plugin/device is closed.\nDefault: 500", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (moth_songchange_spin), TRUE);
+
+  moth_preload_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (moth_preload_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_preload_hbox", moth_preload_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_preload_hbox);
+  gtk_box_pack_start (GTK_BOX (misc_other_vbox), moth_preload_hbox, TRUE, TRUE, 0);
+
+  moth_preload_label = gtk_label_new ("Mixing buffer preload (ms):");
+  gtk_widget_ref (moth_preload_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_preload_label", moth_preload_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_preload_label);
+  gtk_box_pack_start (GTK_BOX (moth_preload_hbox), moth_preload_label, FALSE, FALSE, 0);
+
+  moth_preload_spin_adj = gtk_adjustment_new (0, 0, 60000, 10, 100, 10);
+  moth_preload_spin = gtk_spin_button_new (GTK_ADJUSTMENT (moth_preload_spin_adj), 0, 0);
+  gtk_widget_ref (moth_preload_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_preload_spin", moth_preload_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_preload_spin);
+  gtk_box_pack_start (GTK_BOX (moth_preload_hbox), moth_preload_spin, TRUE, TRUE, 0);
+  gtk_tooltips_set_tip (tooltips, moth_preload_spin, "Tells XMMS-crossfade how much data it should buffer before it starts writing to the output plugin/device. Usually, this value can be set to 0, because the output plugin does preloading on its own.\nDefault: 0", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (moth_preload_spin), TRUE);
+
+  moth_noxf_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (moth_noxf_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_noxf_hbox", moth_noxf_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_noxf_hbox);
+  gtk_box_pack_start (GTK_BOX (misc_other_vbox), moth_noxf_hbox, FALSE, FALSE, 0);
+
+  moth_noxf_label = gtk_label_new ("Don't  crossfade");
+  gtk_widget_ref (moth_noxf_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_noxf_label", moth_noxf_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_noxf_label);
+  gtk_box_pack_start (GTK_BOX (moth_noxf_hbox), moth_noxf_label, FALSE, FALSE, 0);
+
+  noxf_album_check = gtk_check_button_new_with_label ("successive tracks");
+  gtk_widget_ref (noxf_album_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "noxf_album_check", noxf_album_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (noxf_album_check);
+  gtk_box_pack_start (GTK_BOX (moth_noxf_hbox), noxf_album_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, noxf_album_check, "This option enables the automatic detection of pre-faded or gapless tracks, like the tracks on some compilations or on most live albums. If such tracks are detected, crossfading will be disabled and only the gapkiller (if enabled) will be used for the songchange.\nDefault: On", NULL);
+
+  noxf_samefile_check = gtk_check_button_new_with_label ("same file");
+  gtk_widget_ref (noxf_samefile_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "noxf_samefile_check", noxf_samefile_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (noxf_samefile_check);
+  gtk_box_pack_start (GTK_BOX (moth_noxf_hbox), noxf_samefile_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, noxf_samefile_check, "This option disables crossfading between the same file. This can happen if you have only one file in the playlist and 'repeat' turned on.\nDefault: Off", NULL);
+
+  moth_httpworkaround_check = gtk_check_button_new_with_label ("Enable HTTP buffer underrun workaround");
+  gtk_widget_ref (moth_httpworkaround_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_httpworkaround_check", moth_httpworkaround_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_httpworkaround_check);
+  gtk_box_pack_start (GTK_BOX (misc_other_vbox), moth_httpworkaround_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, moth_httpworkaround_check, "Enable this when you have problems playing internet HTTP audio streams. Unfortunatelly, it also breaks crossfading.\nDefault: Off", NULL);
+
+  moth_opmaxused_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (moth_opmaxused_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_opmaxused_hbox", moth_opmaxused_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_opmaxused_hbox);
+  gtk_box_pack_start (GTK_BOX (misc_other_vbox), moth_opmaxused_hbox, TRUE, TRUE, 0);
+
+  moth_opmaxused_check = gtk_check_button_new_with_label ("Limit OP buffer usage (ms):");
+  gtk_widget_ref (moth_opmaxused_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_opmaxused_check", moth_opmaxused_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_opmaxused_check);
+  gtk_box_pack_start (GTK_BOX (moth_opmaxused_hbox), moth_opmaxused_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, moth_opmaxused_check, "With this option enabled, XMMS-crossfade will limit the amount of data being buffered by the output plugin. This way, you can decrease the latency between pressing STOP/NEXT/PREV and the new song actually being played. \nDefault: Off", NULL);
+
+  moth_opmaxused_spin_adj = gtk_adjustment_new (500, 10, 10000, 10, 100, 10);
+  moth_opmaxused_spin = gtk_spin_button_new (GTK_ADJUSTMENT (moth_opmaxused_spin_adj), 0, 0);
+  gtk_widget_ref (moth_opmaxused_spin);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_opmaxused_spin", moth_opmaxused_spin,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_opmaxused_spin);
+  gtk_box_pack_start (GTK_BOX (moth_opmaxused_hbox), moth_opmaxused_spin, TRUE, TRUE, 0);
+  gtk_tooltips_set_tip (tooltips, moth_opmaxused_spin, "Beware that setting this value too low also increases the chance of buffer underruns.\nDefault: 250", NULL);
+  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (moth_opmaxused_spin), TRUE);
+
+  moth_quantaudio_check = gtk_check_button_new_with_label ("Use Quantaudio timing comments");
+  gtk_widget_ref (moth_quantaudio_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_quantaudio_check", moth_quantaudio_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_box_pack_start (GTK_BOX (misc_other_vbox), moth_quantaudio_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, moth_quantaudio_check, "Enable this when you have problems playing internet HTTP audio streams. Unfortunatelly, it also breaks crossfading.\nDefault: Off", NULL);
+
+  moth_outputkeepopened_check = gtk_check_button_new_with_label ("Keep output opened");
+  gtk_widget_ref (moth_outputkeepopened_check);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "moth_outputkeepopened_check", moth_outputkeepopened_check,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (moth_outputkeepopened_check);
+  gtk_box_pack_start (GTK_BOX (misc_other_vbox), moth_outputkeepopened_check, FALSE, FALSE, 0);
+  gtk_tooltips_set_tip (tooltips, moth_outputkeepopened_check, "Keep the output device opened all the time, even if XMMS is stopped. This way, you can avoid clicks caused by the soundcard when the device is opened or closed\nDefault: Off", NULL);
+
+  config_misc_label = gtk_label_new ("Advanced");
+  gtk_widget_ref (config_misc_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_misc_label", config_misc_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_misc_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (config_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (config_notebook), 4), config_misc_label);
+
+  config_presets_page = gtk_vbox_new (FALSE, 5);
+  gtk_widget_ref (config_presets_page);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_presets_page", config_presets_page,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_container_add (GTK_CONTAINER (config_notebook), config_presets_page);
+  gtk_container_set_border_width (GTK_CONTAINER (config_presets_page), 5);
+
+  presets_name_hbox = gtk_hbox_new (FALSE, 5);
+  gtk_widget_ref (presets_name_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_name_hbox", presets_name_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_name_hbox);
+  gtk_box_pack_start (GTK_BOX (config_presets_page), presets_name_hbox, FALSE, FALSE, 0);
+
+  presets_name_entry = gtk_entry_new ();
+  gtk_widget_ref (presets_name_entry);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_name_entry", presets_name_entry,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_name_entry);
+  gtk_box_pack_start (GTK_BOX (presets_name_hbox), presets_name_entry, TRUE, TRUE, 0);
+
+  presets_delete_button = gtk_button_new_with_label ("Delete");
+  gtk_widget_ref (presets_delete_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_delete_button", presets_delete_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_delete_button);
+  gtk_box_pack_start (GTK_BOX (presets_name_hbox), presets_delete_button, FALSE, FALSE, 0);
+
+  presets_new_button = gtk_button_new_with_label ("New");
+  gtk_widget_ref (presets_new_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_new_button", presets_new_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_new_button);
+  gtk_box_pack_start (GTK_BOX (presets_name_hbox), presets_new_button, FALSE, FALSE, 0);
+
+  presets_list_scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_ref (presets_list_scrolledwindow);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_list_scrolledwindow", presets_list_scrolledwindow,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_list_scrolledwindow);
+  gtk_box_pack_start (GTK_BOX (config_presets_page), presets_list_scrolledwindow, TRUE, TRUE, 0);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (presets_list_scrolledwindow), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
+
+  presets_list_list = gtk_clist_new (3);
+  gtk_widget_ref (presets_list_list);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_list_list", presets_list_list,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_list_list);
+  gtk_container_add (GTK_CONTAINER (presets_list_scrolledwindow), presets_list_list);
+  gtk_clist_set_column_width (GTK_CLIST (presets_list_list), 0, 101);
+  gtk_clist_set_column_width (GTK_CLIST (presets_list_list), 1, 92);
+  gtk_clist_set_column_width (GTK_CLIST (presets_list_list), 2, 80);
+  gtk_clist_column_titles_show (GTK_CLIST (presets_list_list));
+
+  label6 = gtk_label_new ("Name");
+  gtk_widget_ref (label6);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "label6", label6,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (label6);
+  gtk_clist_set_column_widget (GTK_CLIST (presets_list_list), 0, label6);
+
+  label7 = gtk_label_new ("Output/Effects");
+  gtk_widget_ref (label7);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "label7", label7,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (label7);
+  gtk_clist_set_column_widget (GTK_CLIST (presets_list_list), 1, label7);
+
+  label8 = gtk_label_new ("XF");
+  gtk_widget_ref (label8);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "label8", label8,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (label8);
+  gtk_clist_set_column_widget (GTK_CLIST (presets_list_list), 2, label8);
+
+  presets_list_bbox = gtk_hbutton_box_new ();
+  gtk_widget_ref (presets_list_bbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_list_bbox", presets_list_bbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_list_bbox);
+  gtk_box_pack_start (GTK_BOX (config_presets_page), presets_list_bbox, FALSE, FALSE, 0);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (presets_list_bbox), GTK_BUTTONBOX_END);
+  gtk_button_box_set_spacing (GTK_BUTTON_BOX (presets_list_bbox), 5);
+
+  presets_load_button = gtk_button_new_with_label ("Load");
+  gtk_widget_ref (presets_load_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_load_button", presets_load_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_load_button);
+  gtk_container_add (GTK_CONTAINER (presets_list_bbox), presets_load_button);
+  GTK_WIDGET_SET_FLAGS (presets_load_button, GTK_CAN_DEFAULT);
+
+  presets_save_button = gtk_button_new_with_label ("Save");
+  gtk_widget_ref (presets_save_button);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "presets_save_button", presets_save_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (presets_save_button);
+  gtk_container_add (GTK_CONTAINER (presets_list_bbox), presets_save_button);
+  GTK_WIDGET_SET_FLAGS (presets_save_button, GTK_CAN_DEFAULT);
+
+  config_presets_label = gtk_label_new ("Presets");
+  gtk_widget_ref (config_presets_label);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_presets_label", config_presets_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_presets_label);
+  gtk_notebook_set_tab_label (GTK_NOTEBOOK (config_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (config_notebook), 5), config_presets_label);
+
+  config_bbox = gtk_hbutton_box_new ();
+  gtk_widget_ref (config_bbox);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_bbox", config_bbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_bbox);
+  gtk_box_pack_start (GTK_BOX (config_vbox), config_bbox, FALSE, TRUE, 0);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (config_bbox), GTK_BUTTONBOX_END);
+  gtk_button_box_set_spacing (GTK_BUTTON_BOX (config_bbox), 5);
+  gtk_button_box_set_child_ipadding (GTK_BUTTON_BOX (config_bbox), 0, 0);
+
+  config_ok = gtk_button_new_with_label ("OK");
+  gtk_widget_ref (config_ok);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_ok", config_ok,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_ok);
+  gtk_container_add (GTK_CONTAINER (config_bbox), config_ok);
+  GTK_WIDGET_SET_FLAGS (config_ok, GTK_CAN_DEFAULT);
+
+  config_cancel = gtk_button_new_with_label ("Cancel");
+  gtk_widget_ref (config_cancel);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_cancel", config_cancel,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_cancel);
+  gtk_container_add (GTK_CONTAINER (config_bbox), config_cancel);
+  GTK_WIDGET_SET_FLAGS (config_cancel, GTK_CAN_DEFAULT);
+
+  config_apply = gtk_button_new_with_label ("Apply");
+  gtk_widget_ref (config_apply);
+  gtk_object_set_data_full (GTK_OBJECT (config_win), "config_apply", config_apply,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (config_apply);
+  gtk_container_add (GTK_CONTAINER (config_bbox), config_apply);
+  GTK_WIDGET_SET_FLAGS (config_apply, GTK_CAN_DEFAULT);
+
+  gtk_signal_connect (GTK_OBJECT (output_oss_radio), "toggled",
+                      GTK_SIGNAL_FUNC (on_output_oss_radio_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (output_plugin_radio), "toggled",
+                      GTK_SIGNAL_FUNC (on_output_plugin_radio_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (output_none_radio), "toggled",
+                      GTK_SIGNAL_FUNC (on_output_none_radio_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (oss_adevice_alt_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_config_adevice_alt_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (oss_mdevice_alt_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_config_mdevice_alt_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (osshwb_maxbuf_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_osshwb_maxbuf_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (op_configure_button), "clicked",
+                      GTK_SIGNAL_FUNC (on_output_plugin_configure_button_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (op_about_button), "clicked",
+                      GTK_SIGNAL_FUNC (on_output_plugin_about_button_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (op_throttle_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_op_throttle_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (op_maxblock_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_op_maxblock_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (op_maxblock_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_op_maxblock_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (op_forcereopen_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_op_forcereopen_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (ep_configure_button), "clicked",
+                      GTK_SIGNAL_FUNC (on_ep_configure_button_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (ep_about_button), "clicked",
+                      GTK_SIGNAL_FUNC (on_ep_about_button_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (ep_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_ep_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (volnorm_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_volnorm_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xf_buffer_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_xf_buffer_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xf_autobuf_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_xf_autobuf_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfp_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_xftfp_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfp_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_xftfp_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftffi_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_xftffi_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftffi_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_xftffi_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftffi_volume_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_xftffi_volume_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (pause_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_pause_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (simple_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_simple_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (fadeout_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadeout_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (fadeout_volume_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadeout_volume_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (fadeout_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_fadeout_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_custom_radiobutton), "toggled",
+                      GTK_SIGNAL_FUNC (on_xfofs_custom_radiobutton_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_custom_radiobutton), "clicked",
+                      GTK_SIGNAL_FUNC (on_xfofs_custom_radiobutton_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_custom_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_xfofs_custom_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_none_radiobutton), "clicked",
+                      GTK_SIGNAL_FUNC (on_xfofs_none_radiobutton_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_none_radiobutton), "toggled",
+                      GTK_SIGNAL_FUNC (on_xfofs_none_radiobutton_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_lockout_radiobutton), "toggled",
+                      GTK_SIGNAL_FUNC (on_xfofs_lockout_radiobutton_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_lockout_radiobutton), "clicked",
+                      GTK_SIGNAL_FUNC (on_xfofs_lockout_radiobutton_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_lockin_radiobutton), "toggled",
+                      GTK_SIGNAL_FUNC (on_xfofs_lockin_radiobutton_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xfofs_lockin_radiobutton), "clicked",
+                      GTK_SIGNAL_FUNC (on_xfofs_lockin_radiobutton_clicked),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (fadein_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadein_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (fadein_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_fadein_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (fadein_lock_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_fadein_lock_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (fadein_volume_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadein_volume_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfi_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadein_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfi_volume_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadein_volume_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfo_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadeout_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfo_volume_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadeout_volume_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfo_silence_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_xfofs_custom_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfoi_fadeout_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadeout_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfoi_silence_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_xfofs_custom_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (xftfoi_fadein_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_fadein_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (lgap_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_lgap_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (lgap_level_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_lgap_level_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (lgap_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_lgap_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (tgap_length_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_tgap_length_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (tgap_level_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_tgap_level_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (tgap_lock_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_tgap_lock_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (tgap_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_tgap_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (mixopt_enable_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_config_mixopt_enable_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (moth_songchange_spin), "changed",
+                      GTK_SIGNAL_FUNC (on_moth_songchange_spin_changed),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (moth_opmaxused_check), "toggled",
+                      GTK_SIGNAL_FUNC (on_moth_opmaxused_check_toggled),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (presets_list_list), "click_column",
+                      GTK_SIGNAL_FUNC (on_presets_list_click_column),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (config_ok), "clicked",
+                      GTK_SIGNAL_FUNC (on_config_ok_clicked),
+                      NULL);
+  gtk_signal_connect_object (GTK_OBJECT (config_cancel), "clicked",
+                             GTK_SIGNAL_FUNC (gtk_widget_destroy),
+                             GTK_OBJECT (config_win));
+  gtk_signal_connect (GTK_OBJECT (config_apply), "clicked",
+                      GTK_SIGNAL_FUNC (on_config_apply_clicked),
+                      NULL);
+
+  gtk_object_set_data (GTK_OBJECT (config_win), "tooltips", tooltips);
+
+  return config_win;
+}
+
+GtkWidget*
+create_monitor_win (void)
+{
+  GtkWidget *monitor_win;
+  GtkWidget *monitor_table;
+  GtkWidget *monitor_output_hbox;
+  GtkWidget *monitor_output_progress;
+  GtkWidget *monitor_output_label2;
+  GtkWidget *monitor_displaylabel_hbox;
+  GtkWidget *monitor_display_label;
+  GtkWidget *monitor_position_hbox;
+  GtkWidget *monpos_position_label;
+  GtkWidget *monpos_label1;
+  GtkWidget *monpos_total_label;
+  GtkWidget *monpos_label2;
+  GtkWidget *monpos_left_label;
+  GtkWidget *monpos_label3;
+  GtkWidget *monpos_written_time_label;
+  GtkWidget *monpos_output_time_separator_label;
+  GtkWidget *monpos_output_time_label;
+  GtkWidget *monitor_outputlabel_hbox;
+  GtkWidget *monitor_output_label;
+  GtkWidget *monitor_positionlabel_hbox;
+  GtkWidget *monitor_position_label;
+  GtkWidget *monitor_display_frame;
+  GtkWidget *monitor_display_drawingarea;
+
+  monitor_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  gtk_object_set_data (GTK_OBJECT (monitor_win), "monitor_win", monitor_win);
+  gtk_window_set_title (GTK_WINDOW (monitor_win), "Crossfade Buffer Monitor");
+  gtk_window_set_default_size (GTK_WINDOW (monitor_win), 320, -1);
+  gtk_window_set_wmclass (GTK_WINDOW (monitor_win), "XMMS-crossfade", "xmms");
+
+  monitor_table = gtk_table_new (3, 2, FALSE);
+  gtk_widget_ref (monitor_table);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_table", monitor_table,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_table);
+  gtk_container_add (GTK_CONTAINER (monitor_win), monitor_table);
+  gtk_container_set_border_width (GTK_CONTAINER (monitor_table), 5);
+  gtk_table_set_row_spacings (GTK_TABLE (monitor_table), 3);
+  gtk_table_set_col_spacings (GTK_TABLE (monitor_table), 5);
+
+  monitor_output_hbox = gtk_hbox_new (FALSE, 3);
+  gtk_widget_ref (monitor_output_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_output_hbox", monitor_output_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_output_hbox);
+  gtk_table_attach (GTK_TABLE (monitor_table), monitor_output_hbox, 1, 2, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  monitor_output_progress = gtk_progress_bar_new ();
+  gtk_widget_ref (monitor_output_progress);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_output_progress", monitor_output_progress,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_output_progress);
+  gtk_box_pack_start (GTK_BOX (monitor_output_hbox), monitor_output_progress, TRUE, TRUE, 0);
+  gtk_progress_configure (GTK_PROGRESS (monitor_output_progress), 0, 0, 0);
+  gtk_progress_set_show_text (GTK_PROGRESS (monitor_output_progress), TRUE);
+  gtk_progress_set_format_string (GTK_PROGRESS (monitor_output_progress), "%v");
+
+  monitor_output_label2 = gtk_label_new ("ms");
+  gtk_widget_ref (monitor_output_label2);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_output_label2", monitor_output_label2,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_output_label2);
+  gtk_box_pack_start (GTK_BOX (monitor_output_hbox), monitor_output_label2, FALSE, FALSE, 0);
+
+  monitor_displaylabel_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (monitor_displaylabel_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_displaylabel_hbox", monitor_displaylabel_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_displaylabel_hbox);
+  gtk_table_attach (GTK_TABLE (monitor_table), monitor_displaylabel_hbox, 0, 1, 0, 1,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  monitor_display_label = gtk_label_new ("Mixing Buffer:");
+  gtk_widget_ref (monitor_display_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_display_label", monitor_display_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_display_label);
+  gtk_box_pack_end (GTK_BOX (monitor_displaylabel_hbox), monitor_display_label, FALSE, FALSE, 0);
+
+  monitor_position_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (monitor_position_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_position_hbox", monitor_position_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_position_hbox);
+  gtk_table_attach (GTK_TABLE (monitor_table), monitor_position_hbox, 1, 2, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  monpos_position_label = gtk_label_new ("-:--.-");
+  gtk_widget_ref (monpos_position_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_position_label", monpos_position_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_position_label);
+  gtk_box_pack_start (GTK_BOX (monitor_position_hbox), monpos_position_label, FALSE, FALSE, 0);
+
+  monpos_label1 = gtk_label_new (" / ");
+  gtk_widget_ref (monpos_label1);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_label1", monpos_label1,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_label1);
+  gtk_box_pack_start (GTK_BOX (monitor_position_hbox), monpos_label1, FALSE, FALSE, 0);
+
+  monpos_total_label = gtk_label_new ("-:--");
+  gtk_widget_ref (monpos_total_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_total_label", monpos_total_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_total_label);
+  gtk_box_pack_start (GTK_BOX (monitor_position_hbox), monpos_total_label, FALSE, FALSE, 0);
+
+  monpos_label2 = gtk_label_new (" total, ");
+  gtk_widget_ref (monpos_label2);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_label2", monpos_label2,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_label2);
+  gtk_box_pack_start (GTK_BOX (monitor_position_hbox), monpos_label2, FALSE, FALSE, 0);
+
+  monpos_left_label = gtk_label_new ("-:--");
+  gtk_widget_ref (monpos_left_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_left_label", monpos_left_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_left_label);
+  gtk_box_pack_start (GTK_BOX (monitor_position_hbox), monpos_left_label, FALSE, FALSE, 0);
+
+  monpos_label3 = gtk_label_new (" left");
+  gtk_widget_ref (monpos_label3);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_label3", monpos_label3,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_label3);
+  gtk_box_pack_start (GTK_BOX (monitor_position_hbox), monpos_label3, FALSE, FALSE, 0);
+
+  monpos_written_time_label = gtk_label_new ("-:--:--.-");
+  gtk_widget_ref (monpos_written_time_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_written_time_label", monpos_written_time_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_written_time_label);
+  gtk_box_pack_end (GTK_BOX (monitor_position_hbox), monpos_written_time_label, FALSE, FALSE, 0);
+
+  monpos_output_time_separator_label = gtk_label_new (" / ");
+  gtk_widget_ref (monpos_output_time_separator_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_output_time_separator_label", monpos_output_time_separator_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_output_time_separator_label);
+  gtk_box_pack_end (GTK_BOX (monitor_position_hbox), monpos_output_time_separator_label, FALSE, FALSE, 0);
+
+  monpos_output_time_label = gtk_label_new ("-:--.---");
+  gtk_widget_ref (monpos_output_time_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monpos_output_time_label", monpos_output_time_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monpos_output_time_label);
+  gtk_box_pack_end (GTK_BOX (monitor_position_hbox), monpos_output_time_label, FALSE, FALSE, 0);
+
+  monitor_outputlabel_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (monitor_outputlabel_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_outputlabel_hbox", monitor_outputlabel_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_outputlabel_hbox);
+  gtk_table_attach (GTK_TABLE (monitor_table), monitor_outputlabel_hbox, 0, 1, 1, 2,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (GTK_FILL), 0, 0);
+
+  monitor_output_label = gtk_label_new ("Output Buffer:");
+  gtk_widget_ref (monitor_output_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_output_label", monitor_output_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_output_label);
+  gtk_box_pack_end (GTK_BOX (monitor_outputlabel_hbox), monitor_output_label, FALSE, FALSE, 0);
+
+  monitor_positionlabel_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_widget_ref (monitor_positionlabel_hbox);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_positionlabel_hbox", monitor_positionlabel_hbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_positionlabel_hbox);
+  gtk_table_attach (GTK_TABLE (monitor_table), monitor_positionlabel_hbox, 0, 1, 2, 3,
+                    (GtkAttachOptions) (GTK_FILL),
+                    (GtkAttachOptions) (0), 0, 0);
+
+  monitor_position_label = gtk_label_new ("Position:");
+  gtk_widget_ref (monitor_position_label);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_position_label", monitor_position_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_position_label);
+  gtk_box_pack_end (GTK_BOX (monitor_positionlabel_hbox), monitor_position_label, FALSE, FALSE, 0);
+
+  monitor_display_frame = gtk_frame_new (NULL);
+  gtk_widget_ref (monitor_display_frame);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_display_frame", monitor_display_frame,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_display_frame);
+  gtk_table_attach (GTK_TABLE (monitor_table), monitor_display_frame, 1, 2, 0, 1,
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+  gtk_frame_set_shadow_type (GTK_FRAME (monitor_display_frame), GTK_SHADOW_ETCHED_OUT);
+
+  monitor_display_drawingarea = gtk_drawing_area_new ();
+  gtk_widget_ref (monitor_display_drawingarea);
+  gtk_object_set_data_full (GTK_OBJECT (monitor_win), "monitor_display_drawingarea", monitor_display_drawingarea,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (monitor_display_drawingarea);
+  gtk_container_add (GTK_CONTAINER (monitor_display_frame), monitor_display_drawingarea);
+  gtk_widget_set_usize (monitor_display_drawingarea, -2, 20);
+
+  gtk_signal_connect (GTK_OBJECT (monitor_win), "delete_event",
+                      GTK_SIGNAL_FUNC (on_monitor_win_delete_event),
+                      NULL);
+  gtk_signal_connect (GTK_OBJECT (monitor_display_drawingarea), "expose_event",
+                      GTK_SIGNAL_FUNC (on_monitor_display_drawingarea_expose_event),
+                      NULL);
+
+  return monitor_win;
+}
+
+GtkWidget*
+create_about_win (void)
+{
+  GtkWidget *about_win;
+  GtkWidget *about_vbox;
+  GtkWidget *about_label;
+  GtkWidget *about_actionarea;
+  GtkWidget *about_ok;
+
+  about_win = gtk_dialog_new ();
+  gtk_object_set_data (GTK_OBJECT (about_win), "about_win", about_win);
+  gtk_window_set_title (GTK_WINDOW (about_win), "About XMMS Crossfade Plugin");
+  gtk_window_set_policy (GTK_WINDOW (about_win), FALSE, FALSE, FALSE);
+
+  about_vbox = GTK_DIALOG (about_win)->vbox;
+  gtk_object_set_data (GTK_OBJECT (about_win), "about_vbox", about_vbox);
+  gtk_widget_show (about_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (about_vbox), 5);
+
+  about_label = gtk_label_new ("dummy");
+  gtk_widget_ref (about_label);
+  gtk_object_set_data_full (GTK_OBJECT (about_win), "about_label", about_label,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (about_label);
+  gtk_box_pack_start (GTK_BOX (about_vbox), about_label, FALSE, FALSE, 0);
+
+  about_actionarea = GTK_DIALOG (about_win)->action_area;
+  gtk_object_set_data (GTK_OBJECT (about_win), "about_actionarea", about_actionarea);
+  gtk_widget_show (about_actionarea);
+  gtk_container_set_border_width (GTK_CONTAINER (about_actionarea), 10);
+
+  about_ok = gtk_button_new_with_label ("OK");
+  gtk_widget_ref (about_ok);
+  gtk_object_set_data_full (GTK_OBJECT (about_win), "about_ok", about_ok,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (about_ok);
+  gtk_box_pack_start (GTK_BOX (about_actionarea), about_ok, FALSE, TRUE, 0);
+
+  gtk_signal_connect_object (GTK_OBJECT (about_ok), "clicked",
+                             GTK_SIGNAL_FUNC (gtk_widget_destroy),
+                             GTK_OBJECT (about_win));
+
+  return about_win;
+}
+
+GtkWidget*
+create_help_win (void)
+{
+  GtkWidget *help_win;
+  GtkWidget *help_vbox;
+  GtkWidget *help_scrolledwindow;
+  GtkWidget *help_text;
+  GtkWidget *help_buttonbox;
+  GtkWidget *help_close_button;
+
+  help_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  gtk_object_set_data (GTK_OBJECT (help_win), "help_win", help_win);
+  gtk_window_set_title (GTK_WINDOW (help_win), "Help");
+
+  help_vbox = gtk_vbox_new (FALSE, 0);
+  gtk_widget_ref (help_vbox);
+  gtk_object_set_data_full (GTK_OBJECT (help_win), "help_vbox", help_vbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (help_vbox);
+  gtk_container_add (GTK_CONTAINER (help_win), help_vbox);
+  gtk_container_set_border_width (GTK_CONTAINER (help_vbox), 5);
+
+  help_scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_ref (help_scrolledwindow);
+  gtk_object_set_data_full (GTK_OBJECT (help_win), "help_scrolledwindow", help_scrolledwindow,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (help_scrolledwindow);
+  gtk_box_pack_start (GTK_BOX (help_vbox), help_scrolledwindow, TRUE, TRUE, 0);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (help_scrolledwindow), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
+
+  help_text = gtk_text_new (NULL, NULL);
+  gtk_widget_ref (help_text);
+  gtk_object_set_data_full (GTK_OBJECT (help_win), "help_text", help_text,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (help_text);
+  gtk_container_add (GTK_CONTAINER (help_scrolledwindow), help_text);
+  gtk_text_insert (GTK_TEXT (help_text), NULL, NULL, NULL,
+                   "<dummy>\n", -1);
+
+  help_buttonbox = gtk_hbutton_box_new ();
+  gtk_widget_ref (help_buttonbox);
+  gtk_object_set_data_full (GTK_OBJECT (help_win), "help_buttonbox", help_buttonbox,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (help_buttonbox);
+  gtk_box_pack_start (GTK_BOX (help_vbox), help_buttonbox, FALSE, FALSE, 0);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (help_buttonbox), GTK_BUTTONBOX_END);
+
+  help_close_button = gtk_button_new_with_label ("Close");
+  gtk_widget_ref (help_close_button);
+  gtk_object_set_data_full (GTK_OBJECT (help_win), "help_close_button", help_close_button,
+                            (GtkDestroyNotify) gtk_widget_unref);
+  gtk_widget_show (help_close_button);
+  gtk_container_add (GTK_CONTAINER (help_buttonbox), help_close_button);
+  GTK_WIDGET_SET_FLAGS (help_close_button, GTK_CAN_DEFAULT);
+
+  gtk_signal_connect (GTK_OBJECT (help_close_button), "clicked",
+                      GTK_SIGNAL_FUNC (on_help_close_button_clicked),
+                      NULL);
+
+  return help_win;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/interface.glade	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,5518 @@
+<?xml version="1.0"?>
+<GTK-Interface>
+
+<project>
+  <name>Crossfade_config</name>
+  <program_name>crossfade_config</program_name>
+  <directory></directory>
+  <source_directory></source_directory>
+  <pixmaps_directory></pixmaps_directory>
+  <language>C</language>
+  <gnome_support>False</gnome_support>
+  <gettext_support>False</gettext_support>
+  <output_main_file>False</output_main_file>
+  <output_build_files>False</output_build_files>
+</project>
+
+<widget>
+  <class>GtkWindow</class>
+  <name>config_win</name>
+  <title>Crossfade Configuration</title>
+  <type>GTK_WINDOW_TOPLEVEL</type>
+  <position>GTK_WIN_POS_NONE</position>
+  <modal>False</modal>
+  <allow_shrink>False</allow_shrink>
+  <allow_grow>True</allow_grow>
+  <auto_shrink>False</auto_shrink>
+
+  <widget>
+    <class>GtkVBox</class>
+    <name>config_vbox</name>
+    <border_width>10</border_width>
+    <homogeneous>False</homogeneous>
+    <spacing>10</spacing>
+
+    <widget>
+      <class>GtkNotebook</class>
+      <name>config_notebook</name>
+      <can_focus>True</can_focus>
+      <show_tabs>True</show_tabs>
+      <show_border>True</show_border>
+      <tab_pos>GTK_POS_TOP</tab_pos>
+      <scrollable>False</scrollable>
+      <tab_hborder>2</tab_hborder>
+      <tab_vborder>2</tab_vborder>
+      <popup_enable>False</popup_enable>
+      <child>
+	<padding>0</padding>
+	<expand>True</expand>
+	<fill>True</fill>
+      </child>
+
+      <widget>
+	<class>GtkVBox</class>
+	<name>config_output_page</name>
+	<border_width>5</border_width>
+	<homogeneous>False</homogeneous>
+	<spacing>5</spacing>
+
+	<widget>
+	  <class>GtkHBox</class>
+	  <name>output_options_hbox</name>
+	  <homogeneous>False</homogeneous>
+	  <spacing>6</spacing>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>True</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkFrame</class>
+	    <name>output_method_frame</name>
+	    <label>Output method</label>
+	    <label_xalign>0</label_xalign>
+	    <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	    <child>
+	      <padding>0</padding>
+	      <expand>True</expand>
+	      <fill>True</fill>
+	    </child>
+
+	    <widget>
+	      <class>GtkVBox</class>
+	      <name>output_method_vbox</name>
+	      <border_width>5</border_width>
+	      <homogeneous>False</homogeneous>
+	      <spacing>2</spacing>
+
+	      <widget>
+		<class>GtkRadioButton</class>
+		<name>output_oss_radio</name>
+		<tooltip>Use XMMS-crossfade's builtin OSS driver for output.</tooltip>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>toggled</name>
+		  <handler>on_output_oss_radio_toggled</handler>
+		  <last_modification_time>Tue, 04 Jul 2000 17:09:06 GMT</last_modification_time>
+		</signal>
+		<label>Builtin OSS driver</label>
+		<active>False</active>
+		<draw_indicator>True</draw_indicator>
+		<group>output_method_group</group>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkRadioButton</class>
+		<name>output_plugin_radio</name>
+		<tooltip>Use an existing plugin for output.</tooltip>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>toggled</name>
+		  <handler>on_output_plugin_radio_toggled</handler>
+		  <last_modification_time>Tue, 04 Jul 2000 17:09:11 GMT</last_modification_time>
+		</signal>
+		<label>Output plugin</label>
+		<active>False</active>
+		<draw_indicator>True</draw_indicator>
+		<group>output_method_group</group>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkRadioButton</class>
+		<name>output_none_radio</name>
+		<visible>False</visible>
+		<sensitive>False</sensitive>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>toggled</name>
+		  <handler>on_output_none_radio_toggled</handler>
+		  <last_modification_time>Tue, 04 Jul 2000 17:09:15 GMT</last_modification_time>
+		</signal>
+		<label>None [not implemented]</label>
+		<active>False</active>
+		<draw_indicator>True</draw_indicator>
+		<group>output_method_group</group>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkFrame</class>
+	    <name>output_resampling_frame</name>
+	    <label>Resampling</label>
+	    <label_xalign>0</label_xalign>
+	    <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	    <child>
+	      <padding>0</padding>
+	      <expand>False</expand>
+	      <fill>True</fill>
+	    </child>
+
+	    <widget>
+	      <class>GtkTable</class>
+	      <name>output_resampling_table</name>
+	      <border_width>5</border_width>
+	      <rows>2</rows>
+	      <columns>2</columns>
+	      <homogeneous>False</homogeneous>
+	      <row_spacing>2</row_spacing>
+	      <column_spacing>2</column_spacing>
+
+	      <widget>
+		<class>GtkOptionMenu</class>
+		<name>resampling_rate_optionmenu</name>
+		<tooltip>Set the sample rate for playback. Internally, XMMS-crossfade will resample all audio to this sample rate before playback.
+Default: 44100 Hz</tooltip>
+		<can_focus>True</can_focus>
+		<items></items>
+		<initial_choice>0</initial_choice>
+		<child>
+		  <left_attach>1</left_attach>
+		  <right_attach>2</right_attach>
+		  <top_attach>0</top_attach>
+		  <bottom_attach>1</bottom_attach>
+		  <xpad>0</xpad>
+		  <ypad>0</ypad>
+		  <xexpand>False</xexpand>
+		  <yexpand>False</yexpand>
+		  <xshrink>False</xshrink>
+		  <yshrink>False</yshrink>
+		  <xfill>True</xfill>
+		  <yfill>False</yfill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkOptionMenu</class>
+		<name>resampling_quality_optionmenu</name>
+		<tooltip>Set the resampling quality. Note that higher quality also means higher CPU usage.</tooltip>
+		<can_focus>True</can_focus>
+		<items></items>
+		<initial_choice>0</initial_choice>
+		<child>
+		  <left_attach>1</left_attach>
+		  <right_attach>2</right_attach>
+		  <top_attach>1</top_attach>
+		  <bottom_attach>2</bottom_attach>
+		  <xpad>0</xpad>
+		  <ypad>0</ypad>
+		  <xexpand>False</xexpand>
+		  <yexpand>False</yexpand>
+		  <xshrink>False</xshrink>
+		  <yshrink>False</yshrink>
+		  <xfill>True</xfill>
+		  <yfill>False</yfill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkHBox</class>
+		<name>resampling_rate_hbox</name>
+		<homogeneous>False</homogeneous>
+		<spacing>0</spacing>
+		<child>
+		  <left_attach>0</left_attach>
+		  <right_attach>1</right_attach>
+		  <top_attach>0</top_attach>
+		  <bottom_attach>1</bottom_attach>
+		  <xpad>0</xpad>
+		  <ypad>0</ypad>
+		  <xexpand>False</xexpand>
+		  <yexpand>False</yexpand>
+		  <xshrink>False</xshrink>
+		  <yshrink>False</yshrink>
+		  <xfill>True</xfill>
+		  <yfill>True</yfill>
+		</child>
+
+		<widget>
+		  <class>GtkLabel</class>
+		  <name>resampling_rate_label</name>
+		  <label>Rate:</label>
+		  <justify>GTK_JUSTIFY_CENTER</justify>
+		  <wrap>False</wrap>
+		  <xalign>0.5</xalign>
+		  <yalign>0.5</yalign>
+		  <xpad>0</xpad>
+		  <ypad>0</ypad>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		    <pack>GTK_PACK_END</pack>
+		  </child>
+		</widget>
+	      </widget>
+
+	      <widget>
+		<class>GtkHBox</class>
+		<name>resampling_quality_hbox</name>
+		<homogeneous>False</homogeneous>
+		<spacing>0</spacing>
+		<child>
+		  <left_attach>0</left_attach>
+		  <right_attach>1</right_attach>
+		  <top_attach>1</top_attach>
+		  <bottom_attach>2</bottom_attach>
+		  <xpad>0</xpad>
+		  <ypad>0</ypad>
+		  <xexpand>False</xexpand>
+		  <yexpand>False</yexpand>
+		  <xshrink>False</xshrink>
+		  <yshrink>False</yshrink>
+		  <xfill>True</xfill>
+		  <yfill>True</yfill>
+		</child>
+
+		<widget>
+		  <class>GtkLabel</class>
+		  <name>resampling_quality_label</name>
+		  <label>Quality:</label>
+		  <justify>GTK_JUSTIFY_CENTER</justify>
+		  <wrap>False</wrap>
+		  <xalign>0.5</xalign>
+		  <yalign>0.5</yalign>
+		  <xpad>0</xpad>
+		  <ypad>0</ypad>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		    <pack>GTK_PACK_END</pack>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkNotebook</class>
+	  <name>output_notebook</name>
+	  <show_tabs>False</show_tabs>
+	  <show_border>False</show_border>
+	  <tab_pos>GTK_POS_TOP</tab_pos>
+	  <scrollable>False</scrollable>
+	  <tab_hborder>2</tab_hborder>
+	  <tab_vborder>2</tab_vborder>
+	  <popup_enable>False</popup_enable>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>True</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>output_oss_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkNotebook</class>
+	      <name>output_oss_notebook</name>
+	      <can_focus>True</can_focus>
+	      <show_tabs>True</show_tabs>
+	      <show_border>True</show_border>
+	      <tab_pos>GTK_POS_TOP</tab_pos>
+	      <scrollable>False</scrollable>
+	      <tab_hborder>2</tab_hborder>
+	      <tab_vborder>2</tab_vborder>
+	      <popup_enable>False</popup_enable>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkVBox</class>
+		<name>oss_device_page</name>
+		<border_width>5</border_width>
+		<homogeneous>False</homogeneous>
+		<spacing>5</spacing>
+
+		<widget>
+		  <class>GtkFrame</class>
+		  <name>oss_adevice_frame</name>
+		  <label>Audio device</label>
+		  <label_xalign>0</label_xalign>
+		  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		  </child>
+
+		  <widget>
+		    <class>GtkVBox</class>
+		    <name>oss_adevice_vbox</name>
+		    <border_width>5</border_width>
+		    <homogeneous>False</homogeneous>
+		    <spacing>2</spacing>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>oss_adevice_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>0</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>True</expand>
+			<fill>True</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkOptionMenu</class>
+			<name>oss_adevice_optionmenu</name>
+			<can_focus>True</can_focus>
+			<items>dummy
+</items>
+			<initial_choice>0</initial_choice>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>oss_adevice_alt_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>0</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>True</expand>
+			<fill>True</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkCheckButton</class>
+			<name>oss_adevice_alt_check</name>
+			<can_focus>True</can_focus>
+			<signal>
+			  <name>toggled</name>
+			  <handler>on_config_adevice_alt_check_toggled</handler>
+			  <last_modification_time>Thu, 15 Jun 2000 13:10:13 GMT</last_modification_time>
+			</signal>
+			<label>Use alternate device:</label>
+			<active>False</active>
+			<draw_indicator>True</draw_indicator>
+			<child>
+			  <padding>0</padding>
+			  <expand>False</expand>
+			  <fill>False</fill>
+			</child>
+		      </widget>
+
+		      <widget>
+			<class>GtkEntry</class>
+			<name>oss_adevice_alt_entry</name>
+			<can_focus>True</can_focus>
+			<editable>True</editable>
+			<text_visible>True</text_visible>
+			<text_max_length>0</text_max_length>
+			<text></text>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkFrame</class>
+		  <name>oss_mdevice_frame</name>
+		  <label>Mixer device</label>
+		  <label_xalign>0</label_xalign>
+		  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		  </child>
+
+		  <widget>
+		    <class>GtkVBox</class>
+		    <name>oss_mdevice_vbox</name>
+		    <border_width>5</border_width>
+		    <homogeneous>False</homogeneous>
+		    <spacing>2</spacing>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>oss_mdevice_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>0</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>True</expand>
+			<fill>True</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkOptionMenu</class>
+			<name>oss_mdevice_optionmenu</name>
+			<can_focus>True</can_focus>
+			<items>dummy
+</items>
+			<initial_choice>0</initial_choice>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>oss_mdevice_alt_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>0</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>False</expand>
+			<fill>False</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkCheckButton</class>
+			<name>oss_mdevice_alt_check</name>
+			<can_focus>True</can_focus>
+			<signal>
+			  <name>toggled</name>
+			  <handler>on_config_mdevice_alt_check_toggled</handler>
+			  <last_modification_time>Fri, 25 Aug 2000 11:17:49 GMT</last_modification_time>
+			</signal>
+			<label>Use alternate device:</label>
+			<active>False</active>
+			<draw_indicator>True</draw_indicator>
+			<child>
+			  <padding>0</padding>
+			  <expand>False</expand>
+			  <fill>False</fill>
+			</child>
+		      </widget>
+
+		      <widget>
+			<class>GtkEntry</class>
+			<name>oss_mdevice_alt_entry</name>
+			<can_focus>True</can_focus>
+			<editable>True</editable>
+			<text_visible>True</text_visible>
+			<text_max_length>0</text_max_length>
+			<text></text>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+		  </widget>
+		</widget>
+	      </widget>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<child_name>Notebook:tab</child_name>
+		<name>oss_device_label</name>
+		<label>Device</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+	      </widget>
+
+	      <widget>
+		<class>GtkVBox</class>
+		<name>oss_buffer_page</name>
+		<border_width>5</border_width>
+		<homogeneous>False</homogeneous>
+		<spacing>5</spacing>
+
+		<widget>
+		  <class>GtkFrame</class>
+		  <name>oss_buffer_frame</name>
+		  <label>Software buffer</label>
+		  <label_xalign>0</label_xalign>
+		  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		  </child>
+
+		  <widget>
+		    <class>GtkVBox</class>
+		    <name>oss_buffer_vbox</name>
+		    <border_width>5</border_width>
+		    <homogeneous>False</homogeneous>
+		    <spacing>2</spacing>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>ossbuf_buffer_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>5</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>False</expand>
+			<fill>False</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkLabel</class>
+			<name>ossbuf_buffer_label</name>
+			<label>Buffer size (ms):</label>
+			<justify>GTK_JUSTIFY_LEFT</justify>
+			<wrap>False</wrap>
+			<xalign>0.5</xalign>
+			<yalign>0.5</yalign>
+			<xpad>0</xpad>
+			<ypad>0</ypad>
+			<child>
+			  <padding>0</padding>
+			  <expand>False</expand>
+			  <fill>False</fill>
+			</child>
+		      </widget>
+
+		      <widget>
+			<class>GtkSpinButton</class>
+			<name>ossbuf_buffer_spin</name>
+			<can_focus>True</can_focus>
+			<climb_rate>0</climb_rate>
+			<digits>0</digits>
+			<numeric>True</numeric>
+			<update_policy>GTK_UPDATE_ALWAYS</update_policy>
+			<snap>False</snap>
+			<wrap>False</wrap>
+			<value>0</value>
+			<lower>0</lower>
+			<upper>60000</upper>
+			<step>10</step>
+			<page>100</page>
+			<page_size>10</page_size>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>ossbuf_preload_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>5</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>True</expand>
+			<fill>True</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkLabel</class>
+			<name>ossbuf_preload_label</name>
+			<label>Preload size (ms):</label>
+			<justify>GTK_JUSTIFY_LEFT</justify>
+			<wrap>False</wrap>
+			<xalign>0.5</xalign>
+			<yalign>0.5</yalign>
+			<xpad>0</xpad>
+			<ypad>0</ypad>
+			<child>
+			  <padding>0</padding>
+			  <expand>False</expand>
+			  <fill>False</fill>
+			</child>
+		      </widget>
+
+		      <widget>
+			<class>GtkSpinButton</class>
+			<name>ossbuf_preload_spin</name>
+			<can_focus>True</can_focus>
+			<climb_rate>0</climb_rate>
+			<digits>0</digits>
+			<numeric>True</numeric>
+			<update_policy>GTK_UPDATE_ALWAYS</update_policy>
+			<snap>False</snap>
+			<wrap>False</wrap>
+			<value>1500</value>
+			<lower>0</lower>
+			<upper>60000</upper>
+			<step>10</step>
+			<page>100</page>
+			<page_size>10</page_size>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkFrame</class>
+		  <name>oss_hwbuf_frame</name>
+		  <label>Hardware device buffer</label>
+		  <label_xalign>0</label_xalign>
+		  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+		  <child>
+		    <padding>0</padding>
+		    <expand>True</expand>
+		    <fill>True</fill>
+		  </child>
+
+		  <widget>
+		    <class>GtkVBox</class>
+		    <name>oss_hwbuf_vbox</name>
+		    <border_width>5</border_width>
+		    <homogeneous>False</homogeneous>
+		    <spacing>2</spacing>
+
+		    <widget>
+		      <class>GtkCheckButton</class>
+		      <name>osshwb_maxbuf_check</name>
+		      <can_focus>True</can_focus>
+		      <signal>
+			<name>toggled</name>
+			<handler>on_osshwb_maxbuf_check_toggled</handler>
+			<last_modification_time>Sat, 20 Oct 2001 11:43:18 GMT</last_modification_time>
+		      </signal>
+		      <label>Maximum device buffer size</label>
+		      <active>False</active>
+		      <draw_indicator>True</draw_indicator>
+		      <child>
+			<padding>0</padding>
+			<expand>False</expand>
+			<fill>False</fill>
+		      </child>
+		    </widget>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>osshwb_fragments_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>5</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>False</expand>
+			<fill>False</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkLabel</class>
+			<name>osshwb_fragments_label</name>
+			<label>Number of Fragments:</label>
+			<justify>GTK_JUSTIFY_LEFT</justify>
+			<wrap>False</wrap>
+			<xalign>0.5</xalign>
+			<yalign>0.5</yalign>
+			<xpad>0</xpad>
+			<ypad>0</ypad>
+			<child>
+			  <padding>0</padding>
+			  <expand>False</expand>
+			  <fill>False</fill>
+			</child>
+		      </widget>
+
+		      <widget>
+			<class>GtkSpinButton</class>
+			<name>osshwb_fragments_spin</name>
+			<can_focus>True</can_focus>
+			<climb_rate>0</climb_rate>
+			<digits>0</digits>
+			<numeric>True</numeric>
+			<update_policy>GTK_UPDATE_ALWAYS</update_policy>
+			<snap>False</snap>
+			<wrap>False</wrap>
+			<value>50</value>
+			<lower>2</lower>
+			<upper>65535</upper>
+			<step>1</step>
+			<page>10</page>
+			<page_size>10</page_size>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+
+		    <widget>
+		      <class>GtkHBox</class>
+		      <name>osshwb_fragsize_hbox</name>
+		      <homogeneous>False</homogeneous>
+		      <spacing>5</spacing>
+		      <child>
+			<padding>0</padding>
+			<expand>True</expand>
+			<fill>True</fill>
+		      </child>
+
+		      <widget>
+			<class>GtkLabel</class>
+			<name>osshwb_fragsize_label</name>
+			<label>Fragment size (2^x bytes):</label>
+			<justify>GTK_JUSTIFY_LEFT</justify>
+			<wrap>False</wrap>
+			<xalign>0.5</xalign>
+			<yalign>0.5</yalign>
+			<xpad>0</xpad>
+			<ypad>0</ypad>
+			<child>
+			  <padding>0</padding>
+			  <expand>False</expand>
+			  <fill>False</fill>
+			</child>
+		      </widget>
+
+		      <widget>
+			<class>GtkSpinButton</class>
+			<name>osshwb_fragsize_spin</name>
+			<can_focus>True</can_focus>
+			<climb_rate>0</climb_rate>
+			<digits>0</digits>
+			<numeric>True</numeric>
+			<update_policy>GTK_UPDATE_ALWAYS</update_policy>
+			<snap>False</snap>
+			<wrap>False</wrap>
+			<value>11</value>
+			<lower>4</lower>
+			<upper>16</upper>
+			<step>1</step>
+			<page>10</page>
+			<page_size>10</page_size>
+			<child>
+			  <padding>0</padding>
+			  <expand>True</expand>
+			  <fill>True</fill>
+			</child>
+		      </widget>
+		    </widget>
+		  </widget>
+		</widget>
+	      </widget>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<child_name>Notebook:tab</child_name>
+		<name>oss_buffer_label</name>
+		<label>Buffer</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+	      </widget>
+
+	      <widget>
+		<class>GtkVBox</class>
+		<name>oss_mixer_page</name>
+		<border_width>5</border_width>
+		<homogeneous>False</homogeneous>
+		<spacing>5</spacing>
+
+		<widget>
+		  <class>GtkFrame</class>
+		  <name>oss_mixer_frame</name>
+		  <label>Mixer options</label>
+		  <label_xalign>0</label_xalign>
+		  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		  </child>
+
+		  <widget>
+		    <class>GtkVBox</class>
+		    <name>oss_mixer_vbox</name>
+		    <border_width>5</border_width>
+		    <homogeneous>False</homogeneous>
+		    <spacing>2</spacing>
+
+		    <widget>
+		      <class>GtkCheckButton</class>
+		      <name>ossmixer_pcm_check</name>
+		      <can_focus>True</can_focus>
+		      <label>Volume controls Master not PCM</label>
+		      <active>False</active>
+		      <draw_indicator>True</draw_indicator>
+		      <child>
+			<padding>0</padding>
+			<expand>False</expand>
+			<fill>False</fill>
+		      </child>
+		    </widget>
+		  </widget>
+		</widget>
+	      </widget>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<child_name>Notebook:tab</child_name>
+		<name>oss_mixer_label</name>
+		<label>Mixer</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>Placeholder</class>
+	    <child_name>Notebook:tab</child_name>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>output_plugin_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>op_plugin_frame</name>
+	      <label>Output plugin</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>True</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkVBox</class>
+		<name>op_plugin_vbox</name>
+		<border_width>5</border_width>
+		<homogeneous>False</homogeneous>
+		<spacing>2</spacing>
+
+		<widget>
+		  <class>GtkOptionMenu</class>
+		  <name>op_plugin_optionmenu</name>
+		  <can_focus>True</can_focus>
+		  <items>dummy
+</items>
+		  <initial_choice>0</initial_choice>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkHButtonBox</class>
+		  <name>op_plugin_buttonbox</name>
+		  <layout_style>GTK_BUTTONBOX_START</layout_style>
+		  <spacing>5</spacing>
+		  <child_min_width>85</child_min_width>
+		  <child_min_height>27</child_min_height>
+		  <child_ipad_x>7</child_ipad_x>
+		  <child_ipad_y>0</child_ipad_y>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>True</fill>
+		  </child>
+
+		  <widget>
+		    <class>GtkButton</class>
+		    <name>op_configure_button</name>
+		    <can_default>True</can_default>
+		    <can_focus>True</can_focus>
+		    <signal>
+		      <name>clicked</name>
+		      <handler>on_output_plugin_configure_button_clicked</handler>
+		      <last_modification_time>Wed, 05 Jul 2000 00:05:26 GMT</last_modification_time>
+		    </signal>
+		    <label>Configure</label>
+		    <relief>GTK_RELIEF_NORMAL</relief>
+		  </widget>
+
+		  <widget>
+		    <class>GtkButton</class>
+		    <name>op_about_button</name>
+		    <can_default>True</can_default>
+		    <can_focus>True</can_focus>
+		    <signal>
+		      <name>clicked</name>
+		      <handler>on_output_plugin_about_button_clicked</handler>
+		      <last_modification_time>Wed, 05 Jul 2000 00:05:29 GMT</last_modification_time>
+		    </signal>
+		    <label>About</label>
+		    <relief>GTK_RELIEF_NORMAL</relief>
+		  </widget>
+		</widget>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>op_options_frame</name>
+	      <label>Plugin compatibility options</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>True</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkVBox</class>
+		<name>op_options_vbox</name>
+		<border_width>5</border_width>
+		<homogeneous>False</homogeneous>
+		<spacing>2</spacing>
+
+		<widget>
+		  <class>GtkCheckButton</class>
+		  <name>op_throttle_check</name>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_op_throttle_check_toggled</handler>
+		    <last_modification_time>Sun, 26 Nov 2000 19:32:01 GMT</last_modification_time>
+		  </signal>
+		  <label>Throttle Output</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>op_maxblock_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>5</spacing>
+		  <child>
+		    <padding>0</padding>
+		    <expand>True</expand>
+		    <fill>True</fill>
+		  </child>
+
+		  <widget>
+		    <class>GtkCheckButton</class>
+		    <name>op_maxblock_check</name>
+		    <can_focus>True</can_focus>
+		    <signal>
+		      <name>toggled</name>
+		      <handler>on_op_maxblock_check_toggled</handler>
+		      <last_modification_time>Sat, 26 Aug 2000 12:19:52 GMT</last_modification_time>
+		    </signal>
+		    <label>Max block size (bytes):</label>
+		    <active>False</active>
+		    <draw_indicator>True</draw_indicator>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+
+		  <widget>
+		    <class>GtkSpinButton</class>
+		    <name>op_maxblock_spin</name>
+		    <can_focus>True</can_focus>
+		    <signal>
+		      <name>changed</name>
+		      <handler>on_op_maxblock_spin_changed</handler>
+		      <last_modification_time>Sun, 26 Nov 2000 19:31:57 GMT</last_modification_time>
+		    </signal>
+		    <climb_rate>10</climb_rate>
+		    <digits>0</digits>
+		    <numeric>True</numeric>
+		    <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		    <snap>True</snap>
+		    <wrap>False</wrap>
+		    <value>1024</value>
+		    <lower>4</lower>
+		    <upper>1.04858e+06</upper>
+		    <step>4</step>
+		    <page>16</page>
+		    <page_size>10</page_size>
+		    <child>
+		      <padding>0</padding>
+		      <expand>True</expand>
+		      <fill>True</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkCheckButton</class>
+		  <name>op_forcereopen_check</name>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_op_forcereopen_check_toggled</handler>
+		    <last_modification_time>Sun, 26 Nov 2000 19:31:51 GMT</last_modification_time>
+		  </signal>
+		  <label>Force close/reopen on songchange</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <child>
+		    <padding>0</padding>
+		    <expand>False</expand>
+		    <fill>False</fill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>Placeholder</class>
+	    <child_name>Notebook:tab</child_name>
+	  </widget>
+
+	  <widget>
+	    <class>Placeholder</class>
+	  </widget>
+
+	  <widget>
+	    <class>Placeholder</class>
+	    <child_name>Notebook:tab</child_name>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkLabel</class>
+	  <name>output_help_label</name>
+	  <label>When modifying the Output Options or the Mixing buffer size, you need to stop/restart playback for the settings to take effect.</label>
+	  <justify>GTK_JUSTIFY_LEFT</justify>
+	  <wrap>True</wrap>
+	  <xalign>0.5</xalign>
+	  <yalign>0.5</yalign>
+	  <xpad>0</xpad>
+	  <ypad>0</ypad>
+	  <child>
+	    <padding>0</padding>
+	    <expand>True</expand>
+	    <fill>True</fill>
+	    <pack>GTK_PACK_END</pack>
+	  </child>
+	</widget>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<child_name>Notebook:tab</child_name>
+	<name>config_devices_label</name>
+	<label>Output</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+      </widget>
+
+      <widget>
+	<class>GtkVBox</class>
+	<name>config_effects_page</name>
+	<border_width>5</border_width>
+	<homogeneous>False</homogeneous>
+	<spacing>5</spacing>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <name>ep_plugin_frame</name>
+	  <label>Pre-mixing effect plugin</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>True</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>ep_plugin_vbox</name>
+	    <border_width>5</border_width>
+	    <homogeneous>False</homogeneous>
+	    <spacing>2</spacing>
+
+	    <widget>
+	      <class>GtkOptionMenu</class>
+	      <name>ep_plugin_optionmenu</name>
+	      <tooltip>Select an effect plugin. Take care not to use the same plugin as selected in XMMS' configuration dialog.</tooltip>
+	      <can_focus>True</can_focus>
+	      <items>dummy
+</items>
+	      <initial_choice>0</initial_choice>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHButtonBox</class>
+	      <name>ep_plugin_buttonbox</name>
+	      <layout_style>GTK_BUTTONBOX_START</layout_style>
+	      <spacing>5</spacing>
+	      <child_min_width>85</child_min_width>
+	      <child_min_height>27</child_min_height>
+	      <child_ipad_x>7</child_ipad_x>
+	      <child_ipad_y>0</child_ipad_y>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>True</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkButton</class>
+		<name>ep_configure_button</name>
+		<tooltip>Open the configuration dialog of the plugin selected above.</tooltip>
+		<can_default>True</can_default>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>clicked</name>
+		  <handler>on_ep_configure_button_clicked</handler>
+		  <last_modification_time>Fri, 16 Mar 2001 22:09:17 GMT</last_modification_time>
+		</signal>
+		<label>Configure</label>
+		<relief>GTK_RELIEF_NORMAL</relief>
+	      </widget>
+
+	      <widget>
+		<class>GtkButton</class>
+		<name>ep_about_button</name>
+		<tooltip>Open the about dialog of the plugin selected above.</tooltip>
+		<can_default>True</can_default>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>clicked</name>
+		  <handler>on_ep_about_button_clicked</handler>
+		  <last_modification_time>Fri, 16 Mar 2001 22:09:06 GMT</last_modification_time>
+		</signal>
+		<label>About</label>
+		<relief>GTK_RELIEF_NORMAL</relief>
+	      </widget>
+
+	      <widget>
+		<class>GtkCheckButton</class>
+		<name>ep_enable_check</name>
+		<tooltip>Enable the selected plugin. Note that after pressing 'Apply' it may take a while until you can hear the effect, since it is applied before the audio data goes into the buffer.</tooltip>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>toggled</name>
+		  <handler>on_ep_enable_check_toggled</handler>
+		  <last_modification_time>Mon, 10 Nov 2003 06:20:19 GMT</last_modification_time>
+		</signal>
+		<label>Use plugin</label>
+		<active>False</active>
+		<draw_indicator>True</draw_indicator>
+	      </widget>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <name>effects_volnorm_frame</name>
+	  <visible>False</visible>
+	  <label>Volume normalizer</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkTable</class>
+	    <name>effects_volnorm_table</name>
+	    <border_width>5</border_width>
+	    <rows>4</rows>
+	    <columns>2</columns>
+	    <homogeneous>False</homogeneous>
+	    <row_spacing>2</row_spacing>
+	    <column_spacing>5</column_spacing>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>volnorm_quantaudio_check</name>
+	      <can_focus>True</can_focus>
+	      <label>Read Quantaudio comment field</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>2</top_attach>
+		<bottom_attach>3</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkSpinButton</class>
+	      <name>volnorm_target_spin</name>
+	      <tooltip>Set the maximum length for gaps at the end of a stream.
+Default: 500</tooltip>
+	      <can_focus>True</can_focus>
+	      <climb_rate>0</climb_rate>
+	      <digits>0</digits>
+	      <numeric>True</numeric>
+	      <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+	      <snap>False</snap>
+	      <wrap>False</wrap>
+	      <value>8000</value>
+	      <lower>0</lower>
+	      <upper>32768</upper>
+	      <step>100</step>
+	      <page>1000</page>
+	      <page_size>10</page_size>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>3</top_attach>
+		<bottom_attach>4</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>True</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>volnorm_target_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>0</spacing>
+	      <child>
+		<left_attach>0</left_attach>
+		<right_attach>1</right_attach>
+		<top_attach>3</top_attach>
+		<bottom_attach>4</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>True</yfill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>volnorm_target_label</name>
+		<label>Target RMS:</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>volnorm_enable_check</name>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>toggled</name>
+		<handler>on_volnorm_enable_check_toggled</handler>
+		<last_modification_time>Wed, 17 Oct 2001 23:29:26 GMT</last_modification_time>
+	      </signal>
+	      <label>Enable</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>0</top_attach>
+		<bottom_attach>1</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>volnorm_rva2_check</name>
+	      <can_focus>True</can_focus>
+	      <label>Read ID3V2 RVA2 Tag</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>1</top_attach>
+		<bottom_attach>2</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkLabel</class>
+	  <name>effects_help_label</name>
+	  <label>You do not need to press 'Apply' after making changes to the effect plugin settings. It may take a while though until you can hear the change, since the plugin is applied before the mixing buffer.</label>
+	  <justify>GTK_JUSTIFY_LEFT</justify>
+	  <wrap>True</wrap>
+	  <xalign>0.5</xalign>
+	  <yalign>0.5</yalign>
+	  <xpad>0</xpad>
+	  <ypad>0</ypad>
+	  <child>
+	    <padding>0</padding>
+	    <expand>True</expand>
+	    <fill>True</fill>
+	  </child>
+	</widget>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<child_name>Notebook:tab</child_name>
+	<name>config_effects_label</name>
+	<label>Effects</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+      </widget>
+
+      <widget>
+	<class>GtkVBox</class>
+	<name>config_crossfader_page</name>
+	<border_width>5</border_width>
+	<homogeneous>False</homogeneous>
+	<spacing>2</spacing>
+
+	<widget>
+	  <class>GtkHBox</class>
+	  <name>xf_bufsize_hbox</name>
+	  <homogeneous>False</homogeneous>
+	  <spacing>5</spacing>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <name>xf_bufsize_label</name>
+	    <label>Mixing buffer size (ms):</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	    <child>
+	      <padding>0</padding>
+	      <expand>False</expand>
+	      <fill>False</fill>
+	    </child>
+	  </widget>
+
+	  <widget>
+	    <class>GtkSpinButton</class>
+	    <name>xf_buffer_spin</name>
+	    <tooltip>Specify the size of the mixing buffer. Mixing buffer space is required for pauses, fade-outs, offsetting (i.e. interleaving the end and beginning of two songs) and killing trailing gaps. Fade-ins and killing leading gaps are done on-the-fly and do not depend on mixing buffer space.
+Default: n/a - calculated automatically</tooltip>
+	    <can_focus>True</can_focus>
+	    <signal>
+	      <name>changed</name>
+	      <handler>on_xf_buffer_spin_changed</handler>
+	      <last_modification_time>Sun, 26 Nov 2000 21:51:06 GMT</last_modification_time>
+	    </signal>
+	    <climb_rate>0</climb_rate>
+	    <digits>0</digits>
+	    <numeric>True</numeric>
+	    <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+	    <snap>False</snap>
+	    <wrap>False</wrap>
+	    <value>8500</value>
+	    <lower>0</lower>
+	    <upper>60000</upper>
+	    <step>100</step>
+	    <page>1000</page>
+	    <page_size>10</page_size>
+	    <child>
+	      <padding>0</padding>
+	      <expand>True</expand>
+	      <fill>True</fill>
+	    </child>
+	  </widget>
+
+	  <widget>
+	    <class>GtkCheckButton</class>
+	    <name>xf_autobuf_check</name>
+	    <tooltip>Automatically calculate an optimal buffer size.
+Default: On</tooltip>
+	    <can_focus>True</can_focus>
+	    <signal>
+	      <name>toggled</name>
+	      <handler>on_xf_autobuf_check_toggled</handler>
+	      <last_modification_time>Fri, 24 Nov 2000 11:22:05 GMT</last_modification_time>
+	    </signal>
+	    <label>auto</label>
+	    <active>False</active>
+	    <draw_indicator>True</draw_indicator>
+	    <child>
+	      <padding>0</padding>
+	      <expand>False</expand>
+	      <fill>False</fill>
+	    </child>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkHBox</class>
+	  <name>xf_config_hbox</name>
+	  <homogeneous>False</homogeneous>
+	  <spacing>5</spacing>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <name>xf_config_label</name>
+	    <label>Set parameters for:</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	    <child>
+	      <padding>0</padding>
+	      <expand>False</expand>
+	      <fill>False</fill>
+	    </child>
+	  </widget>
+
+	  <widget>
+	    <class>GtkOptionMenu</class>
+	    <name>xf_config_optionmenu</name>
+	    <tooltip>Select the type of songchange you want to configure:
+* Start of playback: When starting playback by pressing PLAY
+* Automatic songchange: When reaching the end of a song and the playlist advances to the next song
+* Manual songchange: When manually selecting another song, for example by pressing NEXT/PREV
+* Manual stop: When pressing the STOP button
+* End of playlist: After the last song in the playlist has been played
+* Seeking: When seeking within the current song</tooltip>
+	    <can_focus>True</can_focus>
+	    <items>dummy
+</items>
+	    <initial_choice>0</initial_choice>
+	    <child>
+	      <padding>0</padding>
+	      <expand>True</expand>
+	      <fill>True</fill>
+	    </child>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkHBox</class>
+	  <name>xf_type_hbox</name>
+	  <homogeneous>False</homogeneous>
+	  <spacing>5</spacing>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <name>xf_type_label</name>
+	    <label>Crossfade/Transition type:</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	    <child>
+	      <padding>0</padding>
+	      <expand>False</expand>
+	      <fill>False</fill>
+	    </child>
+	  </widget>
+
+	  <widget>
+	    <class>GtkOptionMenu</class>
+	    <name>xf_type_optionmenu</name>
+	    <tooltip>Select the transition to be used for the songchange type selected above:
+* Fade-in: Fade-in at 'Start of playback'
+* Reopen output device: Force a close/open on the output plugin. This will most certainly re-introduce gaps and clicks, but might be usefull with some plugins.
+* Flush output device: Keeps the output plugin opened, but flushes its buffers. This will give you almost instant reaction when pressing NEXT/PREV.
+* None (gapless/off): Gapless mode. Keeps the device opened, but does not do any fading.
+* Simple crossfade: Does a simple crossfade between the previous and the next song.
+* Advanced crossfade: Allows you to configure the crossfade in more detail.
+* Fade-out: Fade-out at 'Manual stop' or 'End of playlist'.</tooltip>
+	    <can_focus>True</can_focus>
+	    <items>dummy
+</items>
+	    <initial_choice>0</initial_choice>
+	    <child>
+	      <padding>0</padding>
+	      <expand>True</expand>
+	      <fill>True</fill>
+	    </child>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkNotebook</class>
+	  <name>xf_type_notebook</name>
+	  <show_tabs>False</show_tabs>
+	  <show_border>False</show_border>
+	  <tab_pos>GTK_POS_TOP</tab_pos>
+	  <scrollable>False</scrollable>
+	  <tab_hborder>2</tab_hborder>
+	  <tab_vborder>2</tab_vborder>
+	  <popup_enable>False</popup_enable>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>Placeholder</class>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_reopen_label</name>
+	    <label>Reopen</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>xft_flush_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xftf_pause_frame</name>
+	      <label>Pause</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xftf_pause_table</name>
+		<border_width>5</border_width>
+		<rows>2</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkLabel</class>
+		  <name>xftfp_length_label</name>
+		  <label>Length (ms):</label>
+		  <justify>GTK_JUSTIFY_LEFT</justify>
+		  <wrap>False</wrap>
+		  <xalign>0.5</xalign>
+		  <yalign>0.5</yalign>
+		  <xpad>0</xpad>
+		  <ypad>0</ypad>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfp_length_spin</name>
+		  <tooltip>Specify the length of the silence to be inserted between the tracks.
+Default: 2000</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_xftfp_length_spin_changed</handler>
+		    <last_modification_time>Wed, 17 Oct 2001 14:17:29 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>1000</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>100</step>
+		  <page>1000</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkCheckButton</class>
+		  <name>xftfp_enable_check</name>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_xftfp_enable_check_toggled</handler>
+		    <last_modification_time>Wed, 17 Oct 2001 14:12:28 GMT</last_modification_time>
+		  </signal>
+		  <label>Enable</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xftf_fadein_frame</name>
+	      <label>Fade in</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xftf_fadein_table</name>
+		<border_width>5</border_width>
+		<rows>3</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftffi_length_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftffi_length_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftffi_volume_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftffi_volume_label</name>
+		    <label>Start volume (%):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftffi_length_spin</name>
+		  <tooltip>Set the duration for the fadein of the next song.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_xftffi_length_spin_changed</handler>
+		    <last_modification_time>Thu, 18 Oct 2001 00:10:55 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>1000</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>100</step>
+		  <page>1000</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkCheckButton</class>
+		  <name>xftffi_enable_check</name>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_xftffi_enable_check_toggled</handler>
+		    <last_modification_time>Wed, 17 Oct 2001 14:12:35 GMT</last_modification_time>
+		  </signal>
+		  <label>Enable</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftffi_volume_spin</name>
+		  <tooltip>Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.
+Default: 0</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_xftffi_volume_spin_changed</handler>
+		    <last_modification_time>Thu, 18 Oct 2001 00:11:02 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>0</value>
+		  <lower>0</lower>
+		  <upper>100</upper>
+		  <step>1</step>
+		  <page>10</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_flush_label</name>
+	    <label>Flush</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>Placeholder</class>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_none_label</name>
+	    <label>None</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>xft_pause_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xf_pause_frame</name>
+	      <label>Pause</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xf_pause_table</name>
+		<border_width>5</border_width>
+		<rows>1</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>pause_length_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>pause_length_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>pause_length_spin</name>
+		  <tooltip>Specify the length of the silence to be inserted between the tracks.
+Default: 2000</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_pause_length_spin_changed</handler>
+		    <last_modification_time>Mon, 18 Sep 2000 13:23:22 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>1000</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>100</step>
+		  <page>1000</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_pause_label</name>
+	    <label>Pause</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>xft_simplexf_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xf_simple_frame</name>
+	      <label>Crossfade</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xf_simple_table</name>
+		<border_width>5</border_width>
+		<rows>1</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>simple_length_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>simple_length_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>simple_length_spin</name>
+		  <tooltip>Specify the length of the crosssfade.
+Default: depends on songchange type</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_simple_length_spin_changed</handler>
+		    <last_modification_time>Mon, 18 Sep 2000 13:23:48 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>1500</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>100</step>
+		  <page>1000</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_simplexf_label</name>
+	    <label>Simple XF</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>xft_advancedxf_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xf_fadeout_frame</name>
+	      <label>Fade out</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xf_fadeout_table</name>
+		<border_width>5</border_width>
+		<rows>3</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>fadeout_length_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>fadeout_length_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>fadeout_length_spin</name>
+		  <tooltip>Set the duration for the fadeout of the previous song.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadeout_length_spin_changed</handler>
+		    <last_modification_time>Mon, 28 Aug 2000 13:03:25 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>1000</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>100</step>
+		  <page>1000</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>fadeout_volume_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>fadeout_volume_label</name>
+		    <label>End volume (%):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>fadeout_volume_spin</name>
+		  <tooltip>Set the end volume. XMMS-crossfade will fade from 100% to this volume during the time specified above.
+Default: 0</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadeout_volume_spin_changed</handler>
+		    <last_modification_time>Mon, 28 Aug 2000 12:59:03 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>0</value>
+		  <lower>0</lower>
+		  <upper>100</upper>
+		  <step>1</step>
+		  <page>10</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>fadeout_options_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>5</spacing>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkCheckButton</class>
+		    <name>fadeout_enable_check</name>
+		    <can_focus>True</can_focus>
+		    <signal>
+		      <name>toggled</name>
+		      <handler>on_fadeout_enable_check_toggled</handler>
+		      <last_modification_time>Fri, 25 Aug 2000 11:19:21 GMT</last_modification_time>
+		    </signal>
+		    <label>Enable</label>
+		    <active>False</active>
+		    <draw_indicator>True</draw_indicator>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xf_offset_frame</name>
+	      <label>Offset</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xf_offset_table</name>
+		<border_width>5</border_width>
+		<rows>4</rows>
+		<columns>1</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xfofs_custom_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>5</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>3</top_attach>
+		    <bottom_attach>4</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkRadioButton</class>
+		    <name>xfofs_custom_radiobutton</name>
+		    <tooltip>Set a custom offset.</tooltip>
+		    <can_focus>True</can_focus>
+		    <signal>
+		      <name>toggled</name>
+		      <handler>on_xfofs_custom_radiobutton_toggled</handler>
+		      <last_modification_time>Fri, 25 Aug 2000 11:19:49 GMT</last_modification_time>
+		    </signal>
+		    <signal>
+		      <name>clicked</name>
+		      <handler>on_xfofs_custom_radiobutton_clicked</handler>
+		      <last_modification_time>Mon, 27 Nov 2000 15:25:09 GMT</last_modification_time>
+		    </signal>
+		    <label>Custom (ms):</label>
+		    <active>False</active>
+		    <draw_indicator>True</draw_indicator>
+		    <group>offset_group</group>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+
+		  <widget>
+		    <class>GtkSpinButton</class>
+		    <name>xfofs_custom_spin</name>
+		    <tooltip>Set how much the end of the previous and the beginning of the next song should overlap.
+* Negative values indicate that the next song should start before the previous has reached the end.
+* A value of 0 means that the songs are concatenated seamlessly.
+* Positive values will yield insert silence inbetween..</tooltip>
+		    <can_focus>True</can_focus>
+		    <signal>
+		      <name>changed</name>
+		      <handler>on_xfofs_custom_spin_changed</handler>
+		      <last_modification_time>Wed, 30 Aug 2000 11:26:39 GMT</last_modification_time>
+		    </signal>
+		    <climb_rate>0</climb_rate>
+		    <digits>0</digits>
+		    <numeric>True</numeric>
+		    <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		    <snap>False</snap>
+		    <wrap>False</wrap>
+		    <value>-2000</value>
+		    <lower>-60000</lower>
+		    <upper>60000</upper>
+		    <step>100</step>
+		    <page>1000</page>
+		    <page_size>10</page_size>
+		    <child>
+		      <padding>0</padding>
+		      <expand>True</expand>
+		      <fill>True</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkRadioButton</class>
+		  <name>xfofs_none_radiobutton</name>
+		  <tooltip>Don't overlap the two songs. The next song will start immediatelly after the previous has ended.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>clicked</name>
+		    <handler>on_xfofs_none_radiobutton_clicked</handler>
+		    <last_modification_time>Wed, 06 Sep 2000 16:21:04 GMT</last_modification_time>
+		  </signal>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_xfofs_none_radiobutton_toggled</handler>
+		    <last_modification_time>Wed, 06 Sep 2000 16:22:00 GMT</last_modification_time>
+		  </signal>
+		  <label>None (0 ms)</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <group>offset_group</group>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkRadioButton</class>
+		  <name>xfofs_lockout_radiobutton</name>
+		  <tooltip>Overlap by the fadeout duration specified above.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_xfofs_lockout_radiobutton_toggled</handler>
+		    <last_modification_time>Fri, 25 Aug 2000 11:19:41 GMT</last_modification_time>
+		  </signal>
+		  <signal>
+		    <name>clicked</name>
+		    <handler>on_xfofs_lockout_radiobutton_clicked</handler>
+		    <last_modification_time>Fri, 15 Sep 2000 21:39:27 GMT</last_modification_time>
+		  </signal>
+		  <label>Lock to fadeout length</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <group>offset_group</group>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkRadioButton</class>
+		  <name>xfofs_lockin_radiobutton</name>
+		  <tooltip>Overlap by the fadein duration specified below..</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_xfofs_lockin_radiobutton_toggled</handler>
+		    <last_modification_time>Fri, 25 Aug 2000 11:19:54 GMT</last_modification_time>
+		  </signal>
+		  <signal>
+		    <name>clicked</name>
+		    <handler>on_xfofs_lockin_radiobutton_clicked</handler>
+		    <last_modification_time>Mon, 27 Nov 2000 15:25:03 GMT</last_modification_time>
+		  </signal>
+		  <label>Lock to fadein length</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <group>offset_group</group>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xf_fadein_frame</name>
+	      <label>Fade in</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xf_fadein_table</name>
+		<border_width>5</border_width>
+		<rows>3</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>fadein_length_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>fadein_length_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>fadein_volume_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>fadein_volume_label</name>
+		    <label>Start volume (%):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>fadein_length_spin</name>
+		  <tooltip>Set the duration for the fadein of the next song.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadein_length_spin_changed</handler>
+		    <last_modification_time>Mon, 28 Aug 2000 13:05:34 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>1000</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>100</step>
+		  <page>1000</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkCheckButton</class>
+		  <name>fadein_enable_check</name>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_fadein_enable_check_toggled</handler>
+		    <last_modification_time>Fri, 25 Aug 2000 11:20:00 GMT</last_modification_time>
+		  </signal>
+		  <label> Enable</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkCheckButton</class>
+		  <name>fadein_lock_check</name>
+		  <tooltip>Use the same settings as fade-out.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>toggled</name>
+		    <handler>on_fadein_lock_check_toggled</handler>
+		    <last_modification_time>Fri, 25 Aug 2000 11:20:04 GMT</last_modification_time>
+		  </signal>
+		  <label>Lock to Fade-out</label>
+		  <active>False</active>
+		  <draw_indicator>True</draw_indicator>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>fadein_volume_spin</name>
+		  <tooltip>Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.
+Default: 0</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadein_volume_spin_changed</handler>
+		    <last_modification_time>Wed, 30 Aug 2000 11:26:23 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>0</value>
+		  <lower>0</lower>
+		  <upper>100</upper>
+		  <step>1</step>
+		  <page>10</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_advancedxf_label</name>
+	    <label>Advanced XF</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>xft_fadein_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>0</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xftfi_fadein_frame</name>
+	      <label>Fade in</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xftfi_fadein_table</name>
+		<border_width>5</border_width>
+		<rows>2</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfi_length_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfi_length_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfi_volume_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfi_volume_label</name>
+		    <label>Start volume (%):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfi_length_spin</name>
+		  <tooltip>Set the duration for the fadein when starting playback.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadein_length_spin_changed</handler>
+		    <last_modification_time>Sun, 04 Mar 2001 21:45:53 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>1000</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>10</step>
+		  <page>100</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfi_volume_spin</name>
+		  <tooltip>Set the start volume. XMMS-crossfade will fade from this volume to 100% during the time specified above.
+Default: 0</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadein_volume_spin_changed</handler>
+		    <last_modification_time>Sun, 04 Mar 2001 21:46:52 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>0</value>
+		  <lower>0</lower>
+		  <upper>100</upper>
+		  <step>1</step>
+		  <page>10</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_fadein_label</name>
+	    <label>Fade in</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>xft_fadeout_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xftfo_fadeout_frame</name>
+	      <label>Fade out</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xftfo_fadeout_table</name>
+		<border_width>5</border_width>
+		<rows>2</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfo_length_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfo_length_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfo_length_spin</name>
+		  <tooltip>Set the duration for the fadeout of the last song.</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadeout_length_spin_changed</handler>
+		    <last_modification_time>Sun, 04 Mar 2001 21:47:08 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>500</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>10</step>
+		  <page>100</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfo_volume_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfo_volume_label</name>
+		    <label>End volume (%):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfo_volume_spin</name>
+		  <tooltip>Set the end volume. XMMS-crossfade will fade from 100% to this volume during the time specified above.
+Default: 0</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadeout_volume_spin_changed</handler>
+		    <last_modification_time>Sun, 04 Mar 2001 21:47:21 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>0</value>
+		  <lower>0</lower>
+		  <upper>100</upper>
+		  <step>1</step>
+		  <page>10</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xftfo_silence_frame</name>
+	      <label>Additional silence</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xftfo_silence_table</name>
+		<border_width>5</border_width>
+		<rows>1</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfo_silence_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>True</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>True</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfo_silence_label</name>
+		    <label>Length (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfo_silence_spin</name>
+		  <tooltip>Set how much additional silence should be played after the end of the last song. This way, you can avoid the clicks some soundcards produce when being shut down during playback.
+Default: 500</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_xfofs_custom_spin_changed</handler>
+		    <last_modification_time>Wed, 30 Aug 2000 11:26:39 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>100</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>10</step>
+		  <page>100</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_fadeout_label</name>
+	    <label>Fade out</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>Placeholder</class>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_pause_none_label</name>
+	    <label>None</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>xft_pause_adv_page</name>
+	    <homogeneous>False</homogeneous>
+	    <spacing>5</spacing>
+
+	    <widget>
+	      <class>GtkFrame</class>
+	      <name>xft_fadeoutin_frame</name>
+	      <label>Fade out / Fade in</label>
+	      <label_xalign>0</label_xalign>
+	      <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkTable</class>
+		<name>xft_fadeoutin_table</name>
+		<border_width>5</border_width>
+		<rows>3</rows>
+		<columns>2</columns>
+		<homogeneous>False</homogeneous>
+		<row_spacing>2</row_spacing>
+		<column_spacing>5</column_spacing>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfoi_fadeout_spin</name>
+		  <tooltip>Set the duration for the fadeout when pausing.
+Default: 100
+</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadeout_length_spin_changed</handler>
+		    <last_modification_time>Wed, 12 Mar 2003 11:06:34 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>100</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>10</step>
+		  <page>100</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfoi_silence_spin</name>
+		  <tooltip>Set how much additional silence should be played after pausing. This way, you can avoid the clicks some soundcards produce when entering pause.
+Default: 100</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_xfofs_custom_spin_changed</handler>
+		    <last_modification_time>Wed, 12 Mar 2003 11:07:25 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>100</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>10</step>
+		  <page>100</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkSpinButton</class>
+		  <name>xftfoi_fadein_spin</name>
+		  <tooltip>Set the duration for the fadein when unpausing.
+Default: 100</tooltip>
+		  <can_focus>True</can_focus>
+		  <signal>
+		    <name>changed</name>
+		    <handler>on_fadein_length_spin_changed</handler>
+		    <last_modification_time>Wed, 12 Mar 2003 11:06:50 GMT</last_modification_time>
+		  </signal>
+		  <climb_rate>0</climb_rate>
+		  <digits>0</digits>
+		  <numeric>True</numeric>
+		  <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		  <snap>False</snap>
+		  <wrap>False</wrap>
+		  <value>100</value>
+		  <lower>0</lower>
+		  <upper>60000</upper>
+		  <step>10</step>
+		  <page>100</page>
+		  <page_size>10</page_size>
+		  <child>
+		    <left_attach>1</left_attach>
+		    <right_attach>2</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>True</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfoi_fadein_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>0</top_attach>
+		    <bottom_attach>1</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfoi_fadein_label</name>
+		    <label>Fade out (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfoi_silence_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>1</top_attach>
+		    <bottom_attach>2</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfoi_silence_label</name>
+		    <label>Silence (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+
+		<widget>
+		  <class>GtkHBox</class>
+		  <name>xftfoi_fadeout_hbox</name>
+		  <homogeneous>False</homogeneous>
+		  <spacing>0</spacing>
+		  <child>
+		    <left_attach>0</left_attach>
+		    <right_attach>1</right_attach>
+		    <top_attach>2</top_attach>
+		    <bottom_attach>3</bottom_attach>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <xexpand>False</xexpand>
+		    <yexpand>False</yexpand>
+		    <xshrink>False</xshrink>
+		    <yshrink>False</yshrink>
+		    <xfill>True</xfill>
+		    <yfill>False</yfill>
+		  </child>
+
+		  <widget>
+		    <class>GtkLabel</class>
+		    <name>xftfoi_fadeout_label</name>
+		    <label>Fade in (ms):</label>
+		    <justify>GTK_JUSTIFY_LEFT</justify>
+		    <wrap>False</wrap>
+		    <xalign>0.5</xalign>
+		    <yalign>0.5</yalign>
+		    <xpad>0</xpad>
+		    <ypad>0</ypad>
+		    <child>
+		      <padding>0</padding>
+		      <expand>False</expand>
+		      <fill>False</fill>
+		    </child>
+		  </widget>
+		</widget>
+	      </widget>
+	    </widget>
+	  </widget>
+
+	  <widget>
+	    <class>GtkLabel</class>
+	    <child_name>Notebook:tab</child_name>
+	    <name>xft_pause_adv_label</name>
+	    <label>Fade out / Fade in</label>
+	    <justify>GTK_JUSTIFY_CENTER</justify>
+	    <wrap>False</wrap>
+	    <xalign>0.5</xalign>
+	    <yalign>0.5</yalign>
+	    <xpad>0</xpad>
+	    <ypad>0</ypad>
+	  </widget>
+	</widget>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<child_name>Notebook:tab</child_name>
+	<name>config_crossfade_label</name>
+	<label>Crossfader</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+      </widget>
+
+      <widget>
+	<class>GtkVBox</class>
+	<name>config_gapkiller_page</name>
+	<border_width>5</border_width>
+	<homogeneous>False</homogeneous>
+	<spacing>5</spacing>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <name>gap_leading_frame</name>
+	  <label>Leading gap killer</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>True</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkTable</class>
+	    <name>gap_leading_table</name>
+	    <border_width>5</border_width>
+	    <rows>3</rows>
+	    <columns>2</columns>
+	    <homogeneous>False</homogeneous>
+	    <row_spacing>2</row_spacing>
+	    <column_spacing>5</column_spacing>
+
+	    <widget>
+	      <class>GtkSpinButton</class>
+	      <name>lgap_length_spin</name>
+	      <tooltip>Set the maximum length for gaps at the beginning of a stream.
+Default: 500</tooltip>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>changed</name>
+		<handler>on_lgap_length_spin_changed</handler>
+		<last_modification_time>Sun, 27 Aug 2000 12:14:28 GMT</last_modification_time>
+	      </signal>
+	      <climb_rate>0</climb_rate>
+	      <digits>0</digits>
+	      <numeric>True</numeric>
+	      <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+	      <snap>False</snap>
+	      <wrap>False</wrap>
+	      <value>500</value>
+	      <lower>0</lower>
+	      <upper>60000</upper>
+	      <step>10</step>
+	      <page>100</page>
+	      <page_size>10</page_size>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>1</top_attach>
+		<bottom_attach>2</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>True</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkSpinButton</class>
+	      <name>lgap_level_spin</name>
+	      <tooltip>Set the maximum volume for gaps at the beginning of a stream. All samples below this value are considered as silent.
+Default: 512</tooltip>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>changed</name>
+		<handler>on_lgap_level_spin_changed</handler>
+		<last_modification_time>Sun, 27 Aug 2000 12:14:34 GMT</last_modification_time>
+	      </signal>
+	      <climb_rate>0</climb_rate>
+	      <digits>0</digits>
+	      <numeric>True</numeric>
+	      <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+	      <snap>False</snap>
+	      <wrap>False</wrap>
+	      <value>512</value>
+	      <lower>0</lower>
+	      <upper>32767</upper>
+	      <step>16</step>
+	      <page>256</page>
+	      <page_size>10</page_size>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>2</top_attach>
+		<bottom_attach>3</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>True</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>lgap_length_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>0</spacing>
+	      <child>
+		<left_attach>0</left_attach>
+		<right_attach>1</right_attach>
+		<top_attach>1</top_attach>
+		<bottom_attach>2</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>True</yfill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>lgap_length_label</name>
+		<label>Max. length (ms):</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>lgap_level_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>0</spacing>
+	      <child>
+		<left_attach>0</left_attach>
+		<right_attach>1</right_attach>
+		<top_attach>2</top_attach>
+		<bottom_attach>3</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>True</yfill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>lgap_level_label</name>
+		<label>Max. level (16bit sample):</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>lgap_enable_check</name>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>toggled</name>
+		<handler>on_lgap_enable_check_toggled</handler>
+		<last_modification_time>Fri, 25 Aug 2000 11:18:34 GMT</last_modification_time>
+	      </signal>
+	      <label>Enable</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>0</top_attach>
+		<bottom_attach>1</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <name>gap_trailing_frame</name>
+	  <label>Trailing gap killer</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>True</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkTable</class>
+	    <name>gap_trailing_table</name>
+	    <border_width>5</border_width>
+	    <rows>3</rows>
+	    <columns>2</columns>
+	    <homogeneous>False</homogeneous>
+	    <row_spacing>2</row_spacing>
+	    <column_spacing>5</column_spacing>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>tgap_length_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>0</spacing>
+	      <child>
+		<left_attach>0</left_attach>
+		<right_attach>1</right_attach>
+		<top_attach>1</top_attach>
+		<bottom_attach>2</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>True</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>True</yfill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>tgap_length_label</name>
+		<label>Max. length (ms):</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>tgap_level_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>0</spacing>
+	      <child>
+		<left_attach>0</left_attach>
+		<right_attach>1</right_attach>
+		<top_attach>2</top_attach>
+		<bottom_attach>3</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>True</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>True</yfill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>tgap_level_label</name>
+		<label>Max. level (16bit sample):</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkSpinButton</class>
+	      <name>tgap_length_spin</name>
+	      <tooltip>Set the maximum length for gaps at the end of a stream.
+Default: 500</tooltip>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>changed</name>
+		<handler>on_tgap_length_spin_changed</handler>
+		<last_modification_time>Sun, 26 Nov 2000 19:29:53 GMT</last_modification_time>
+	      </signal>
+	      <climb_rate>0</climb_rate>
+	      <digits>0</digits>
+	      <numeric>True</numeric>
+	      <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+	      <snap>False</snap>
+	      <wrap>False</wrap>
+	      <value>500</value>
+	      <lower>0</lower>
+	      <upper>60000</upper>
+	      <step>10</step>
+	      <page>100</page>
+	      <page_size>10</page_size>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>1</top_attach>
+		<bottom_attach>2</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>True</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkSpinButton</class>
+	      <name>tgap_level_spin</name>
+	      <tooltip>Set the maximum volume for gaps at the end of a stream. All samples below this value are considered as silent.
+Default: 512</tooltip>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>changed</name>
+		<handler>on_tgap_level_spin_changed</handler>
+		<last_modification_time>Sun, 26 Nov 2000 19:30:03 GMT</last_modification_time>
+	      </signal>
+	      <climb_rate>0</climb_rate>
+	      <digits>0</digits>
+	      <numeric>True</numeric>
+	      <update_policy>GTK_UPDATE_ALWAYS</update_policy>
+	      <snap>False</snap>
+	      <wrap>False</wrap>
+	      <value>512</value>
+	      <lower>0</lower>
+	      <upper>32767</upper>
+	      <step>1</step>
+	      <page>16</page>
+	      <page_size>10</page_size>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>2</top_attach>
+		<bottom_attach>3</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>True</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>tgap_lock_check</name>
+	      <tooltip>Use the same settings as above.</tooltip>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>toggled</name>
+		<handler>on_tgap_lock_check_toggled</handler>
+		<last_modification_time>Fri, 25 Aug 2000 11:18:47 GMT</last_modification_time>
+	      </signal>
+	      <label>Lock to Leading</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<left_attach>0</left_attach>
+		<right_attach>1</right_attach>
+		<top_attach>0</top_attach>
+		<bottom_attach>1</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>tgap_enable_check</name>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>toggled</name>
+		<handler>on_tgap_enable_check_toggled</handler>
+		<last_modification_time>Fri, 08 Sep 2000 17:53:52 GMT</last_modification_time>
+	      </signal>
+	      <label>Enable</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<left_attach>1</left_attach>
+		<right_attach>2</right_attach>
+		<top_attach>0</top_attach>
+		<bottom_attach>1</bottom_attach>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<xexpand>False</xexpand>
+		<yexpand>False</yexpand>
+		<xshrink>False</xshrink>
+		<yshrink>False</yshrink>
+		<xfill>True</xfill>
+		<yfill>False</yfill>
+	      </child>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <name>gap_advanced_frame</name>
+	  <label>Advanced</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>gap_advanced_vbox</name>
+	    <border_width>5</border_width>
+	    <homogeneous>False</homogeneous>
+	    <spacing>0</spacing>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>gadv_crossing_check</name>
+	      <tooltip>If enabled, XMMS-crossfade will take additional care to avoid clicks with pre-faded (gapless) tracks. XMMS-crossfade will cut off the end of the previous song (the beginning of the next song) only at a zero-crossing of the sample values.
+Default: On</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Skip to next zero crossing</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+	  </widget>
+	</widget>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<child_name>Notebook:tab</child_name>
+	<name>config_gapkiller_label</name>
+	<label>Gap Killer</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+      </widget>
+
+      <widget>
+	<class>GtkVBox</class>
+	<name>config_misc_page</name>
+	<border_width>5</border_width>
+	<homogeneous>False</homogeneous>
+	<spacing>5</spacing>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <child_name>Notebook:tab</child_name>
+	  <name>misc_debug_frame</name>
+	  <label>Debug options</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>misc_debug_vbox</name>
+	    <border_width>5</border_width>
+	    <homogeneous>False</homogeneous>
+	    <spacing>2</spacing>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>debug_stderr_check</name>
+	      <tooltip>Monitors what is going on in XMMS-crossfade. If you think you found a bug in XMMS-crossfade, please enable this option and send me the output.
+Note that you should disable debug output if you start XMMS from within Netscape. Netscape will spam you with dialogs containing the debug output captured from &lt;stderr&gt;.
+Default: Off</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Write debug output to &lt;stderr&gt;</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>debug_monitor_check</name>
+	      <tooltip>Enables the Buffer Monitor. This is a small window which shows how much data is in the buffers. The top display belongs to the mixing buffer, the bottom shows how much data is being buffered by the output plugin.
+Default: Off</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Show Buffer Monitor</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <name>misc_mixopt_frame</name>
+	  <label>Volume control options</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>misc_mixopt_vbox</name>
+	    <border_width>5</border_width>
+	    <homogeneous>False</homogeneous>
+	    <spacing>2</spacing>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>mixopt_enable_check</name>
+	      <tooltip>Enables/disables XMMS volume and balance controls.
+Default: On</tooltip>
+	      <can_focus>True</can_focus>
+	      <signal>
+		<name>toggled</name>
+		<handler>on_config_mixopt_enable_check_toggled</handler>
+		<last_modification_time>Fri, 16 Jun 2000 14:37:30 GMT</last_modification_time>
+	      </signal>
+	      <label>Enable volume control</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>mixopt_reverse_check</name>
+	      <tooltip>Reverses left and right with the balance control.
+Default: Off</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Reverse balance</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>mixopt_software_check</name>
+	      <tooltip>Enable software mixer. Usefull for output plugins without mixer support.
+Default: Off</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Software Mixer (delayed operation)</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkFrame</class>
+	  <name>misc_other_frame</name>
+	  <label>Advanced options</label>
+	  <label_xalign>0</label_xalign>
+	  <shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>True</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkVBox</class>
+	    <name>misc_other_vbox</name>
+	    <border_width>5</border_width>
+	    <homogeneous>False</homogeneous>
+	    <spacing>2</spacing>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>moth_songchange_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>5</spacing>
+	      <child>
+		<padding>0</padding>
+		<expand>True</expand>
+		<fill>True</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>moth_songchange_label</name>
+		<sensitive>False</sensitive>
+		<label>Songchange timeout (ms):</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkSpinButton</class>
+		<name>moth_songchange_spin</name>
+		<sensitive>False</sensitive>
+		<tooltip>The songchange timeout is the maximum time XMMS-crossfade waits for the next song. If this timeout is exceeded, the output plugin/device is closed.
+Default: 500</tooltip>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>changed</name>
+		  <handler>on_moth_songchange_spin_changed</handler>
+		  <last_modification_time>Fri, 22 Dec 2000 12:06:52 GMT</last_modification_time>
+		</signal>
+		<climb_rate>0</climb_rate>
+		<digits>0</digits>
+		<numeric>True</numeric>
+		<update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		<snap>False</snap>
+		<wrap>False</wrap>
+		<value>500</value>
+		<lower>10</lower>
+		<upper>10000</upper>
+		<step>10</step>
+		<page>100</page>
+		<page_size>10</page_size>
+		<child>
+		  <padding>0</padding>
+		  <expand>True</expand>
+		  <fill>True</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>moth_preload_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>5</spacing>
+	      <child>
+		<padding>0</padding>
+		<expand>True</expand>
+		<fill>True</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>moth_preload_label</name>
+		<label>Mixing buffer preload (ms):</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkSpinButton</class>
+		<name>moth_preload_spin</name>
+		<tooltip>Tells XMMS-crossfade how much data it should buffer before it starts writing to the output plugin/device. Usually, this value can be set to 0, because the output plugin does preloading on its own.
+Default: 0</tooltip>
+		<can_focus>True</can_focus>
+		<climb_rate>0</climb_rate>
+		<digits>0</digits>
+		<numeric>True</numeric>
+		<update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		<snap>False</snap>
+		<wrap>False</wrap>
+		<value>0</value>
+		<lower>0</lower>
+		<upper>60000</upper>
+		<step>10</step>
+		<page>100</page>
+		<page_size>10</page_size>
+		<child>
+		  <padding>0</padding>
+		  <expand>True</expand>
+		  <fill>True</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>moth_noxf_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>5</spacing>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkLabel</class>
+		<name>moth_noxf_label</name>
+		<label>Don't  crossfade</label>
+		<justify>GTK_JUSTIFY_CENTER</justify>
+		<wrap>False</wrap>
+		<xalign>0.5</xalign>
+		<yalign>0.5</yalign>
+		<xpad>0</xpad>
+		<ypad>0</ypad>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkCheckButton</class>
+		<name>noxf_album_check</name>
+		<tooltip>This option enables the automatic detection of pre-faded or gapless tracks, like the tracks on some compilations or on most live albums. If such tracks are detected, crossfading will be disabled and only the gapkiller (if enabled) will be used for the songchange.
+Default: On</tooltip>
+		<can_focus>True</can_focus>
+		<label>successive tracks</label>
+		<active>False</active>
+		<draw_indicator>True</draw_indicator>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkCheckButton</class>
+		<name>noxf_samefile_check</name>
+		<tooltip>This option disables crossfading between the same file. This can happen if you have only one file in the playlist and 'repeat' turned on.
+Default: Off</tooltip>
+		<can_focus>True</can_focus>
+		<label>same file</label>
+		<active>False</active>
+		<draw_indicator>True</draw_indicator>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>moth_httpworkaround_check</name>
+	      <tooltip>Enable this when you have problems playing internet HTTP audio streams. Unfortunatelly, it also breaks crossfading.
+Default: Off</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Enable HTTP buffer underrun workaround</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkHBox</class>
+	      <name>moth_opmaxused_hbox</name>
+	      <homogeneous>False</homogeneous>
+	      <spacing>5</spacing>
+	      <child>
+		<padding>0</padding>
+		<expand>True</expand>
+		<fill>True</fill>
+	      </child>
+
+	      <widget>
+		<class>GtkCheckButton</class>
+		<name>moth_opmaxused_check</name>
+		<tooltip>With this option enabled, XMMS-crossfade will limit the amount of data being buffered by the output plugin. This way, you can decrease the latency between pressing STOP/NEXT/PREV and the new song actually being played. 
+Default: Off</tooltip>
+		<can_focus>True</can_focus>
+		<signal>
+		  <name>toggled</name>
+		  <handler>on_moth_opmaxused_check_toggled</handler>
+		  <last_modification_time>Sat, 10 Mar 2001 16:03:14 GMT</last_modification_time>
+		</signal>
+		<label>Limit OP buffer usage (ms):</label>
+		<active>False</active>
+		<draw_indicator>True</draw_indicator>
+		<child>
+		  <padding>0</padding>
+		  <expand>False</expand>
+		  <fill>False</fill>
+		</child>
+	      </widget>
+
+	      <widget>
+		<class>GtkSpinButton</class>
+		<name>moth_opmaxused_spin</name>
+		<tooltip>Beware that setting this value too low also increases the chance of buffer underruns.
+Default: 250</tooltip>
+		<can_focus>True</can_focus>
+		<climb_rate>0</climb_rate>
+		<digits>0</digits>
+		<numeric>True</numeric>
+		<update_policy>GTK_UPDATE_ALWAYS</update_policy>
+		<snap>False</snap>
+		<wrap>False</wrap>
+		<value>500</value>
+		<lower>10</lower>
+		<upper>10000</upper>
+		<step>10</step>
+		<page>100</page>
+		<page_size>10</page_size>
+		<child>
+		  <padding>0</padding>
+		  <expand>True</expand>
+		  <fill>True</fill>
+		</child>
+	      </widget>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>moth_quantaudio_check</name>
+	      <visible>False</visible>
+	      <tooltip>Enable this when you have problems playing internet HTTP audio streams. Unfortunatelly, it also breaks crossfading.
+Default: Off</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Use Quantaudio timing comments</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+
+	    <widget>
+	      <class>GtkCheckButton</class>
+	      <name>moth_outputkeepopened_check</name>
+	      <tooltip>Keep the output device opened all the time, even if XMMS is stopped. This way, you can avoid clicks caused by the soundcard when the device is opened or closed
+Default: Off</tooltip>
+	      <can_focus>True</can_focus>
+	      <label>Keep output opened</label>
+	      <active>False</active>
+	      <draw_indicator>True</draw_indicator>
+	      <child>
+		<padding>0</padding>
+		<expand>False</expand>
+		<fill>False</fill>
+	      </child>
+	    </widget>
+	  </widget>
+	</widget>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<child_name>Notebook:tab</child_name>
+	<name>config_misc_label</name>
+	<label>Advanced</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+      </widget>
+
+      <widget>
+	<class>GtkVBox</class>
+	<name>config_presets_page</name>
+	<border_width>5</border_width>
+	<visible>False</visible>
+	<homogeneous>False</homogeneous>
+	<spacing>5</spacing>
+
+	<widget>
+	  <class>GtkHBox</class>
+	  <name>presets_name_hbox</name>
+	  <homogeneous>False</homogeneous>
+	  <spacing>5</spacing>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkEntry</class>
+	    <name>presets_name_entry</name>
+	    <can_focus>True</can_focus>
+	    <editable>True</editable>
+	    <text_visible>True</text_visible>
+	    <text_max_length>0</text_max_length>
+	    <text></text>
+	    <child>
+	      <padding>0</padding>
+	      <expand>True</expand>
+	      <fill>True</fill>
+	    </child>
+	  </widget>
+
+	  <widget>
+	    <class>GtkButton</class>
+	    <name>presets_delete_button</name>
+	    <can_focus>True</can_focus>
+	    <label>Delete</label>
+	    <relief>GTK_RELIEF_NORMAL</relief>
+	    <child>
+	      <padding>0</padding>
+	      <expand>False</expand>
+	      <fill>False</fill>
+	    </child>
+	  </widget>
+
+	  <widget>
+	    <class>GtkButton</class>
+	    <name>presets_new_button</name>
+	    <can_focus>True</can_focus>
+	    <label>New</label>
+	    <relief>GTK_RELIEF_NORMAL</relief>
+	    <child>
+	      <padding>0</padding>
+	      <expand>False</expand>
+	      <fill>False</fill>
+	    </child>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkScrolledWindow</class>
+	  <name>presets_list_scrolledwindow</name>
+	  <hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
+	  <vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
+	  <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
+	  <vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
+	  <child>
+	    <padding>0</padding>
+	    <expand>True</expand>
+	    <fill>True</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkCList</class>
+	    <name>presets_list_list</name>
+	    <can_focus>True</can_focus>
+	    <signal>
+	      <name>click_column</name>
+	      <handler>on_presets_list_click_column</handler>
+	      <last_modification_time>Thu, 27 Sep 2001 11:11:05 GMT</last_modification_time>
+	    </signal>
+	    <columns>3</columns>
+	    <column_widths>101,92,80</column_widths>
+	    <selection_mode>GTK_SELECTION_SINGLE</selection_mode>
+	    <show_titles>True</show_titles>
+	    <shadow_type>GTK_SHADOW_IN</shadow_type>
+
+	    <widget>
+	      <class>GtkLabel</class>
+	      <child_name>CList:title</child_name>
+	      <name>label6</name>
+	      <label>Name</label>
+	      <justify>GTK_JUSTIFY_CENTER</justify>
+	      <wrap>False</wrap>
+	      <xalign>0.5</xalign>
+	      <yalign>0.5</yalign>
+	      <xpad>0</xpad>
+	      <ypad>0</ypad>
+	    </widget>
+
+	    <widget>
+	      <class>GtkLabel</class>
+	      <child_name>CList:title</child_name>
+	      <name>label7</name>
+	      <label>Output/Effects</label>
+	      <justify>GTK_JUSTIFY_CENTER</justify>
+	      <wrap>False</wrap>
+	      <xalign>0.5</xalign>
+	      <yalign>0.5</yalign>
+	      <xpad>0</xpad>
+	      <ypad>0</ypad>
+	    </widget>
+
+	    <widget>
+	      <class>GtkLabel</class>
+	      <child_name>CList:title</child_name>
+	      <name>label8</name>
+	      <label>XF</label>
+	      <justify>GTK_JUSTIFY_CENTER</justify>
+	      <wrap>False</wrap>
+	      <xalign>0.5</xalign>
+	      <yalign>0.5</yalign>
+	      <xpad>0</xpad>
+	      <ypad>0</ypad>
+	    </widget>
+	  </widget>
+	</widget>
+
+	<widget>
+	  <class>GtkHButtonBox</class>
+	  <name>presets_list_bbox</name>
+	  <layout_style>GTK_BUTTONBOX_END</layout_style>
+	  <spacing>5</spacing>
+	  <child_min_width>85</child_min_width>
+	  <child_min_height>27</child_min_height>
+	  <child_ipad_x>7</child_ipad_x>
+	  <child_ipad_y>0</child_ipad_y>
+	  <child>
+	    <padding>0</padding>
+	    <expand>False</expand>
+	    <fill>False</fill>
+	  </child>
+
+	  <widget>
+	    <class>GtkButton</class>
+	    <name>presets_load_button</name>
+	    <can_default>True</can_default>
+	    <can_focus>True</can_focus>
+	    <label>Load</label>
+	    <relief>GTK_RELIEF_NORMAL</relief>
+	  </widget>
+
+	  <widget>
+	    <class>GtkButton</class>
+	    <name>presets_save_button</name>
+	    <can_default>True</can_default>
+	    <can_focus>True</can_focus>
+	    <label>Save</label>
+	    <relief>GTK_RELIEF_NORMAL</relief>
+	  </widget>
+	</widget>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<child_name>Notebook:tab</child_name>
+	<name>config_presets_label</name>
+	<label>Presets</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkHButtonBox</class>
+      <name>config_bbox</name>
+      <layout_style>GTK_BUTTONBOX_END</layout_style>
+      <spacing>5</spacing>
+      <child_min_width>85</child_min_width>
+      <child_min_height>27</child_min_height>
+      <child_ipad_x>0</child_ipad_x>
+      <child_ipad_y>0</child_ipad_y>
+      <child>
+	<padding>0</padding>
+	<expand>False</expand>
+	<fill>True</fill>
+      </child>
+
+      <widget>
+	<class>GtkButton</class>
+	<name>config_ok</name>
+	<can_default>True</can_default>
+	<can_focus>True</can_focus>
+	<signal>
+	  <name>clicked</name>
+	  <handler>on_config_ok_clicked</handler>
+	  <last_modification_time>Tue, 06 Jun 2000 13:58:20 GMT</last_modification_time>
+	</signal>
+	<label>OK</label>
+	<relief>GTK_RELIEF_NORMAL</relief>
+      </widget>
+
+      <widget>
+	<class>GtkButton</class>
+	<name>config_cancel</name>
+	<can_default>True</can_default>
+	<can_focus>True</can_focus>
+	<signal>
+	  <name>clicked</name>
+	  <handler>gtk_widget_destroy</handler>
+	  <object>config_win</object>
+	  <last_modification_time>Tue, 06 Jun 2000 13:58:12 GMT</last_modification_time>
+	</signal>
+	<label>Cancel</label>
+	<relief>GTK_RELIEF_NORMAL</relief>
+      </widget>
+
+      <widget>
+	<class>GtkButton</class>
+	<name>config_apply</name>
+	<can_default>True</can_default>
+	<can_focus>True</can_focus>
+	<signal>
+	  <name>clicked</name>
+	  <handler>on_config_apply_clicked</handler>
+	  <last_modification_time>Tue, 06 Jun 2000 13:58:33 GMT</last_modification_time>
+	</signal>
+	<label>Apply</label>
+	<relief>GTK_RELIEF_NORMAL</relief>
+      </widget>
+    </widget>
+  </widget>
+</widget>
+
+<widget>
+  <class>GtkWindow</class>
+  <name>monitor_win</name>
+  <signal>
+    <name>delete_event</name>
+    <handler>on_monitor_win_delete_event</handler>
+    <last_modification_time>Sat, 10 Jun 2000 14:22:35 GMT</last_modification_time>
+  </signal>
+  <title>Crossfade Buffer Monitor</title>
+  <type>GTK_WINDOW_TOPLEVEL</type>
+  <position>GTK_WIN_POS_NONE</position>
+  <modal>False</modal>
+  <default_width>320</default_width>
+  <allow_shrink>False</allow_shrink>
+  <allow_grow>True</allow_grow>
+  <auto_shrink>False</auto_shrink>
+  <wmclass_name>XMMS-crossfade</wmclass_name>
+  <wmclass_class>xmms</wmclass_class>
+
+  <widget>
+    <class>GtkTable</class>
+    <name>monitor_table</name>
+    <border_width>5</border_width>
+    <rows>3</rows>
+    <columns>2</columns>
+    <homogeneous>False</homogeneous>
+    <row_spacing>3</row_spacing>
+    <column_spacing>5</column_spacing>
+
+    <widget>
+      <class>GtkHBox</class>
+      <name>monitor_output_hbox</name>
+      <homogeneous>False</homogeneous>
+      <spacing>3</spacing>
+      <child>
+	<left_attach>1</left_attach>
+	<right_attach>2</right_attach>
+	<top_attach>1</top_attach>
+	<bottom_attach>2</bottom_attach>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<xexpand>False</xexpand>
+	<yexpand>False</yexpand>
+	<xshrink>False</xshrink>
+	<yshrink>False</yshrink>
+	<xfill>True</xfill>
+	<yfill>True</yfill>
+      </child>
+
+      <widget>
+	<class>GtkProgressBar</class>
+	<name>monitor_output_progress</name>
+	<value>0</value>
+	<lower>0</lower>
+	<upper>0</upper>
+	<bar_style>GTK_PROGRESS_CONTINUOUS</bar_style>
+	<orientation>GTK_PROGRESS_LEFT_TO_RIGHT</orientation>
+	<activity_mode>False</activity_mode>
+	<show_text>True</show_text>
+	<format>%v</format>
+	<text_xalign>0.5</text_xalign>
+	<text_yalign>0.5</text_yalign>
+	<child>
+	  <padding>0</padding>
+	  <expand>True</expand>
+	  <fill>True</fill>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monitor_output_label2</name>
+	<label>ms</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	</child>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkHBox</class>
+      <name>monitor_displaylabel_hbox</name>
+      <homogeneous>False</homogeneous>
+      <spacing>0</spacing>
+      <child>
+	<left_attach>0</left_attach>
+	<right_attach>1</right_attach>
+	<top_attach>0</top_attach>
+	<bottom_attach>1</bottom_attach>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<xexpand>False</xexpand>
+	<yexpand>False</yexpand>
+	<xshrink>False</xshrink>
+	<yshrink>False</yshrink>
+	<xfill>True</xfill>
+	<yfill>True</yfill>
+      </child>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monitor_display_label</name>
+	<label>Mixing Buffer:</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	  <pack>GTK_PACK_END</pack>
+	</child>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkHBox</class>
+      <name>monitor_position_hbox</name>
+      <homogeneous>False</homogeneous>
+      <spacing>0</spacing>
+      <child>
+	<left_attach>1</left_attach>
+	<right_attach>2</right_attach>
+	<top_attach>2</top_attach>
+	<bottom_attach>3</bottom_attach>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<xexpand>False</xexpand>
+	<yexpand>False</yexpand>
+	<xshrink>False</xshrink>
+	<yshrink>False</yshrink>
+	<xfill>True</xfill>
+	<yfill>True</yfill>
+      </child>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_position_label</name>
+	<label>-:--.-</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_label1</name>
+	<label> / </label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_total_label</name>
+	<label>-:--</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_label2</name>
+	<label> total, </label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_left_label</name>
+	<label>-:--</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_label3</name>
+	<label> left</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_written_time_label</name>
+	<label>-:--:--.-</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	  <pack>GTK_PACK_END</pack>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_output_time_separator_label</name>
+	<label> / </label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	  <pack>GTK_PACK_END</pack>
+	</child>
+      </widget>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monpos_output_time_label</name>
+	<label>-:--.---</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	  <pack>GTK_PACK_END</pack>
+	</child>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkHBox</class>
+      <name>monitor_outputlabel_hbox</name>
+      <homogeneous>False</homogeneous>
+      <spacing>0</spacing>
+      <child>
+	<left_attach>0</left_attach>
+	<right_attach>1</right_attach>
+	<top_attach>1</top_attach>
+	<bottom_attach>2</bottom_attach>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<xexpand>False</xexpand>
+	<yexpand>False</yexpand>
+	<xshrink>False</xshrink>
+	<yshrink>False</yshrink>
+	<xfill>True</xfill>
+	<yfill>True</yfill>
+      </child>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monitor_output_label</name>
+	<label>Output Buffer:</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	  <pack>GTK_PACK_END</pack>
+	</child>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkHBox</class>
+      <name>monitor_positionlabel_hbox</name>
+      <homogeneous>False</homogeneous>
+      <spacing>0</spacing>
+      <child>
+	<left_attach>0</left_attach>
+	<right_attach>1</right_attach>
+	<top_attach>2</top_attach>
+	<bottom_attach>3</bottom_attach>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<xexpand>False</xexpand>
+	<yexpand>False</yexpand>
+	<xshrink>False</xshrink>
+	<yshrink>False</yshrink>
+	<xfill>True</xfill>
+	<yfill>False</yfill>
+      </child>
+
+      <widget>
+	<class>GtkLabel</class>
+	<name>monitor_position_label</name>
+	<label>Position:</label>
+	<justify>GTK_JUSTIFY_CENTER</justify>
+	<wrap>False</wrap>
+	<xalign>0.5</xalign>
+	<yalign>0.5</yalign>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>False</fill>
+	  <pack>GTK_PACK_END</pack>
+	</child>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkFrame</class>
+      <name>monitor_display_frame</name>
+      <label_xalign>0</label_xalign>
+      <shadow_type>GTK_SHADOW_ETCHED_OUT</shadow_type>
+      <child>
+	<left_attach>1</left_attach>
+	<right_attach>2</right_attach>
+	<top_attach>0</top_attach>
+	<bottom_attach>1</bottom_attach>
+	<xpad>0</xpad>
+	<ypad>0</ypad>
+	<xexpand>True</xexpand>
+	<yexpand>True</yexpand>
+	<xshrink>False</xshrink>
+	<yshrink>False</yshrink>
+	<xfill>True</xfill>
+	<yfill>True</yfill>
+      </child>
+
+      <widget>
+	<class>GtkDrawingArea</class>
+	<name>monitor_display_drawingarea</name>
+	<height>20</height>
+	<signal>
+	  <name>expose_event</name>
+	  <handler>on_monitor_display_drawingarea_expose_event</handler>
+	  <last_modification_time>Mon, 05 Jun 2000 16:17:52 GMT</last_modification_time>
+	</signal>
+      </widget>
+    </widget>
+  </widget>
+</widget>
+
+<widget>
+  <class>GtkDialog</class>
+  <name>about_win</name>
+  <title>About XMMS Crossfade Plugin</title>
+  <type>GTK_WINDOW_TOPLEVEL</type>
+  <position>GTK_WIN_POS_NONE</position>
+  <modal>False</modal>
+  <allow_shrink>False</allow_shrink>
+  <allow_grow>False</allow_grow>
+  <auto_shrink>False</auto_shrink>
+
+  <widget>
+    <class>GtkVBox</class>
+    <child_name>Dialog:vbox</child_name>
+    <name>about_vbox</name>
+    <border_width>5</border_width>
+    <homogeneous>False</homogeneous>
+    <spacing>0</spacing>
+
+    <widget>
+      <class>GtkHBox</class>
+      <child_name>Dialog:action_area</child_name>
+      <name>about_actionarea</name>
+      <border_width>10</border_width>
+      <homogeneous>True</homogeneous>
+      <spacing>5</spacing>
+      <child>
+	<padding>0</padding>
+	<expand>False</expand>
+	<fill>True</fill>
+	<pack>GTK_PACK_END</pack>
+      </child>
+
+      <widget>
+	<class>GtkButton</class>
+	<name>about_ok</name>
+	<can_focus>True</can_focus>
+	<signal>
+	  <name>clicked</name>
+	  <handler>gtk_widget_destroy</handler>
+	  <object>about_win</object>
+	  <last_modification_time>Mon, 05 Jun 2000 09:51:27 GMT</last_modification_time>
+	</signal>
+	<label>OK</label>
+	<relief>GTK_RELIEF_NORMAL</relief>
+	<child>
+	  <padding>0</padding>
+	  <expand>False</expand>
+	  <fill>True</fill>
+	</child>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkLabel</class>
+      <name>about_label</name>
+      <label>dummy</label>
+      <justify>GTK_JUSTIFY_CENTER</justify>
+      <wrap>False</wrap>
+      <xalign>0.5</xalign>
+      <yalign>0.5</yalign>
+      <xpad>0</xpad>
+      <ypad>0</ypad>
+      <child>
+	<padding>0</padding>
+	<expand>False</expand>
+	<fill>False</fill>
+      </child>
+    </widget>
+  </widget>
+</widget>
+
+<widget>
+  <class>GtkWindow</class>
+  <name>help_win</name>
+  <title>Help</title>
+  <type>GTK_WINDOW_TOPLEVEL</type>
+  <position>GTK_WIN_POS_NONE</position>
+  <modal>False</modal>
+  <allow_shrink>False</allow_shrink>
+  <allow_grow>True</allow_grow>
+  <auto_shrink>False</auto_shrink>
+
+  <widget>
+    <class>GtkVBox</class>
+    <name>help_vbox</name>
+    <border_width>5</border_width>
+    <homogeneous>False</homogeneous>
+    <spacing>0</spacing>
+
+    <widget>
+      <class>GtkScrolledWindow</class>
+      <name>help_scrolledwindow</name>
+      <hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
+      <vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
+      <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
+      <vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
+      <child>
+	<padding>0</padding>
+	<expand>True</expand>
+	<fill>True</fill>
+      </child>
+
+      <widget>
+	<class>GtkText</class>
+	<name>help_text</name>
+	<can_focus>True</can_focus>
+	<editable>False</editable>
+	<text>&lt;dummy&gt;
+</text>
+      </widget>
+    </widget>
+
+    <widget>
+      <class>GtkHButtonBox</class>
+      <name>help_buttonbox</name>
+      <layout_style>GTK_BUTTONBOX_END</layout_style>
+      <spacing>30</spacing>
+      <child_min_width>85</child_min_width>
+      <child_min_height>27</child_min_height>
+      <child_ipad_x>7</child_ipad_x>
+      <child_ipad_y>0</child_ipad_y>
+      <child>
+	<padding>0</padding>
+	<expand>False</expand>
+	<fill>False</fill>
+      </child>
+
+      <widget>
+	<class>GtkButton</class>
+	<name>help_close_button</name>
+	<can_default>True</can_default>
+	<can_focus>True</can_focus>
+	<signal>
+	  <name>clicked</name>
+	  <handler>on_help_close_button_clicked</handler>
+	  <last_modification_time>Sun, 18 Mar 2001 15:03:23 GMT</last_modification_time>
+	</signal>
+	<label>Close</label>
+	<relief>GTK_RELIEF_NORMAL</relief>
+      </widget>
+    </widget>
+  </widget>
+</widget>
+
+</GTK-Interface>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/interface.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,8 @@
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+GtkWidget* create_config_win (void);
+GtkWidget* create_monitor_win (void);
+GtkWidget* create_about_win (void);
+GtkWidget* create_help_win (void);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/monitor.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,352 @@
+/* 
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *  
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include <string.h>
+#include <gtk/gtk.h>
+
+#include "monitor.h"
+#include "crossfade.h"
+
+#include "interface.h"
+#include "support.h"
+
+
+static GtkWidget   *monitor_win;
+static GtkWidget   *monitor_display_drawingarea;
+static GtkProgress *monitor_output_progress;
+static GtkLabel    *monitor_position_label;
+static GtkLabel    *monitor_total_label;
+static GtkLabel    *monitor_left_label;
+static GtkLabel    *monitor_output_time_label;
+static GtkLabel    *monitor_output_time_sep;
+static GtkLabel    *monitor_written_time_label;
+
+static gchar       *default_position_str = NULL;
+static gchar       *default_total_str    = NULL;
+static gchar       *default_left_str     = NULL;
+static gchar       *default_output_time_str  = NULL;
+static gchar       *default_written_time_str = NULL;
+
+static gboolean monitor_active  = FALSE;
+static guint    monitor_tag;
+static gint     monitor_output_max;
+static gint     monitor_closing;
+
+#define RUNNING 0
+#define CLOSING 1
+#define CLOSED  2
+
+#define SMOD(x,n) (((x)<0)?((n)-(x))%(n):((x)%(n)))
+
+
+static void draw_wrapped(GtkWidget *widget, gint pos, gint width, GdkGC *gc)
+{
+  GdkDrawable *win = widget->window;
+
+  gint ww = widget->allocation.width;
+  gint wh = widget->allocation.height;
+
+  if(width <= 0) return;
+  if(width < ww) {
+    gint x = SMOD(pos, ww);
+    if((x+width) >= ww) {
+      gdk_draw_rectangle(win, gc, TRUE, x, 0,        ww-x,  wh);
+      gdk_draw_rectangle(win, gc, TRUE, 0, 0, width-(ww-x), wh);
+    }
+    else gdk_draw_rectangle(win, gc, TRUE, x, 0, width, wh);
+  }
+  else gdk_draw_rectangle(win, gc, TRUE, 0, 0, ww, wh);
+}
+ 
+gboolean on_monitor_display_drawingarea_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
+{
+  if(buffer && buffer->size && output_opened) {
+    gint ww = widget->allocation.width;
+
+    gint x1 = 0;
+    gint x2 = buffer->used;
+    gint x3 = buffer->used + buffer->mix;
+    gint x4 = buffer->size;
+
+    x1 = (gint64)(x1 + buffer->rd_index) * ww / buffer->size;
+    x2 = (gint64)(x2 + buffer->rd_index) * ww / buffer->size;
+    x3 = (gint64)(x3 + buffer->rd_index) * ww / buffer->size;
+    x4 = (gint64)(x4 + buffer->rd_index) * ww / buffer->size;
+
+    draw_wrapped(widget, x1, x2-x1, widget->style->fg_gc[GTK_STATE_NORMAL]);
+    draw_wrapped(widget, x2, x3-x2, widget->style->white_gc);
+    draw_wrapped(widget, x3, x4-x3, widget->style->bg_gc[GTK_STATE_NORMAL]);
+  }
+  else
+    gdk_window_clear_area(widget->window,
+			  event->area.x, event->area.y,
+			  event->area.width, event->area.height);
+  return TRUE;
+}
+
+gboolean on_monitor_win_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data)
+{
+  /* V0.1.1 20000618: removed, didn't make much sense since it wasn't saved */
+  /* if(config) config->enable_monitor = FALSE; */
+  if(default_position_str)     { g_free(default_position_str);     default_position_str     = NULL; }
+  if(default_total_str)        { g_free(default_total_str);        default_total_str        = NULL; }
+  if(default_left_str)         { g_free(default_left_str);         default_left_str         = NULL; }
+  if(default_output_time_str)  { g_free(default_output_time_str);  default_output_time_str  = NULL; }
+  if(default_written_time_str) { g_free(default_written_time_str); default_written_time_str = NULL; }
+  return(FALSE);  /* FALSE: destroy window */
+}
+
+extern GtkWindow *mainwin;
+
+void xfade_check_monitor_win()
+{
+  gchar *str;
+
+  if(config->enable_monitor) {
+    if(!monitor_win && !(monitor_win = create_monitor_win())) {
+      DEBUG(("[crossfade] check_monitor_win: error creating window!\n"));
+      return;
+    }
+
+    /* automatically set config_win to NULL when window is destroyed */
+    gtk_signal_connect(GTK_OBJECT(monitor_win), "destroy", GTK_SIGNAL_FUNC(gtk_widget_destroyed), &monitor_win);
+
+    /* show window */
+    gtk_widget_show(monitor_win);
+   
+    /* get pointers to widgets (used by crossfade.c to update the monitor) */
+    monitor_display_drawingarea =              lookup_widget(monitor_win, "monitor_display_drawingarea");
+    monitor_output_progress     = GTK_PROGRESS(lookup_widget(monitor_win, "monitor_output_progress"));
+    monitor_position_label      = GTK_LABEL   (lookup_widget(monitor_win, "monpos_position_label"));
+    monitor_total_label         = GTK_LABEL   (lookup_widget(monitor_win, "monpos_total_label"));
+    monitor_left_label          = GTK_LABEL   (lookup_widget(monitor_win, "monpos_left_label"));
+    monitor_output_time_label   = GTK_LABEL   (lookup_widget(monitor_win, "monpos_output_time_label"));
+    monitor_output_time_sep     = GTK_LABEL   (lookup_widget(monitor_win, "monpos_output_time_separator_label"));
+    monitor_written_time_label  = GTK_LABEL   (lookup_widget(monitor_win, "monpos_written_time_label"));
+
+    /* get default strings (displayed when monitor is stopped) */
+    if(!default_position_str)     { gtk_label_get(monitor_position_label,     &str); default_position_str     = g_strdup(str); }
+    if(!default_total_str)        { gtk_label_get(monitor_total_label,        &str); default_total_str        = g_strdup(str); }
+    if(!default_left_str)         { gtk_label_get(monitor_left_label,         &str); default_left_str         = g_strdup(str); }
+    if(!default_output_time_str)  { gtk_label_get(monitor_output_time_label,  &str); default_output_time_str  = g_strdup(str); }
+    if(!default_written_time_str) { gtk_label_get(monitor_written_time_label, &str); default_written_time_str = g_strdup(str); }
+
+    /* force gtk_progress_configure */
+    monitor_output_max = 0;
+  }
+  else
+    if(monitor_win) gtk_widget_destroy(monitor_win);
+}
+
+void label_set_text(GtkLabel *label, gchar *text)
+{
+  gchar *old_text;
+  gtk_label_get(label, &old_text);
+  if(strcmp(old_text, text) == 0) return;
+  gtk_label_set_text(label, text);
+}
+
+gint xfade_update_monitor(gpointer userdata)
+{
+  /* HACK: (see xfade_stop_monitor() below) */
+  if(monitor_closing == CLOSED)
+    return TRUE;
+
+  if(monitor_closing == CLOSING)
+    monitor_closing = CLOSED;
+
+  if(!monitor_win)
+    return TRUE;
+
+  /* lock buffer (only if we need to) */
+  if(monitor_closing != CLOSED)
+    g_static_mutex_lock(&buffer_mutex);
+
+  if(1 || monitor_win) {
+    gint output_time  = the_op->output_time();
+    gint written_time = the_op->written_time();
+    gint output_used  = written_time - output_time;
+
+    /*** Mixing Buffer ***/
+    if(1 || monitor_display_drawingarea) {
+      GdkRectangle update_rect;
+
+      update_rect.x = 0;
+      update_rect.y = 0;
+      update_rect.width = monitor_display_drawingarea->allocation.width;
+      update_rect.height = monitor_display_drawingarea->allocation.height;
+
+      if(monitor_closing == CLOSED)
+	gdk_window_clear_area(monitor_display_drawingarea->window,
+			      update_rect.x,     update_rect.y,
+			      update_rect.width, update_rect.height);
+      else
+	gtk_widget_draw(monitor_display_drawingarea, &update_rect);
+    }
+
+    /*** Output Buffer ***/ 
+    if(1 || monitor_output_progress) {
+      if(monitor_closing == CLOSED) {
+	gtk_progress_configure(monitor_output_progress, 0, 0, 0);
+	monitor_output_max = 0;
+      }
+      else {
+	if(output_opened && the_op->buffer_playing()) {
+	  if(output_used < 0) output_used = 0;
+	  if(output_used > monitor_output_max) {
+	    monitor_output_max = output_used;
+	    gtk_progress_configure(monitor_output_progress,
+				   output_used, 0, monitor_output_max);
+	  }
+	  else
+	    gtk_progress_set_value(monitor_output_progress, output_used);
+	}
+	else {
+	  gtk_progress_configure(monitor_output_progress, 0, 0, 0);
+	  monitor_output_max = 0;
+	}
+      }	
+    }
+
+    /*** Position ***/
+    if(1 || (monitor_position_label && monitor_total_label && monitor_left_label)) {
+#ifndef HAVE_BEEP
+      if(!get_input_playing() || (monitor_closing == CLOSED)) {  /* XMMS */
+#else
+      if(!bmp_playback_get_playing() || (monitor_closing == CLOSED)) {  /* XMMS */
+#endif
+	gtk_label_set_text(monitor_position_label, default_position_str);
+	gtk_label_set_text(monitor_total_label,    default_total_str);
+	gtk_label_set_text(monitor_left_label,     default_left_str);
+      }
+      else {
+	gchar buffer[32];
+	gint  position = output_time - output_offset;
+	gint  total    = playlist_get_current_length();  /* XMMS */
+	gint  left     = total - position;
+
+	/* position */
+	g_snprintf(buffer, sizeof(buffer),
+		   position < 0 ? "-%d:%02d.%01d" : "%d:%02d.%01d",
+		   ABS((position/60000)),
+		   ABS((position/1000) % 60),
+		   ABS((position/100)  % 10));
+	gtk_label_set_text(monitor_position_label, buffer);
+	
+	/* total */
+	if(total > 0) {
+	  g_snprintf(buffer, sizeof(buffer), "%d:%02d", total/60000, (total/1000)%60);
+	  gtk_label_set_text(monitor_total_label, buffer);
+	}
+	else
+	  label_set_text(monitor_total_label, default_total_str);
+
+	  
+	/* left */
+	if(total > 0) {
+	  g_snprintf(buffer, sizeof(buffer), "%d:%02d", left/60000, (left/1000)%60);
+	  gtk_label_set_text(monitor_left_label, buffer);
+	}
+	else
+	  label_set_text(monitor_left_label, default_left_str);
+      }
+    }
+
+    /*** Output Plugin position */
+    if(1 || (monitor_written_time_label && monitor_output_time_label)) {
+      if(monitor_closing == CLOSED) {
+	gtk_widget_hide(GTK_WIDGET(monitor_output_time_label));
+	gtk_widget_hide(GTK_WIDGET(monitor_output_time_sep));
+	gtk_label_set_text(monitor_written_time_label, default_written_time_str);
+      }
+      else {
+	gchar buffer[32];
+
+	/* check for output plugin bug -- diff should always be 0 */
+	gint diff = written_time - (gint)(output_streampos * 1000 / OUTPUT_BPS);
+	if(diff) {
+	  gtk_widget_show(GTK_WIDGET(monitor_output_time_label));
+	  gtk_widget_show(GTK_WIDGET(monitor_output_time_sep));
+
+	  g_snprintf(buffer, sizeof(buffer),
+		     output_time < 0 ? "-%d:%02d.%03d" : "%d:%02d.%03d",
+		     ABS((diff/60000)),
+		     ABS((diff/1000) % 60),
+		     ABS((diff)    % 1000));
+	  gtk_label_set_text(monitor_output_time_label, buffer);
+	}
+	else {
+	  gtk_widget_hide(GTK_WIDGET(monitor_output_time_label));
+	  gtk_widget_hide(GTK_WIDGET(monitor_output_time_sep));
+	}
+
+	/* written_time */
+	g_snprintf(buffer, sizeof(buffer),
+		   written_time < 0 ? "-%d:%02d:%02d.%01d" : "%d:%02d:%02d.%01d",
+		   ABS((written_time/3600000)),
+		   ABS((written_time/60000) % 60),
+		   ABS((written_time/1000)  % 60),
+		   ABS((written_time/100)   % 10));
+	gtk_label_set_text(monitor_written_time_label, buffer);
+      }
+    }
+  }
+
+  /* unlock buffer */
+  if(monitor_closing != CLOSED)
+    g_static_mutex_unlock(&buffer_mutex);
+
+  return TRUE;  /* continue calling this function */
+}
+
+void xfade_start_monitor()
+{
+  if(monitor_active) return;
+  monitor_output_max = 0;
+  monitor_closing    = RUNNING;
+  monitor_active     = TRUE;
+  monitor_tag        = gtk_timeout_add(UPDATE_INTERVAL, xfade_update_monitor, NULL);
+}
+
+void xfade_stop_monitor()
+{
+  gint max_wait = UPDATE_INTERVAL/10+1+1;  /* round up / add safety */
+
+  if(!monitor_active) return;
+
+  /* HACK, ugly HACK: force a final call of xfade_update_monitor */
+  monitor_closing = CLOSING;
+  while((monitor_closing == CLOSING) && (max_wait-- > 0))
+    xmms_usleep(10000);
+  
+  if(max_wait <= 0)
+    DEBUG(("[crossfade] stop_monitor: timeout!\n"));
+
+  /* stop calling xfade_update_monitor() */
+  gtk_timeout_remove(monitor_tag);
+  monitor_active = FALSE;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/monitor.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,42 @@
+/* 
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *  
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifndef _MONITOR_H_
+#define _MONITOR_H_
+
+#include <glib.h>
+
+/* time between updates in ms (default: 33 -> 30 updates per second) */
+#define UPDATE_INTERVAL 33
+
+void xfade_check_monitor_win();
+gint xfade_update_monitor   (gpointer userdata);
+void xfade_start_monitor    ();
+void xfade_stop_monitor     ();
+
+extern GtkWidget   *monitor_win;
+extern GtkWidget   *monitor_display_drawingarea;
+extern GtkEntry    *monitor_output_entry;
+extern GtkProgress *monitor_output_progress;
+
+#endif  /* _MONITOR_H_ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/rate.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,343 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+/*
+ *  Rate conversion for 16bit stereo samples.
+ * 
+ *  The algorithm (Least Common Multiple Linear Interpolation) was
+ *  adapted from the rate conversion code used in
+ *
+ *    sox-12.16, Copyright 1998  Fabrice Bellard, originally
+ *               Copyright 1991  Lance Norskog And Sundry Contributors.
+ *
+ *
+ *  NOTE: As of XMMS-crossfade 0.3.6, the resampling code has been extended
+ *        to use libsamplerate (also known as Secret Rabbit Code) for better
+ *        quality. See http://www.mega-nerd.com/SRC/ for details.
+ *
+ *  CREDIT: While I started implementing support on my own, it never reached
+ *          a usable state. A working re-implementation of libsamplerate
+ *          support has finally been provided by Samuel Krempp.
+ *
+ *          Many thanks for your work and the patch!
+ */
+
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include "crossfade.h"
+#include "rate.h"
+#include "volume.h"
+
+#include <string.h>
+#include <assert.h>
+#include <math.h>  /* for ceil */
+
+
+#ifndef HAVE_LIBSAMPLERATE
+static glong gcd(glong m, glong n)
+{
+  glong r;
+  while(1) {
+    r = m % n;
+    if(r == 0) return n;
+    m = n;
+    n = r;
+  }
+}
+
+static glong lcm(gint i, gint j)
+{
+  return ((glong)i * j) / gcd(i, j);
+}
+#endif
+
+
+void rate_init(rate_context_t *rc)
+{
+  memset(rc, 0, sizeof(*rc));
+  volume_init(&rc->vc);
+}
+
+void rate_config(rate_context_t *rc, gint in_rate, gint out_rate, int converter_type)
+{
+  if((in_rate  <= 0) || (in_rate  > 65535) || 
+     (out_rate <= 0) || (out_rate > 65535)) {
+    DEBUG(("[crossfade] rate_config: "
+	   "illegal rates (in=%d, out=%d)!\n", in_rate, out_rate));
+    return;
+  }
+
+  rate_free(rc);
+
+  rc->in_rate  = in_rate;
+  rc->out_rate = out_rate;
+#ifdef HAVE_LIBSAMPLERATE
+  rc->converter_type = converter_type;
+  rc->src_data.src_ratio = out_rate *1.0/ in_rate;
+  if (!(rc->src_state = src_new(converter_type, 2, NULL))) {
+    DEBUG(("[crossfade] rate_config: error creating converter!\n"));
+    return;
+  }
+  DEBUG(("[crossfade] rate_config: using \"%s\" for %d -> %d rate conversion\n",
+	 src_get_name(converter_type), in_rate, out_rate));
+  
+  src_set_ratio(rc->src_state, rc->src_data.src_ratio);
+  rc->src_data.end_of_input = 0;
+#else
+  rc->lcm_rate = lcm(in_rate, out_rate);
+  rc->in_skip  = rc->lcm_rate / in_rate;
+  rc->out_skip = rc->lcm_rate / out_rate;
+  rc->in_ofs   = 0;
+  rc->out_ofs  = 0;
+  rc->started  = FALSE;
+#endif
+  rc->valid    = TRUE;
+}
+
+gint realloc_if_needed(gpointer *pointer, gint *size, gint req_size)
+{
+  gpointer data;
+  if(req_size==0)
+    return 0;
+
+  if(!*pointer || *size < req_size ) {
+    DEBUG(("*** allocation %d bytes\n", req_size));
+    if(!(data = g_realloc(*pointer, req_size) ) ) {
+      DEBUG(("[crossfade] rate_flow: g_realloc(%d) failed!\n", req_size));
+      return -1;
+    }
+    *pointer = data;
+    *size = req_size;
+    return req_size;
+  }
+  else return 0;
+}
+
+gint16 final_quantize(volume_context_t *vc, gfloat v, gfloat scale)
+{
+  if(config->mixer_software)
+    v *= scale;
+
+  v = rintf(v);
+  if(v > 32767 || v < -32768) {
+    ++vc->clips;
+    v = CLAMP(v, -32768, 32767);
+  }
+
+  return (gint16) v;
+}
+
+gint rate_flow(rate_context_t *rc, gpointer *buffer, gint length)
+{
+  gint size;
+  gfloat volume_scale_l=1, volume_scale_r=1;
+  struct timeval tv;
+  glong dt;
+
+  /* print clipping warnings at most once every second : */
+  gettimeofday(&tv, NULL);
+  dt = (tv.tv_sec - rc->vc.tv_last.tv_sec)  * 1000
+    + (tv.tv_usec - rc->vc.tv_last.tv_usec) / 1000;
+  if(((dt < 0) || (dt > 1000)) && (rc->vc.clips > 0)) {
+    g_message("[crossfade] final_quantize: %d samples clipped!", rc->vc.clips);
+    rc->vc.clips = 0;
+    rc->vc.tv_last = tv;
+  }
+
+  /* attenuate 1dB every 4% -> 25dB for 100% */
+  if(config->mixer_software) {
+    volume_scale_l = volume_compute_factor(config->mixer_vol_left, 25);
+    volume_scale_r = volume_compute_factor(config->mixer_vol_right, 25);
+  }
+
+  if(rc->in_rate == rc->out_rate) {
+    /* trivial case, special code (no actual resampling !) */
+    gint16 *int_p = *buffer, *int_p2 = NULL;
+    gint i;
+
+    gint error = realloc_if_needed((gpointer*) &rc->data, &rc->size, length);
+    assert(error != -1);
+    int_p2 = rc->data;
+
+    length /= 4;  /* 2 channels x 2 bytes */
+    for(i=0; i<length; i++) {
+      gfloat v_l = *(int_p++);
+      gfloat v_r = *(int_p++);
+      *(int_p2 ++) = final_quantize(&rc->vc, v_l, volume_scale_l); 
+      *(int_p2 ++) = final_quantize(&rc->vc, v_r, volume_scale_r); 
+    }
+
+    *buffer = rc->data;
+    return length*4;
+  }
+
+#ifdef HAVE_LIBSAMPLERATE
+  gint16 *int_p;
+  gfloat *float_p;
+  gint i, out_bound, out_len, error = 0;
+
+  assert( length % 4 == 0);
+  length /= 4;  /* 2 channels x 2 bytes */
+  /* safe upper bound of output length: */
+  out_bound = (gint) ceil((rc->src_data.src_ratio + 0.05) * length); 
+
+  /* (re-)allocate our buffers */
+  size = length * 2 * sizeof(gfloat);
+  error = realloc_if_needed((gpointer*)&rc->src_data.data_in, &rc->src_in_size, size);
+  assert(error != -1);
+
+  rc->src_data.input_frames = length;
+  rc->src_data.end_of_input = 0;
+ 
+  size = out_bound * 2 * sizeof(gfloat);
+  error = realloc_if_needed((gpointer*) &rc->src_data.data_out, &rc->src_out_size, size);
+  assert(error != -1);
+
+  rc->src_data.output_frames = out_bound;
+
+  size = out_bound * 2 * sizeof(gint16);
+  error = realloc_if_needed((gpointer*) &rc->data, &rc->size, size);
+  assert(error != -1);
+
+  /* putting data into the float buffers : */
+  float_p = rc->src_data.data_in;
+  int_p = *buffer;
+  for(i=0; i < 2*length; i++)
+    *(float_p++) = (gfloat) *(int_p++) / 32768.;
+  assert(float_p == rc->src_data.data_in + length*2);
+
+  /* process the float buffers : */
+  error = src_process(rc->src_state, & rc->src_data);
+  if(error) {
+    g_message("[crossfade] rate_flow : src_error %d (%s)", error, src_strerror(error));
+  }
+    
+  float_p = rc->src_data.data_out;
+  int_p = rc->data;
+  out_len = rc->src_data.output_frames_gen;
+  assert(out_len <= out_bound);
+  assert(rc->src_data.input_frames_used == length);
+
+  for(i=0; i<out_len; i++) {
+    gfloat v_l = 32768* *(float_p ++);
+    gfloat v_r = 32768* *(float_p ++);
+
+    *(int_p ++) = final_quantize(&rc->vc, v_l, volume_scale_l);
+    *(int_p ++) = final_quantize(&rc->vc, v_r, volume_scale_r);
+  }
+
+  *buffer = rc->data;
+  return out_len * 4;
+
+#else /* rustic resampling */
+
+  gpointer data;
+  gint isamp, emitted = 0;
+  gint16 *out, *in = *buffer;
+
+  /* some sanity checks */
+  if(length & 3) {
+    DEBUG(("[crossfade] rate_flow: truncating %d bytes!", length & 3));
+    length &= -4;
+  }
+  isamp = length / 4;
+  if(isamp <= 0) return 0;
+  if(!rc || !rc->valid) return length;
+  if(rc->in_skip == rc->out_skip) return length;
+
+  /* (re)allocate buffer */
+  size = ((isamp * rc->in_skip) / rc->out_skip + 1) * 4;
+  if(!rc->data || (size > rc->size)) {
+    if(!(data = g_realloc(rc->data, size))) {
+      DEBUG(("[crossfade] rate_flow: g_realloc(%d) failed!\n", size));
+      return 0;
+    }
+    rc->data = data;
+    rc->size = size;
+  }
+  *buffer = out = rc->data;
+
+  /* first sample? */
+  if(!rc->started) {
+    rc->last_l  = in[0];
+    rc->last_r  = in[1];
+    rc->started = TRUE;
+  }
+
+  /* advance input range to span next output */
+  while(((rc->in_ofs + rc->in_skip) <= rc->out_ofs) && (isamp-- > 0)) {
+    rc->last_l  = *in++;
+    rc->last_r  = *in++;
+    rc->in_ofs += rc->in_skip;
+  }
+  if(isamp == 0) return emitted * 4;
+
+  /* interpolate */
+  for(;;) {
+    gfloat v_l = rc->last_l + (((gfloat)in[0] - rc->last_l)
+			    * (rc->out_ofs - rc->in_ofs)
+			    / rc->in_skip);
+    
+    gfloat v_r = rc->last_r + (((gfloat)in[1] - rc->last_r)
+			    * (rc->out_ofs - rc->in_ofs)
+			    / rc->in_skip);
+    *(out ++) = final_quantize(&rc->vc, v_l, volume_scale_l);
+    *(out ++) = final_quantize(&rc->vc, v_r, volume_scale_r);
+    /* count emitted samples*/
+    emitted++;
+    
+    /* advance to next output */
+    rc->out_ofs += rc->out_skip;
+    
+    /* advance input range to span next output */
+    while((rc->in_ofs + rc->in_skip) <= rc->out_ofs) {
+      rc->last_l  = *in++;
+      rc->last_r  = *in++;
+      rc->in_ofs += rc->in_skip;
+      if(--isamp == 0) return emitted * 4;
+    }
+    
+    /* long samples with high LCM's overrun counters! */
+    if(rc->out_ofs == rc->in_ofs)
+      rc->out_ofs = rc->in_ofs = 0;
+  }
+  
+  return 0;  /* program flow never reaches this point */
+#endif
+}
+
+void
+rate_free(rate_context_t *rc)
+{
+#ifdef HAVE_LIBSAMPLERATE
+  if(rc->src_state)         src_delete(rc->src_state); 
+  if(rc->src_data.data_in)  g_free(rc->src_data.data_in);
+  if(rc->src_data.data_out) g_free(rc->src_data.data_out); 
+#endif
+  if(rc->data)              g_free(rc->data);
+
+  memset(rc, 0, sizeof(*rc));
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/rate.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,74 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+#ifndef __RATE_H__
+#define __RATE_H__
+
+#include <glib.h>
+
+#ifdef HAVE_LIBSAMPLERATE
+#  include <samplerate.h>
+#endif
+
+#include "volume.h"
+
+typedef struct               /* private state */
+{
+  gboolean valid;            /* TRUE after the context has been set up */
+  gint     in_rate;          /* sample rate (Hz) */
+  gint     out_rate;
+  gint16  *data;             /* pointer to output buffer (16bit stereo) */
+  gint     size;             /* size in bytes */
+
+  volume_context_t vc;       /* for clipping warnings */ 
+
+#ifdef HAVE_LIBSAMPLERATE
+  int        converter_type;
+  SRC_STATE *src_state;
+  SRC_DATA   src_data;       /* struct for I/O with SRC api */
+  gint       src_in_size, src_out_size;
+#else
+  guint32  lcm_rate;         /* lcm(in_rate, out_rate) */
+  guint32  in_skip;          /* distance to next sample (lcm-units) */
+  guint32  out_skip;         
+  guint32  in_ofs;           /* offset (lcm-units) */
+  guint32  out_ofs;
+
+  gboolean started;          /* TRUE after the first sample has been parsed */
+  gint16   last_l;           /* last input sample */
+  gint16   last_r;
+#endif
+}
+rate_context_t;
+
+void rate_init  (rate_context_t *rc);
+void rate_config(rate_context_t *rc,
+                 gint            in_rate,
+                 gint            out_rate,
+                 int             converter_type);
+gint rate_flow  (rate_context_t *rc,
+                 gpointer       *buffer,
+                 gint            length);
+void rate_free  (rate_context_t *rc);
+
+#endif  /* _RATE_H_ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/support.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,162 @@
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <string.h>
+
+#include <gtk/gtk.h>
+
+#include "support.h"
+
+/* This is an internally used function to check if a pixmap file exists. */
+static gchar* check_file_exists        (const gchar     *directory,
+                                        const gchar     *filename);
+
+/* This is an internally used function to create pixmaps. */
+static GtkWidget* create_dummy_pixmap  (GtkWidget       *widget);
+
+GtkWidget*
+lookup_widget                          (GtkWidget       *widget,
+                                        const gchar     *widget_name)
+{
+  GtkWidget *parent, *found_widget;
+
+  for (;;)
+    {
+      if (GTK_IS_MENU (widget))
+        parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
+      else
+        parent = widget->parent;
+      if (parent == NULL)
+        break;
+      widget = parent;
+    }
+
+  found_widget = (GtkWidget*) gtk_object_get_data (GTK_OBJECT (widget),
+                                                   widget_name);
+  if (!found_widget)
+    g_warning ("Widget not found: %s", widget_name);
+  return found_widget;
+}
+
+/* This is a dummy pixmap we use when a pixmap can't be found. */
+static char *dummy_pixmap_xpm[] = {
+/* columns rows colors chars-per-pixel */
+"1 1 1 1",
+"  c None",
+/* pixels */
+" "
+};
+
+/* This is an internally used function to create pixmaps. */
+static GtkWidget*
+create_dummy_pixmap                    (GtkWidget       *widget)
+{
+  GdkColormap *colormap;
+  GdkPixmap *gdkpixmap;
+  GdkBitmap *mask;
+  GtkWidget *pixmap;
+
+  colormap = gtk_widget_get_colormap (widget);
+  gdkpixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap, &mask,
+                                                     NULL, dummy_pixmap_xpm);
+  if (gdkpixmap == NULL)
+    g_error ("Couldn't create replacement pixmap.");
+  pixmap = gtk_pixmap_new (gdkpixmap, mask);
+  gdk_pixmap_unref (gdkpixmap);
+  gdk_bitmap_unref (mask);
+  return pixmap;
+}
+
+static GList *pixmaps_directories = NULL;
+
+/* Use this function to set the directory containing installed pixmaps. */
+void
+add_pixmap_directory                   (const gchar     *directory)
+{
+  pixmaps_directories = g_list_prepend (pixmaps_directories,
+                                        g_strdup (directory));
+}
+
+/* This is an internally used function to create pixmaps. */
+GtkWidget*
+create_pixmap                          (GtkWidget       *widget,
+                                        const gchar     *filename)
+{
+  gchar *found_filename = NULL;
+  GdkColormap *colormap;
+  GdkPixmap *gdkpixmap;
+  GdkBitmap *mask;
+  GtkWidget *pixmap;
+  GList *elem;
+
+  if (!filename || !filename[0])
+      return create_dummy_pixmap (widget);
+
+  /* We first try any pixmaps directories set by the application. */
+  elem = pixmaps_directories;
+  while (elem)
+    {
+      found_filename = check_file_exists ((gchar*)elem->data, filename);
+      if (found_filename)
+        break;
+      elem = elem->next;
+    }
+
+  /* If we haven't found the pixmap, try the source directory. */
+  if (!found_filename)
+    {
+      found_filename = check_file_exists ("", filename);
+    }
+
+  if (!found_filename)
+    {
+      g_warning ("Couldn't find pixmap file: %s", filename);
+      return create_dummy_pixmap (widget);
+    }
+
+  colormap = gtk_widget_get_colormap (widget);
+  gdkpixmap = gdk_pixmap_colormap_create_from_xpm (NULL, colormap, &mask,
+                                                   NULL, found_filename);
+  if (gdkpixmap == NULL)
+    {
+      g_warning ("Error loading pixmap file: %s", found_filename);
+      g_free (found_filename);
+      return create_dummy_pixmap (widget);
+    }
+  g_free (found_filename);
+  pixmap = gtk_pixmap_new (gdkpixmap, mask);
+  gdk_pixmap_unref (gdkpixmap);
+  gdk_bitmap_unref (mask);
+  return pixmap;
+}
+
+/* This is an internally used function to check if a pixmap file exists. */
+static gchar*
+check_file_exists                      (const gchar     *directory,
+                                        const gchar     *filename)
+{
+  gchar *full_filename;
+  struct stat s;
+  gint status;
+
+  full_filename = (gchar*) g_malloc (strlen (directory) + 1
+                                     + strlen (filename) + 1);
+  strcpy (full_filename, directory);
+  strcat (full_filename, G_DIR_SEPARATOR_S);
+  strcat (full_filename, filename);
+
+  status = stat (full_filename, &s);
+  if (status == 0 && S_ISREG (s.st_mode))
+    return full_filename;
+  g_free (full_filename);
+  return NULL;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/support.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,38 @@
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <gtk/gtk.h>
+
+/*
+ * Public Functions.
+ */
+
+/*
+ * This function returns a widget in a component created by Glade.
+ * Call it with the toplevel widget in the component (i.e. a window/dialog),
+ * or alternatively any widget in the component, and the name of the widget
+ * you want returned.
+ */
+GtkWidget*  lookup_widget              (GtkWidget       *widget,
+                                        const gchar     *widget_name);
+
+/* get_widget() is deprecated. Use lookup_widget instead. */
+#define get_widget lookup_widget
+
+/* Use this function to set the directory containing installed pixmaps. */
+void        add_pixmap_directory       (const gchar     *directory);
+
+
+/*
+ * Private Functions.
+ */
+
+/* This is used to create the pixmaps in the interface. */
+GtkWidget*  create_pixmap              (GtkWidget       *widget,
+                                        const gchar     *filename);
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/timing.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,90 @@
+/* timing.c
+ *
+ * get timing info based on file name
+ *
+ * file name should have a comment like this :
+ * R(RMS)-T(in):(out):(end)
+ * where :
+ * - RMS is an indication of the RMS value in between in and out
+ *   (to be compared against maximum sample value, 32767 for 16 bit audio)
+ * - in, out and end are floats, giving the mixing start and end points
+ *   and the length of the file in seconds
+ */
+
+#include "timing.h"
+#include "crossfade.h"
+#include "debug.h"
+
+#include <stdio.h>
+#include <locale.h>
+
+#undef VERBOSE
+
+#ifdef VOLUME_NORMALIZER
+
+int 
+get_timing_comment (char *filename, quantaudio_t *qa)
+/* 
+ * check if the file given has a timing comment
+ * return 1 if it does and 0 if it doesn't
+ * store the relevant data in quantaudio
+ */ 
+{
+  id3_t id3;
+  int nscanned;
+  
+  setlocale(LC_NUMERIC, "C");
+
+  get_id3 (filename, &id3);
+  if ((nscanned = sscanf (id3.comment, "R:%d-T:%f:%f:%f", &qa->RMS,
+			  &qa->mix_in, &qa->mix_out, &qa->length)) < 4)
+  {
+    /* tag not right */
+#ifdef VERBOSE
+    DEBUG(("[crossfade] get_timing_comment: no quantaudio comment\n"));
+    DEBUG(("[crossfade] get_timing_comment: nscanned=%d (\"%s\")\n", nscanned, id3.comment));
+    DEBUG(("[crossfade] get_timing_comment: in %.2f, out %.2f, length %.2f, RMS %d\n", qa->mix_in, qa->mix_out, qa->length, qa->RMS));
+#endif
+    return 0;
+  } 
+  else
+  {
+#ifdef VERBOSE
+    DEBUG(("[crossfade] get_timing_comment: in %.2f, out %.2f, length %.2f, RMS %d\n", qa->mix_in, qa->mix_out, qa->length, qa->RMS));
+#endif
+    return 1;
+  }
+}
+
+int 
+get_id3 (char *filename, id3_t *id3)
+/* get the id3 tag of this file.  Return 0 when failed or 1 when ok */
+{
+  FILE *fp;
+  fp = fopen (filename, "r"); /* read only */
+  if (fp == NULL) 
+  { 
+    /* file didn't open */
+    DEBUG(("[crossfade] get_id3 : file %s didn't open !\n", filename));	  
+    return 0;
+  }
+  if (fseek (fp, -128, SEEK_END) < 0) 
+  {
+    /* problem rewinding */
+    DEBUG(("[crossfade] get_id3 : problem rewinding on %s !\n", filename));
+    return 0;
+  } 
+  else 
+  { 
+    /* we rewound successfully */
+    if (fread (id3, 128, 1, fp) < 0)
+    {
+      /* read error */
+      DEBUG(("[crossfade] get_id3 : read error on %s !\n", filename));  
+      return 0;
+    }
+  }
+  return 1;
+}
+
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/timing.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,30 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* static int intro_ms, outro_ms; */
+
+typedef struct
+{
+  int RMS;
+  float mix_in;
+  float mix_out;
+  float length;
+} quantaudio_t;
+
+/* id3 stuff is taken from the id3 GPL program */
+typedef struct 
+{
+  char tag[3];
+  char title[30];
+  char artist[30];
+  char album[30];
+  char year[4];
+  /* With ID3 v1.0, the comment is 30 chars long */
+  /* With ID3 v1.1, if comment[28] == 0 then comment[29] == tracknum */
+  char comment[30];
+  unsigned char genre;
+} id3_t;
+
+int get_timing_comment (char *filename, quantaudio_t *qa);
+int get_id3 (char *filename, id3_t *id3);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/volume.c	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,126 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+/*
+ *  Volume to standard (16bit-le stereo)
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
+#include "volume.h"
+#include <string.h>
+#include <math.h> /* for rintf */
+
+#undef VERBOSE
+
+static void set_factor(volume_context_t *vc, gfloat factor)
+{
+  vc->factor = factor;
+#if 0
+  if(vc->factor < 0.01f) vc->factor = 0.01f;
+  if(vc->factor > 4.0f)  vc->factor = 4.0f;
+#endif
+#ifdef VERBOSE
+  DEBUG(("[crossfade] volume_set_factor: new factor=%.3f\n", vc->factor));
+#endif
+}
+
+
+void volume_init(volume_context_t *vc)
+{
+  memset(vc, 0, sizeof(*vc));
+  vc->active = FALSE;
+}
+
+void volume_set_active(volume_context_t *vc, gboolean active)
+{
+  vc->active = active;
+#ifdef VERBOSE
+  DEBUG(("[crossfade] volume_set_active: active=%d\n", vc->active));
+#endif
+}
+
+void volume_set_target_rms(volume_context_t *vc, gint target_rms)
+{
+  vc->target_rms = target_rms;
+  if(vc->active && (vc->song_rms == 0)) {
+    DEBUG(("[crossfade] volume_set_target_rms: WARNING: song_rms=0!\n"));
+    vc->factor = 1;
+    return;
+  }
+  set_factor(vc, (gfloat)vc->target_rms / (gfloat)vc->song_rms);
+}
+
+void volume_set_song_rms(volume_context_t *vc, gint song_rms)
+{
+  vc->song_rms = song_rms;
+  set_factor(vc, (gfloat)vc->target_rms / (gfloat)vc->song_rms);
+}
+
+gfloat volume_compute_factor(gint percent, gint dB_range)
+{
+  if(percent>=100)
+    return 1;
+  if(percent<=0)
+    return 0;
+  gfloat dB  = (percent-100)/100.0*dB_range; 
+  return pow(10, dB/20);
+}
+
+void volume_flow(volume_context_t *vc, gpointer *buffer, gint length)
+{
+  gint16 *in = *buffer;
+  struct timeval tv;
+  glong dt;
+
+  if(!vc->active) return;
+ 
+  length /= 2;
+  while(length--) {
+    gint out = (gint) rintf((gfloat)*in * vc->factor); 
+    if(out > 32767) {
+      *in++ = 32767;
+      vc->clips++;
+    } else if(out < -32768) {
+      *in++ = -32768;
+      vc->clips++;
+    } else
+      *in++ = out;
+  }
+
+  gettimeofday(&tv, NULL);
+  dt = (tv.tv_sec - vc->tv_last.tv_sec)  * 1000
+    + (tv.tv_usec - vc->tv_last.tv_usec) / 1000;
+
+  if(((dt < 0) || (dt > 1000)) && (vc->clips > 0)) {
+    DEBUG(("[crossfade] volume_flow: %d samples clipped!\n", vc->clips));
+    vc->clips = 0;
+    vc->tv_last = tv;
+  }
+}
+
+void volume_free(volume_context_t *vc)
+{
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Plugins/Output/crossfade/volume.h	Sun Dec 04 15:58:55 2005 -0800
@@ -0,0 +1,60 @@
+/*
+ *  XMMS Crossfade Plugin
+ *  Copyright (C) 2000-2004  Peter Eisenlohr <peter@eisenlohr.org>
+ *
+ *  based on the original OSS Output Plugin
+ *  Copyright (C) 1998-2000  Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  USA.
+ */
+
+/*
+ *  Volume adjustment
+ */
+
+#ifndef __VOLUME_H__
+#define __VOLUME_H__
+
+#include "crossfade.h"
+#include "format.h"
+
+#include <sys/time.h>
+
+typedef struct
+{
+  gboolean active;
+  gint     target_rms;
+  gint     song_rms;
+  gfloat   factor;
+
+  struct timeval tv_last;
+  gint clips;
+}
+volume_context_t;
+
+void volume_init(volume_context_t *cc);
+void volume_flow(volume_context_t *cc, gpointer *buffer, gint length);
+void volume_free(volume_context_t *cc);
+
+void volume_set_active    (volume_context_t *cc, gboolean active);
+void volume_set_target_rms(volume_context_t *cc, gint target_rms);
+void volume_set_song_rms  (volume_context_t *cc, gint song_rms);
+
+gfloat volume_compute_factor(gint percent, gint dB_range); /*compute factor corresponding to
+                                                             attenuations in [- dB_range, 0]
+                                                           */
+
+#endif  /* _VOLUME_H_ */