summaryrefslogtreecommitdiffstats
path: root/tests/examples/spectrum/demo-osssrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/spectrum/demo-osssrc.c')
-rw-r--r--tests/examples/spectrum/demo-osssrc.c3
1 files changed, 3 insertions, 0 deletions
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;