#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;
--- /dev/null
+#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
#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;