[the-board] [things] Record voice memos in OGG format



commit 3bc588adb4f7618950a75c6bafad883fcafcf7eb
Author: Lucas Rocha <lucasr gnome org>
Date:   Mon Jan 31 18:15:46 2011 +0000

    [things] Record voice memos in OGG format

 src/js/ui/things/sound.js  |    2 +-
 src/tb/tb-sound-recorder.c |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/js/ui/things/sound.js b/src/js/ui/things/sound.js
index 7caf66f..c67400e 100644
--- a/src/js/ui/things/sound.js
+++ b/src/js/ui/things/sound.js
@@ -394,7 +394,7 @@ SoundThing.prototype = {
                        now.getMinutes() +
                        now.getSeconds() +
                        now.getMilliseconds() +
-                       ".wav";
+                       ".ogg";
 
         return this._targetVoicePath + filename;
     },
diff --git a/src/tb/tb-sound-recorder.c b/src/tb/tb-sound-recorder.c
index b16ce4c..71c1522 100644
--- a/src/tb/tb-sound-recorder.c
+++ b/src/tb/tb-sound-recorder.c
@@ -258,7 +258,9 @@ tb_sound_recorder_ensure_pipeline (TbSoundRecorder *recorder)
 
   pipeline_desc = g_strdup_printf("autoaudiosrc name=source ! "
                                   "audioconvert ! "
-                                  "wavenc ! "
+                                  "audioresample ! "
+                                  "vorbisenc ! "
+                                  "oggmux ! "
                                   "filesink location=\"%s\"",
                                   priv->filename);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]