mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
audiobasesrc: Add FIXME for times in NSECONDS
Timebase is in nanoseconds pretty much everywhere else
This commit is contained in:
parent
c24a1254c9
commit
6b17d86692
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,7 @@ enum
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* FIXME: 2.0, handle BUFFER_TIME and LATENCY in nanoseconds */
|
||||||
#define DEFAULT_BUFFER_TIME ((200 * GST_MSECOND) / GST_USECOND)
|
#define DEFAULT_BUFFER_TIME ((200 * GST_MSECOND) / GST_USECOND)
|
||||||
#define DEFAULT_LATENCY_TIME ((10 * GST_MSECOND) / GST_USECOND)
|
#define DEFAULT_LATENCY_TIME ((10 * GST_MSECOND) / GST_USECOND)
|
||||||
#define DEFAULT_ACTUAL_BUFFER_TIME -1
|
#define DEFAULT_ACTUAL_BUFFER_TIME -1
|
||||||
|
@ -165,6 +166,7 @@ gst_audio_base_src_class_init (GstAudioBaseSrcClass * klass)
|
||||||
gobject_class->get_property = gst_audio_base_src_get_property;
|
gobject_class->get_property = gst_audio_base_src_get_property;
|
||||||
gobject_class->dispose = gst_audio_base_src_dispose;
|
gobject_class->dispose = gst_audio_base_src_dispose;
|
||||||
|
|
||||||
|
/* FIXME: 2.0, handle BUFFER_TIME and LATENCY in nanoseconds */
|
||||||
g_object_class_install_property (gobject_class, PROP_BUFFER_TIME,
|
g_object_class_install_property (gobject_class, PROP_BUFFER_TIME,
|
||||||
g_param_spec_int64 ("buffer-time", "Buffer Time",
|
g_param_spec_int64 ("buffer-time", "Buffer Time",
|
||||||
"Size of audio buffer in microseconds, this is the maximum amount "
|
"Size of audio buffer in microseconds, this is the maximum amount "
|
||||||
|
|
Loading…
Reference in a new issue