~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/gst-pipeline.h

  • Committer: Osmo Antero
  • Date: 2012-09-29 18:12:44 UTC
  • Revision ID: osmoma@gmail.com-20120929181244-gmrxd5xww9pua60a
Support new systems; Ubuntu 12.10, Fedora 18. Improved timer and VAD-modules. Better gst-pipeline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#include "dconf.h"
11
11
#include "utility.h"
12
12
 
13
 
GstElement *pipeline_create(gchar *audio_source, GList *dev_list, gchar *enc_pipeline, gchar *output_sink, gchar **err_msg);
 
13
typedef struct {
 
14
    gchar *source;        // pulsesrc, autoaudiosrc, etc.
 
15
 
 
16
    GList *dev_list;      // String list of device names.
 
17
                          // See: pactl list | grep -A2 'Source #' | grep 'Name: ' | cut -d" " -f2
 
18
 
 
19
    gchar *profile_str;   // Capabilities and encoder pipeline from GNOME's GConf registry.
 
20
                          // Eg. "audio/x-raw-float,rate=44100,channels=2 ! vorbisenc name=enc quality=0.5 ! oggmux"
 
21
 
 
22
    gchar *file_ext;      // File extension such as "ogg", "flac" or "mp3".
 
23
 
 
24
    gchar *filename;      // Record to this file.
 
25
    gboolean append;      // Append to file?
 
26
 
 
27
} PipelineParms;
 
28
 
 
29
void pipeline_free_parms(PipelineParms *parms);
 
30
 
 
31
GstElement *pipeline_create(PipelineParms *parms, gchar **err_msg);
 
32
GstElement *pipeline_create_VAD(PipelineParms *parms, gchar **err_msg);
14
33
 
15
34
#endif
16
35