4 #include "mulaw-encode.h"
5 #include "mulaw-decode.h"
15 "width", GST_PROPS_INT(8),
16 "depth", GST_PROPS_INT(8),
17 "signed", GST_PROPS_BOOLEAN(FALSE),
18 "rate", GST_PROPS_INT_RANGE (8000, 192000),
19 "channels", GST_PROPS_INT_RANGE (1, 2),
31 "width", GST_PROPS_INT(16),
32 "depth", GST_PROPS_INT(16),
33 "signed", GST_PROPS_BOOLEAN(TRUE),
34 "endianness", GST_PROPS_INT(G_BYTE_ORDER),
35 "rate", GST_PROPS_INT_RANGE (8000, 192000),
36 "channels", GST_PROPS_INT_RANGE (1, 2),
40 GstPadTemplate *mulawenc_src_template, *mulawenc_sink_template;
41 GstPadTemplate *mulawdec_src_template, *mulawdec_sink_template;
44 plugin_init (GstPlugin *plugin)
46 GstCaps* mulaw_caps, *linear_caps;
48 mulaw_caps = mulaw_factory ();
49 linear_caps = linear_factory ();
51 mulawenc_src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
53 mulawenc_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
56 mulawdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
58 mulawdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
61 if (!gst_element_register (plugin, "mulawenc",
62 GST_RANK_NONE, GST_TYPE_MULAWENC) ||
63 !gst_element_register (plugin, "mulawdec",
64 GST_RANK_PRIMARY, GST_TYPE_MULAWENC))
74 "MuLaw audio conversion routines",