4 #include "alaw-encode.h"
5 #include "alaw-decode.h"
10 return gst_caps_new_simple ("audio/x-alaw",
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 *alawenc_src_template, *alawenc_sink_template;
30 GstPadTemplate *alawdec_src_template, *alawdec_sink_template;
33 plugin_init (GstPlugin *plugin)
35 GstCaps* alaw_caps, *linear_caps;
37 alaw_caps = alaw_factory ();
38 linear_caps = linear_factory ();
40 alawenc_src_template = gst_pad_template_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,alaw_caps);
41 alawenc_sink_template = gst_pad_template_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,linear_caps);
43 alawdec_src_template = gst_pad_template_new ("src",GST_PAD_SRC,GST_PAD_ALWAYS,linear_caps);
44 alawdec_sink_template = gst_pad_template_new ("sink",GST_PAD_SINK,GST_PAD_ALWAYS,alaw_caps);
46 if (!gst_element_register (plugin, "alawenc",
47 GST_RANK_NONE, GST_TYPE_ALAWENC) ||
48 !gst_element_register (plugin, "alawdec",
49 GST_RANK_PRIMARY, GST_TYPE_ALAWENC))
59 "ALaw audio conversion routines",