summaryrefslogtreecommitdiffstats
path: root/tests/examples
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/spectrum/demo-audiotest.c2
-rw-r--r--tests/examples/spectrum/demo-osssrc.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/examples/spectrum/demo-audiotest.c b/tests/examples/spectrum/demo-audiotest.c
index bc2e9abc..a8d76c16 100644
--- a/tests/examples/spectrum/demo-audiotest.c
+++ b/tests/examples/spectrum/demo-audiotest.c
@@ -28,7 +28,9 @@
#include <gst/gst.h>
#include <gtk/gtk.h>
+#ifndef DEFAULT_AUDIOSINK
#define DEFAULT_AUDIOSINK "autoaudiosink"
+#endif
static GtkWidget *drawingarea = NULL;
static guint spect_height = 64;
diff --git a/tests/examples/spectrum/demo-osssrc.c b/tests/examples/spectrum/demo-osssrc.c
index eb28cff7..6b831f17 100644
--- a/tests/examples/spectrum/demo-osssrc.c
+++ b/tests/examples/spectrum/demo-osssrc.c
@@ -27,7 +27,10 @@
#include <gst/gst.h>
#include <gtk/gtk.h>
+#ifndef DEFAULT_AUDIOSRC
#define DEFAULT_AUDIOSRC "alsasrc"
+#endif
+
static guint spect_height = 64;
static guint spect_bands = 256;
static gfloat height_scale = 1.0;