205 GST_STATIC_CAPS ("audio/x-raw-int, " "endianness = (int) { " G_STRINGIFY (G_BYTE_ORDER) " }, " "signed = (boolean) TRUE, " "width = (int) 16, " "depth = (int) 16, " "rate = (int) [ 8000, 48000 ]," "channels = (int) [ 1, 2 ]; " |
209 GST_STATIC_CAPS ("audio/x-raw-int, " "endianness = (int) { " G_STRINGIFY (G_BYTE_ORDER) " }, " "signed = (boolean) TRUE, " "width = (int) 16, " "depth = (int) 16, " "rate = (int) [ 8000, 48000 ]," "channels = (int) [ 1, 2 ]; " |
206 "audio/amr, " "rate = (int) 8000, " "channels = (int) 1 ; " |
210 "audio/amr, " "rate = (int) 8000, " "channels = (int) 1 ; " |
207 "audio/AMR, " "rate = (int) 8000, " "channels = (int) 1 ; " |
211 "audio/AMR, " "rate = (int) 8000, " "channels = (int) 1 ; " |
208 "audio/x-alaw, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]; " |
212 "audio/x-alaw, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]; " |
209 "audio/g729, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]; " |
213 "audio/g729, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]; " |
210 "audio/mp3, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]; " |
214 "audio/mpeg, mpegversion = (int) 1, layer = (int) [ 1, 3 ], rate = (int) [ 8000, 48000 ], channels = (int) [ 1, 2 ]; " |
211 "audio/ilbc, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]; " |
215 "audio/ilbc, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]; " |
212 "audio/x-mulaw, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]") |
216 "audio/x-mulaw, " "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]") |
213 ); |
217 ); |
214 |
218 |
215 static GstElementClass *parent_class= NULL; |
219 static GstElementClass *parent_class= NULL; |
332 |
336 |
333 gstelement_class->change_state = GST_DEBUG_FUNCPTR(gst_devsound_sink_change_state); |
337 gstelement_class->change_state = GST_DEBUG_FUNCPTR(gst_devsound_sink_change_state); |
334 |
338 |
335 g_object_class_install_property(gobject_class, PROP_DEVICE, |
339 g_object_class_install_property(gobject_class, PROP_DEVICE, |
336 g_param_spec_string("device", "Device", "Devsound device ", |
340 g_param_spec_string("device", "Device", "Devsound device ", |
337 DEFAULT_DEVICE, G_PARAM_READWRITE)); |
341 DEFAULT_DEVICE, (GParamFlags)G_PARAM_READWRITE)); |
338 |
342 |
339 g_object_class_install_property(gobject_class, VOLUME, |
343 g_object_class_install_property(gobject_class, VOLUME, |
340 g_param_spec_int("volume", "Volume", "Devsound volume", |
344 g_param_spec_int("volume", "Volume", "Devsound volume", |
341 -1, G_MAXINT, -1, G_PARAM_READWRITE)); |
345 -1, G_MAXINT, -1, (GParamFlags)G_PARAM_READWRITE)); |
342 |
346 |
343 g_object_class_install_property(gobject_class, VOLUMERAMP, |
347 g_object_class_install_property(gobject_class, VOLUMERAMP, |
344 g_param_spec_int("volumeramp", "VolumeRamp", "Devsound volume ramp", |
348 g_param_spec_int("volumeramp", "VolumeRamp", "Devsound volume ramp", |
345 -1, G_MAXINT, -1, G_PARAM_READWRITE)); |
349 -1, G_MAXINT, -1, (GParamFlags)G_PARAM_READWRITE)); |
346 |
350 |
347 g_object_class_install_property(gobject_class, MAXVOLUME, |
351 g_object_class_install_property(gobject_class, MAXVOLUME, |
348 g_param_spec_int("maxvolume", "MaxVolume", "Devsound max volume", |
352 g_param_spec_int("maxvolume", "MaxVolume", "Devsound max volume", |
349 -1, G_MAXINT, -1, G_PARAM_READABLE)); |
353 -1, G_MAXINT, -1, G_PARAM_READABLE)); |
350 |
354 |
351 g_object_class_install_property(gobject_class, LEFTBALANCE, |
355 g_object_class_install_property(gobject_class, LEFTBALANCE, |
352 g_param_spec_int("leftbalance", "Left Balance", "Left Balance", |
356 g_param_spec_int("leftbalance", "Left Balance", "Left Balance", |
353 -1, G_MAXINT, -1, G_PARAM_READWRITE)); |
357 -1, G_MAXINT, -1, (GParamFlags)G_PARAM_READWRITE)); |
354 |
358 |
355 g_object_class_install_property(gobject_class, RIGHTBALANCE, |
359 g_object_class_install_property(gobject_class, RIGHTBALANCE, |
356 g_param_spec_int("rightbalance", "Right Balance", "Right Balance", |
360 g_param_spec_int("rightbalance", "Right Balance", "Right Balance", |
357 -1, G_MAXINT, -1, G_PARAM_READWRITE)); |
361 -1, G_MAXINT, -1, (GParamFlags)G_PARAM_READWRITE)); |
358 /* |
362 /* |
359 g_object_class_install_property(gobject_class, SAMPLESPLAYED, |
363 g_object_class_install_property(gobject_class, SAMPLESPLAYED, |
360 g_param_spec_int("samplesplayed", "Samples Played", "Samples Played", |
364 g_param_spec_int("samplesplayed", "Samples Played", "Samples Played", |
361 -1, G_MAXINT, -1, G_PARAM_READABLE)); |
365 -1, G_MAXINT, -1, G_PARAM_READABLE)); |
362 */ |
366 */ |
363 g_object_class_install_property(gobject_class, PRIORITY, |
367 g_object_class_install_property(gobject_class, PRIORITY, |
364 g_param_spec_int("priority", "Priority", "Priority ", -1, |
368 g_param_spec_int("priority", "Priority", "Priority ", -1, |
365 G_MAXINT, -1, |
369 G_MAXINT, -1, |
366 G_PARAM_READWRITE)); |
370 (GParamFlags)G_PARAM_READWRITE)); |
367 |
371 |
368 g_object_class_install_property(gobject_class, PREFERENCE, |
372 g_object_class_install_property(gobject_class, PREFERENCE, |
369 g_param_spec_int("preference", "Preference", "Preference ", -1, |
373 g_param_spec_int("preference", "Preference", "Preference ", -1, |
370 G_MAXINT, -1, |
374 G_MAXINT, -1, |
371 G_PARAM_READWRITE)); |
375 (GParamFlags)G_PARAM_READWRITE)); |
372 /* |
376 /* |
373 g_object_class_install_property(gobject_class, RATE, |
377 g_object_class_install_property(gobject_class, RATE, |
374 g_param_spec_int("rate", "Rate", "Rate ", -1, |
378 g_param_spec_int("rate", "Rate", "Rate ", -1, |
375 G_MAXINT, -1, |
379 G_MAXINT, -1, |
376 G_PARAM_READWRITE)); |
380 G_PARAM_READWRITE)); |