enum
{
- ARG_0,
- ARG_ACTIVE,
- ARG_STEREO
+ PROP_0,
+ PROP_ACTIVE,
+ PROP_STEREO
};
static void gst_stereo_set_property (GObject * object, guint prop_id,
gobject_class->set_property = gst_stereo_set_property;
gobject_class->get_property = gst_stereo_get_property;
- g_object_class_install_property (gobject_class, ARG_ACTIVE,
+ g_object_class_install_property (gobject_class, PROP_ACTIVE,
g_param_spec_boolean ("active", "active", "active",
TRUE,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (gobject_class, ARG_STEREO,
+ g_object_class_install_property (gobject_class, PROP_STEREO,
g_param_spec_float ("stereo", "stereo", "stereo",
0.0, 1.0, 0.1,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS));
GstStereo *stereo = GST_STEREO (object);
switch (prop_id) {
- case ARG_ACTIVE:
+ case PROP_ACTIVE:
stereo->active = g_value_get_boolean (value);
break;
- case ARG_STEREO:
+ case PROP_STEREO:
stereo->stereo = g_value_get_float (value) * 10.0;
break;
default:
GstStereo *stereo = GST_STEREO (object);
switch (prop_id) {
- case ARG_ACTIVE:
+ case PROP_ACTIVE:
g_value_set_boolean (value, stereo->active);
break;
- case ARG_STEREO:
+ case PROP_STEREO:
g_value_set_float (value, stereo->stereo / 10.0);
break;
default: