move icons and desktop files under data, fix 'make dist'
[maemo-recorder] / src / maemo-recorder.h
index eaff3cb..6fd9434 100644 (file)
@@ -27,6 +27,7 @@
 #include <osso-log.h>
 #include <hildon-widgets/hildon-program.h>
 #include <hildon-widgets/hildon-window.h>
+#include <gconf/gconf-client.h>
 
 #include <gtk/gtk.h>
 #include <gst/gst.h>
@@ -63,8 +64,7 @@ typedef enum
 {
     APPSTATE_READY = 1,
     APPSTATE_PLAYING,
-    APPSTATE_RECORDING,
-
+    APPSTATE_RECORDING
 } AppState;
 
 typedef enum
@@ -78,6 +78,15 @@ typedef enum
     FORMAT_WAV
 } AudioFormat;
 
+#define FORMAT_NAME_WAV "WAV"
+#define FORMAT_NAME_PCMA "PCM A-law"
+#define FORMAT_NAME_PCMU "PCM \u03BC-law"
+/*
+#define FORMAT_NAME_PCMU "PCM mu-law"
+*/
+#define FORMAT_NAME_PCM "PCM raw"
+#define FORMAT_NAME_ILBC "iLBC"
+
 /* TODO: this kind of struct might be more handy when passing around audioformat info */
 #if 0
 struct _AudioFormatSpec
@@ -108,6 +117,7 @@ typedef struct _mainViewStr
     GtkWidget *fileNameEntry;
     GtkWidget *lengthEntry;
     GtkWidget *stateEntry;
+    GtkWidget *formatEntry;
     GtkObject *adjustment;
 
 } mainViewStr;
@@ -127,6 +137,7 @@ typedef struct _AppDataStr
     gint playPipelineType;
 
     osso_context_t *osso;
+    GConfClient *gconf_client;
 
     gchar * openFileName;
     gchar * saveFileName;