190 object_class->set_property = gst_audio_rate_set_property; |
187 object_class->set_property = gst_audio_rate_set_property; |
191 object_class->get_property = gst_audio_rate_get_property; |
188 object_class->get_property = gst_audio_rate_get_property; |
192 |
189 |
193 g_object_class_install_property (object_class, ARG_IN, |
190 g_object_class_install_property (object_class, ARG_IN, |
194 g_param_spec_uint64 ("in", "In", |
191 g_param_spec_uint64 ("in", "In", |
195 "Number of input samples", 0, G_MAXUINT64, 0, G_PARAM_READABLE)); |
192 "Number of input samples", 0, G_MAXUINT64, 0, |
|
193 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
196 g_object_class_install_property (object_class, ARG_OUT, |
194 g_object_class_install_property (object_class, ARG_OUT, |
197 g_param_spec_uint64 ("out", "Out", |
195 g_param_spec_uint64 ("out", "Out", "Number of output samples", 0, |
198 "Number of output samples", 0, G_MAXUINT64, 0, G_PARAM_READABLE)); |
196 G_MAXUINT64, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
199 g_object_class_install_property (object_class, ARG_ADD, |
197 g_object_class_install_property (object_class, ARG_ADD, |
200 g_param_spec_uint64 ("add", "Add", |
198 g_param_spec_uint64 ("add", "Add", "Number of added samples", 0, |
201 "Number of added samples", 0, G_MAXUINT64, 0, G_PARAM_READABLE)); |
199 G_MAXUINT64, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
202 g_object_class_install_property (object_class, ARG_DROP, |
200 g_object_class_install_property (object_class, ARG_DROP, |
203 g_param_spec_uint64 ("drop", "Drop", |
201 g_param_spec_uint64 ("drop", "Drop", "Number of dropped samples", 0, |
204 "Number of dropped samples", 0, G_MAXUINT64, 0, G_PARAM_READABLE)); |
202 G_MAXUINT64, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
205 g_object_class_install_property (object_class, ARG_SILENT, |
203 g_object_class_install_property (object_class, ARG_SILENT, |
206 g_param_spec_boolean ("silent", "silent", |
204 g_param_spec_boolean ("silent", "silent", |
207 "Don't emit notify for dropped and duplicated frames", |
205 "Don't emit notify for dropped and duplicated frames", DEFAULT_SILENT, |
208 DEFAULT_SILENT, G_PARAM_READWRITE)); |
206 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); |
209 |
207 |
210 element_class->change_state = gst_audio_rate_change_state; |
208 element_class->change_state = gst_audio_rate_change_state; |
211 } |
209 } |
212 |
210 |
213 static void |
211 static void |