audiobasesink: Fix incorrect/missing custom slaving method documentation

https://bugzilla.gnome.org/show_bug.cgi?id=754199
This commit is contained in:
Carlos Rafael Giani 2015-08-27 23:08:51 +02:00 committed by Sebastian Dröge
parent b1f78b5d23
commit c95d809a96
2 changed files with 26 additions and 20 deletions

View file

@ -435,6 +435,8 @@ GST_AUDIO_BASE_SRC_CAST
GstAudioBaseSink GstAudioBaseSink
GstAudioBaseSinkClass GstAudioBaseSinkClass
GstAudioBaseSinkSlaveMethod GstAudioBaseSinkSlaveMethod
GstAudioBaseSinkDiscontReason
GstAudioBaseSinkCustomSlavingCallback
GST_AUDIO_BASE_SINK_CLOCK GST_AUDIO_BASE_SINK_CLOCK
GST_AUDIO_BASE_SINK_PAD GST_AUDIO_BASE_SINK_PAD
@ -449,6 +451,8 @@ gst_audio_base_sink_set_alignment_threshold
gst_audio_base_sink_get_alignment_threshold gst_audio_base_sink_get_alignment_threshold
gst_audio_base_sink_set_discont_wait gst_audio_base_sink_set_discont_wait
gst_audio_base_sink_get_discont_wait gst_audio_base_sink_get_discont_wait
gst_audio_base_sink_set_custom_slaving_callback
gst_audio_base_sink_report_device_failure
<SUBSECTION Standard> <SUBSECTION Standard>
GST_AUDIO_BASE_SINK GST_AUDIO_BASE_SINK
GST_IS_AUDIO_BASE_SINK GST_IS_AUDIO_BASE_SINK

View file

@ -107,12 +107,12 @@ typedef struct _GstAudioBaseSinkPrivate GstAudioBaseSinkPrivate;
/** /**
* GstAudioBaseSinkDiscontReason: * GstAudioBaseSinkDiscontReason:
* GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT: No discontinuity occurred * @GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT: No discontinuity occurred
* GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS: New caps are set, causing renegotiotion * @GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS: New caps are set, causing renegotiotion
* GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH: Samples have been flushed * @GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH: Samples have been flushed
* GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY: Sink was synchronized to the estimated latency (occurs during initialization) * @GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY: Sink was synchronized to the estimated latency (occurs during initialization)
* GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT: Aligning buffers failed because the timestamps are too discontinuous * @GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT: Aligning buffers failed because the timestamps are too discontinuous
* GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE: Audio output device experienced and recovered from an error but introduced latency in the process (see also @gst_audio_base_sink_report_device_failure) * @GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE: Audio output device experienced and recovered from an error but introduced latency in the process (see also @gst_audio_base_sink_report_device_failure())
* *
* Different possible reasons for discontinuities. This enum is useful for the custom * Different possible reasons for discontinuities. This enum is useful for the custom
* slave method. * slave method.
@ -135,25 +135,27 @@ typedef enum
* @etime: external clock time * @etime: external clock time
* @itime: internal clock time * @itime: internal clock time
* @requested_skew: skew amount requested by the callback * @requested_skew: skew amount requested by the callback
* @discont_reason: TRUE if there was a discontinuity in the average skew * @discont_reason: reason for discontinuity (if any)
* @user_data: user data * @user_data: user data
* *
* This function is set with gst_audio_base_sink_set_custom_slaving_callback() * This function is set with gst_audio_base_sink_set_custom_slaving_callback()
* and is called during playback. It receives the current time of external and * and is called during playback. It receives the current time of external and
* internal clocks, which the callback can then use to apply any custom * internal clocks, which the callback can then use to apply any custom
* slaving/synchronization schemes. The external clock is the sink's element clock, * slaving/synchronization schemes.
* the internal one is the internal audio clock. The internal audio clock's *
* calibration is applied to the timestamps before they are passed to the * The external clock is the sink's element clock, the internal one is the
* callback. The difference between etime and itime is the skew; how much * internal audio clock. The internal audio clock's calibration is applied to
* internal and external clock lie apart from each other. A skew of 0 means * the timestamps before they are passed to the callback. The difference between
* both clocks are perfectly in sync. itime > etime means the external clock * etime and itime is the skew; how much internal and external clock lie apart
* is going slower, while itime < etime means it is going faster than the * from each other. A skew of 0 means both clocks are perfectly in sync.
* internal clock. etime and itime are always valid timestamps, except for when * itime > etime means the external clock is going slower, while itime < etime
* discont is set to TRUE. * means it is going faster than the internal clock. etime and itime are always
* requested_skew is an output value the callback can write to. It informs the sink * valid timestamps, except for when a discontinuity happens.
* of whether or not it should move the playout pointer, and if so, by how much. *
* This pointer is only NULL if discont is true; otherwise, it is safe to write * requested_skew is an output value the callback can write to. It informs the
* to *requested_skew. The default skew is 0. * sink of whether or not it should move the playout pointer, and if so, by how
* much. This pointer is only NULL if a discontinuity occurs; otherwise, it is
* safe to write to *requested_skew. The default skew is 0.
* *
* The sink may experience discontinuities. If one happens, discont is TRUE, * The sink may experience discontinuities. If one happens, discont is TRUE,
* itime, etime are set to GST_CLOCK_TIME_NONE, and requested_skew is NULL. * itime, etime are set to GST_CLOCK_TIME_NONE, and requested_skew is NULL.