]> err.no Git - mapper/blobdiff - src/audio-note.h
Move ProgressUpdateInfo struct
[mapper] / src / audio-note.h
index 911f4c6b2e9a87355c59b3378c4f5943c90681eb..4757d6550bdfbc78a76dca59b4d0d9c919b8054f 100644 (file)
 #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);