X-Git-Url: http://git.maemo.org/git/?p=maemo-recorder;a=blobdiff_plain;f=src%2Fmaemo-recorder-file.c;h=af5d07d93241398611093f7744304c712d90acb2;hp=d813fda4bb90588e03801febe54b31ec0205bb6c;hb=8a17270361d8ff1be4b20f7482dee4733064f839;hpb=664fac5a73234f88de37c1c848725f155a1471f4;ds=sidebyside diff --git a/src/maemo-recorder-file.c b/src/maemo-recorder-file.c index d813fda..af5d07d 100644 --- a/src/maemo-recorder-file.c +++ b/src/maemo-recorder-file.c @@ -29,6 +29,7 @@ #include "maemo-recorder.h" #include "maemo-recorder-file.h" #include "maemo-recorder-au.h" +#include "settings.h" static gboolean moveFile(const gchar *src, const gchar *dst); @@ -89,6 +90,8 @@ getExtension(gint format) case FORMAT_PCMU: return EXTENSION_AU; /* return EXTENSION_PCMU; */ + case FORMAT_WAV: + return EXTENSION_WAV; case FORMAT_PCM: default: return EXTENSION_RAW; @@ -306,14 +309,14 @@ gboolean openFile(const gchar *filename, AudioFormat *format, gchar **tmpfile) switch (fmt) { case FORMAT_PCMA: - text_uri = g_strdup_printf("file://%s", DEFAULT_TMP_PCMA_FILE); + text_uri = g_strdup_printf("file://%s/%s", get_default_dir(), DEFAULT_TMP_PCMA_FILE); break; case FORMAT_PCMU: - text_uri = g_strdup_printf("file://%s", DEFAULT_TMP_PCMU_FILE); + text_uri = g_strdup_printf("file://%s/%s", get_default_dir(), DEFAULT_TMP_PCMU_FILE); break; case FORMAT_PCM: default: - text_uri = g_strdup_printf("file://%s", DEFAULT_TMP_FILE); + text_uri = g_strdup_printf("file://%s/%s", get_default_dir(), DEFAULT_TMP_FILE); break; }