4 #include "alaw-encode.h"
5 #include "alaw-decode.h"
15 "rate", GST_PROPS_INT_RANGE (8000, 192000),
16 "channels", GST_PROPS_INT_RANGE (1, 2),
28 "width", GST_PROPS_INT(16),
29 "depth", GST_PROPS_INT(16),
30 "endianness", GST_PROPS_INT(G_BYTE_ORDER),
31 "signed", GST_PROPS_BOOLEAN(TRUE),
32 "rate", GST_PROPS_INT_RANGE (8000, 192000),
33 "channels", GST_PROPS_INT_RANGE (1, 2),
37 GstPadTemplate *alawenc_src_template, *alawenc_sink_template;
38 GstPadTemplate *alawdec_src_template, *alawdec_sink_template;
41 plugin_init (GstPlugin *plugin)
43 GstCaps* alaw_caps, *linear_caps;
45 alaw_caps = alaw_factory ();
46 linear_caps = linear_factory ();
48 alawenc_src_template = gst_pad_template_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,alaw_caps, NULL);
49 alawenc_sink_template = gst_pad_template_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,linear_caps, NULL);
51 alawdec_src_template = gst_pad_template_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,linear_caps, NULL);
52 alawdec_sink_template = gst_pad_template_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,alaw_caps, NULL);
54 if (!gst_element_register (plugin, "alawenc",
55 GST_RANK_NONE, GST_TYPE_ALAWENC) ||
56 !gst_element_register (plugin, "alawdec",
57 GST_RANK_PRIMARY, GST_TYPE_ALAWENC))
67 "ALaw audio conversion routines",