4 #include "mulaw-encode.h"
5 #include "mulaw-decode.h"
10 return gst_caps_new_simple ("audio/x-mulaw",
11 "rate", GST_TYPE_INT_RANGE, 8000, 192000,
12 "channels", GST_TYPE_INT_RANGE, 1, 2,
19 return gst_caps_new_simple ("audio/x-raw-int",
20 "width", G_TYPE_INT, 16,
21 "depth", G_TYPE_INT, 16,
22 "endianness", G_TYPE_INT, G_BYTE_ORDER,
23 "signed", G_TYPE_BOOLEAN, TRUE,
24 "rate", GST_TYPE_INT_RANGE, 8000, 192000,
25 "channels", GST_TYPE_INT_RANGE, 1, 2,
29 GstPadTemplate *mulawenc_src_template, *mulawenc_sink_template;
30 GstPadTemplate *mulawdec_src_template, *mulawdec_sink_template;
33 plugin_init (GstPlugin *plugin)
35 GstCaps* mulaw_caps, *linear_caps;
37 mulaw_caps = mulaw_factory ();
38 linear_caps = linear_factory ();
40 mulawenc_src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
42 mulawenc_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
45 mulawdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
47 mulawdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
50 if (!gst_element_register (plugin, "mulawenc",
51 GST_RANK_NONE, GST_TYPE_MULAWENC) ||
52 !gst_element_register (plugin, "mulawdec",
53 GST_RANK_PRIMARY, GST_TYPE_MULAWDEC))
63 "MuLaw audio conversion routines",