#include <stdlib.h>
#include <resample.h>
+#include <gst/gstplugin.h>
+#include <gst/gstversion.h>
inline double sinc(double x)
{
}
}
+static gboolean
+plugin_init (GModule *module, GstPlugin *plugin)
+{
+ gst_plugin_set_longname (plugin, "Resampling routines for use in audio plugins");
+ return TRUE;
+}
+
+GstPluginDesc plugin_desc = {
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "gstresample",
+ plugin_init
+};
"law", GST_PROPS_INT (0),
"endianness", GST_PROPS_INT (G_BYTE_ORDER),
"signed", GST_PROPS_BOOLEAN (TRUE),
- "width", GST_PROPS_INT_RANGE (8, 16),
- "depth", GST_PROPS_INT_RANGE (8, 16),
+ "width", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
+ "depth", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
"rate", GST_PROPS_INT_RANGE (4000, 48000), /* FIXME */
"channels", GST_PROPS_INT_RANGE (1, 2)
),
"law", GST_PROPS_INT (0),
"endianness", GST_PROPS_INT (G_BYTE_ORDER),
"signed", GST_PROPS_BOOLEAN (TRUE),
- "width", GST_PROPS_INT_RANGE (8, 16),
- "depth", GST_PROPS_INT_RANGE (8, 16),
+ "width", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
+ "depth", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
"rate", GST_PROPS_INT_RANGE (4000, 48000), /* FIXME */
"channels", GST_PROPS_INT_RANGE (1, 2)
),