BaseSink
Object Hierarchy:
Description:
[ CCode ( type_id = "gst_audio_base_sink_get_type ()" ) ]
[ GIR ( name = "AudioBaseSink" ) ]
public class BaseSink : Sink
[ GIR ( name = "AudioBaseSink" ) ]
public class BaseSink : Sink
This is the base class for audio sinks.
Subclasses need to implement the ::create_ringbuffer
vmethod. This base class will then take care of writing samples to the
ringbuffer, synchronisation, clipping and flushing.
All known sub-classes:
Namespace: Gst.Audio
Package: gstreamer-audio-1.0
Content:
Properties:
- public uint64 alignment_threshold { get; set; }
- public int64 buffer_time { get; set; }
- public bool can_activate_pull { get; set; }
- public uint64 discont_wait { get; set; }
A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.
- public int64 drift_tolerance { get; set; }
Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
- public int64 latency_time { get; set; }
- public bool provide_clock { get; set; }
- public BaseSinkSlaveMethod slave_method { get; set; }
Creation methods:
- protected BaseSink ()
Methods:
- public virtual unowned RingBuffer? create_ringbuffer ()
Create and return the RingBuffer for this.
- public ClockTime get_alignment_threshold ()
Get the current alignment threshold, in nanoseconds, used by this.
- public ClockTime get_discont_wait ()
Get the current discont wait, in nanoseconds, used by this.
- public int64 get_drift_tolerance ()
Get the current drift tolerance, in microseconds, used by this.
- public bool get_provide_clock ()
Queries whether this will provide a clock or not.
- public BaseSinkSlaveMethod get_slave_method ()
Get the current slave method used by this.
- public virtual Buffer payload (Buffer buffer)
- public void report_device_failure ()
Informs this base class that the audio output device has failed for some reason, causing a discontinuity (for example, because the device recovered from the error, but lost all contents of its ring buffer).
- public void set_alignment_threshold (ClockTime alignment_threshold)
Controls the sink's alignment threshold.
- public void set_custom_slaving_callback (owned BaseSinkCustomSlavingCallback callback)
Sets the custom slaving callback.
- public void set_discont_wait (ClockTime discont_wait)
Controls how long the sink will wait before creating a discontinuity.
- public void set_drift_tolerance (int64 drift_tolerance)
Controls the sink's drift tolerance.
- public void set_provide_clock (bool provide)
Controls whether this will provide a clock or not.
- public void set_slave_method (BaseSinkSlaveMethod method)
Controls how clock slaving will be performed in this.
Fields:
- public bool eos_rendering
- public uint64 next_sample
- public Clock provided_clock
- public unowned RingBuffer ringbuffer
Inherited Members:
All known members inherited from class Gst.Base.Sink
- @async
- @unlock
- activate_pull
- blocksize
- can_activate_pull
- can_activate_push
- do_preroll
- enable_last_sample
- eos
- event
- fixate
- get_blocksize
- get_caps
- get_drop_out_of_segment
- get_last_sample
- get_latency
- get_max_bitrate
- get_max_lateness
- get_processing_deadline
- get_render_delay
- get_stats
- get_sync
- get_throttle_time
- get_times
- get_ts_offset
- have_newsegment
- have_preroll
- is_async_enabled
- is_last_sample_enabled
- is_qos_enabled
- last_sample
- max_bitrate
- max_lateness
- need_preroll
- offset
- pad_mode
- playing_async
- prepare
- prepare_list
- preroll
- preroll_cond
- preroll_lock
- processing_deadline
- propose_allocation
- qos
- query
- query_latency
- render
- render_delay
- render_list
- segment
- set_async_enabled
- set_blocksize
- set_caps
- set_drop_out_of_segment
- set_last_sample_enabled
- set_max_bitrate
- set_max_lateness
- set_processing_deadline
- set_qos_enabled
- set_render_delay
- set_sync
- set_throttle_time
- set_ts_offset
- sinkpad
- start
- stats
- stop
- sync
- throttle_time
- ts_offset
- unlock_stop
- wait
- wait_clock
- wait_event
- wait_preroll
All known members inherited from class Gst.Element
- abort_state
- add_metadata
- add_pad
- add_pad_template
- add_property_deep_notify_watch
- add_property_notify_watch
- add_static_metadata
- add_static_pad_template
- add_static_pad_template_with_gtype
- base_time
- bus
- call_async
- change_state
- class_get_metadata
- class_get_pad_template
- class_get_pad_template_list
- clock
- contexts
- continue_state
- create_all_pads
- current_state
- decorate_stream_id
- decorate_stream_id_printf_valist
- foreach_pad
- foreach_sink_pad
- foreach_src_pad
- get_base_time
- get_bus
- get_clock
- get_compatible_pad
- get_compatible_pad_template
- get_context
- get_context_unlocked
- get_contexts
- get_current_clock_time
- get_current_running_time
- get_factory
- get_metadata
- get_pad_template
- get_pad_template_list
- get_request_pad
- get_start_time
- get_state
- get_static_pad
- is_locked_state
- iterate_pads
- iterate_sink_pads
- iterate_src_pads
- last_return
- link
- link_filtered
- link_many
- link_pads
- link_pads_filtered
- lost_state
- make_from_uri
- message_full
- message_full_with_details
- next_state
- no_more_pads
- numpads
- numsinkpads
- numsrcpads
- pad_added
- pad_removed
- pads
- pads_cookie
- pending_state
- post_message
- provide_clock
- query
- query_convert
- query_duration
- query_position
- register
- release_pad
- release_request_pad
- remove_pad
- remove_property_notify_watch
- request_pad
- request_pad_simple
- seek
- seek_simple
- send_event
- set_base_time
- set_bus
- set_clock
- set_context
- set_locked_state
- set_metadata
- set_start_time
- set_state
- set_static_metadata
- sinkpads
- srcpads
- start_time
- state_change_return_get_name
- state_changed
- state_cond
- state_cookie
- state_get_name
- state_lock
- sync_state_with_parent
- target_state
- type_set_skip_documentation
- unlink
- unlink_many
- unlink_pads
All known members inherited from class Gst.Object
All known members inherited from class GLib.Object