#ifndef _AUDIO_NOTE_H
#define _AUDIO_NOTE_H
+#include <gtk/gtk.h>
+#include <gst/gst.h>
+
+typedef struct _note_pipeline note_pipeline;
+struct _note_pipeline {
+ GstElement *pipeline;
+ GstElement *src;
+ GstElement *sink;
+ GstElement *filter;
+ GstElement *caps;
+ GstCaps *srccaps;
+ gboolean active;
+ gboolean rec;
+};
+
+typedef struct _audio_note_ui audio_note_ui;
+struct _audio_note_ui {
+ GtkWidget *vbox;
+ GtkWidget *hbox;
+ GtkWidget *file_tree;
+ GtkWidget *lbl_time;
+ GtkWidget *btn_record;
+ GtkWidget *btn_play;
+ GtkWidget *btn_stop;
+ gint pos_sid;
+ gchar *cfile;
+ gchar *basedir;
+ note_pipeline *note_play;
+ note_pipeline *note_record;
+};
+
+audio_note_ui *audio_note_new(void);
+
gboolean audio_note_init(void);
+void audio_note_deinit(void);
+
+void audio_note_set_basedir(audio_note_ui *ui, const gchar *basedir);
+
gboolean audio_note_record(gchar *file);
gboolean audio_note_play(gchar *file);