]> err.no Git - mapper/commitdiff
Move audio sink and src to audio.h
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 25 Feb 2008 11:39:34 +0000 (13:39 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 25 Feb 2008 11:39:34 +0000 (13:39 +0200)
src/audio-note.c
src/audio.h [new file with mode: 0644]
src/speak.c

index 3f0245082527d466a9be9e9d480dfcb184f2f622..2c7e10099e1230885638afa9573f3d2fbf20fdf3 100644 (file)
 #include "config.h"
 #include <gst/gst.h>
 
+#include "audio.h"
 #include "audio-note.h"
 
-#ifdef WITH_DEVICE_770
-#define AUDIO_SRC "dsppcmsrc"
-#define AUDIO_SINK "dsppcmsink"
-#else
-#define AUDIO_SRC "alsasrc"
-#define AUDIO_SINK "autoaudiosink"
-#endif
-
 typedef struct _note_pipeline note_pipeline;
 struct _note_pipeline {
        GstElement *pipeline;
diff --git a/src/audio.h b/src/audio.h
new file mode 100644 (file)
index 0000000..2d35a9f
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef _AUDIO_H
+#define _AUDIO_H
+
+#ifdef WITH_DEVICE_770
+#define AUDIO_SRC "dsppcmsrc"
+#define AUDIO_SINK "dsppcmsink"
+#else
+#define AUDIO_SRC "alsasrc"
+#define AUDIO_SINK "autoaudiosink"
+#endif
+
+#endif
index 61d2cf75c273853f854827dbe2cbd6b8db053ca0..bd9a27ee076a04c0937be5bbbea37b9f77a669d6 100644 (file)
 #include <gst/app/gstappsink.h>
 #include <espeak/speak_lib.h>
 
-#ifndef WITH_DEVICE_770
-#define AUDIO_SINK "autoaudiosink"
-#else
-#define AUDIO_SINK "dsppcmsink"
-#endif
-
+#include "audio.h"
 #include "speak.h"
 
 typedef struct _gst_espeak gst_espeak;