audio: improve property description
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 14 Sep 2012 14:06:50 +0000 (16:06 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 14 Sep 2012 14:08:50 +0000 (16:08 +0200)
Improve the description of the latency-time and buffer-time properties in the
audio sink and source.

gst-libs/gst/audio/gstaudiobasesink.c
gst-libs/gst/audio/gstaudiobasesrc.c

index 42ce288..d9c2901 100644 (file)
@@ -208,14 +208,14 @@ gst_audio_base_sink_class_init (GstAudioBaseSinkClass * klass)
 
   g_object_class_install_property (gobject_class, PROP_BUFFER_TIME,
       g_param_spec_int64 ("buffer-time", "Buffer Time",
-          "Size of audio buffer in microseconds", 1,
-          G_MAXINT64, DEFAULT_BUFFER_TIME,
+          "Size of audio buffer in microseconds, this is the minimum "
+          "latency that the sink reports", 1, G_MAXINT64, DEFAULT_BUFFER_TIME,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_LATENCY_TIME,
       g_param_spec_int64 ("latency-time", "Latency Time",
-          "Audio latency in microseconds", 1,
-          G_MAXINT64, DEFAULT_LATENCY_TIME,
+          "The minimum amount of data to write in each iteration in microseconds",
+          1, G_MAXINT64, DEFAULT_LATENCY_TIME,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_PROVIDE_CLOCK,
index d6c956c..3e91bf2 100644 (file)
@@ -165,13 +165,15 @@ gst_audio_base_src_class_init (GstAudioBaseSrcClass * klass)
 
   g_object_class_install_property (gobject_class, PROP_BUFFER_TIME,
       g_param_spec_int64 ("buffer-time", "Buffer Time",
-          "Size of audio buffer in microseconds", 1,
-          G_MAXINT64, DEFAULT_BUFFER_TIME,
+          "Size of audio buffer in microseconds, this is the maximum amount "
+          "of data that is buffered in the device and the maximum latency that "
+          "the source reports", 1, G_MAXINT64, DEFAULT_BUFFER_TIME,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class, PROP_LATENCY_TIME,
       g_param_spec_int64 ("latency-time", "Latency Time",
-          "Audio latency in microseconds", 1,
+          "The minimum amount of data to read in each iteration in microseconds, "
+          "this is the minimum latency that the source reports", 1,
           G_MAXINT64, DEFAULT_LATENCY_TIME,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));