Class: GstAudio::AudioBaseSink
- Inherits:
-
GstBase::BaseSink
- Object
- GObject::InitiallyUnowned
- Gst::Object
- Gst::Element
- GstBase::BaseSink
- GstAudio::AudioBaseSink
- Defined in:
- (unknown)
Overview
Gst::AudioBaseSink class. Override the vmethod to implement functionality.
Direct Known Subclasses
Instance Method Summary collapse
-
#alignment_threshold ⇒ Integer
Alignment-threshold.
- #alignment_threshold=(alignment_threshold) ⇒ Integer
-
#buffer_time ⇒ Integer
Buffer-time.
- #buffer_time=(buffer_time) ⇒ Integer
- #can_activate_pull=(can_activate_pull) ⇒ Boolean
-
#can_activate_pull? ⇒ Boolean
Can-activate-pull.
-
#create_ringbuffer ⇒ GstAudio::AudioRingBuffer
Create and return the Gst::AudioRingBuffer for sink.
-
#discont_wait ⇒ Integer
A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.
-
#discont_wait=(discont_wait) ⇒ Integer
A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.
-
#drift_tolerance ⇒ Integer
Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
-
#drift_tolerance=(drift_tolerance) ⇒ Integer
Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
-
#latency_time ⇒ Integer
Latency-time.
- #latency_time=(latency_time) ⇒ Integer
-
#provide_clock ⇒ Boolean
Queries whether sink will provide a clock or not.
- #provide_clock=(provide_clock) ⇒ Boolean
-
#provide_clock? ⇒ Boolean
Provide-clock.
-
#report_device_failure ⇒ nil
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).
-
#set_custom_slaving_callback(callback, user_data, notify) ⇒ nil
Sets the custom slaving callback.
-
#slave_method ⇒ GstAudio::AudioBaseSinkSlaveMethod
Slave-method.
- #slave_method=(slave_method) ⇒ GstAudio::AudioBaseSinkSlaveMethod
Methods inherited from GstBase::BaseSink
#async=, #async?, #async_enabled=, #blocksize, #blocksize=, #do_preroll, #drop_out_of_segment, #drop_out_of_segment=, #enable_last_sample=, #enable_last_sample?, #is_async_enabled, #is_last_sample_enabled, #is_qos_enabled, #last_sample, #last_sample=, #last_sample_enabled=, #latency, #max_bitrate, #max_bitrate=, #max_lateness, #max_lateness=, #processing_deadline, #processing_deadline=, #qos=, #qos?, #qos_enabled=, #query_latency, #render_delay, #render_delay=, #stats, #stats=, #sync, #sync=, #sync?, #throttle_time, #throttle_time=, #ts_offset, #ts_offset=, #wait, #wait_clock, #wait_preroll
Methods inherited from 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, #base_time=, #bus, #bus=, #call_async, #change_state, #clock, #clock=, #context=, #contexts, #continue_state, #create_all_pads, #current_clock_time, #current_running_time, #decorate_stream_id, #decorate_stream_id_printf, #decorate_stream_id_printf_valist, #factory, #flags, #flags_raw, #foreach_pad, #foreach_sink_pad, #foreach_src_pad, #get_compatible_pad, #get_compatible_pad_template, #get_context, #get_context_unlocked, #get_metadata, #get_pad_template, #get_request_pad, #get_state, #get_static_pad, #is_locked_state, #iterate_pads, #iterate_sink_pads, #iterate_src_pads, #link_elements, #link_filtered, #link_many, #link_pads, #link_pads_filtered, #link_pads_full, #locked_state=, #lost_state, make_from_uri, #message_full, #message_full_with_details, #no_more_pads, #pad_template_list, #pause, #play, #post_message, #query, #query_convert, #query_duration, #query_position, #ready, register, #release_request_pad, #remove_pad, #remove_property_notify_watch, #request_pad, #request_pad_simple, #seek, #seek_simple, #send_event, #set_metadata, #set_static_metadata, #start_time, #start_time=, #state=, state_change_return_get_name, state_get_name, #stop, #sync_state_with_parent, type_set_skip_documentation, #unlink, #unlink_many, #unlink_pads
Methods inherited from Gst::Object
#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref
Instance Method Details
#alignment_threshold ⇒ Integer
Returns alignment-threshold.
#alignment_threshold=(alignment_threshold) ⇒ Integer
#buffer_time ⇒ Integer
Returns buffer-time.
#buffer_time=(buffer_time) ⇒ Integer
#can_activate_pull=(can_activate_pull) ⇒ Boolean
#can_activate_pull? ⇒ Boolean
Returns can-activate-pull.
#create_ringbuffer ⇒ GstAudio::AudioRingBuffer
Create and return the Gst::AudioRingBuffer for sink. This function will call the ::create_ringbuffer vmethod and will set sink as the parent of the returned buffer (see gst_object_set_parent()).
#discont_wait ⇒ Integer
A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.
#discont_wait=(discont_wait) ⇒ Integer
A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.
#drift_tolerance ⇒ Integer
Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
#drift_tolerance=(drift_tolerance) ⇒ Integer
Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.
#latency_time ⇒ Integer
Returns latency-time.
#latency_time=(latency_time) ⇒ Integer
#provide_clock ⇒ Boolean
Queries whether sink will provide a clock or not. See also gst_audio_base_sink_set_provide_clock.
#provide_clock=(provide_clock) ⇒ Boolean
#provide_clock? ⇒ Boolean
Returns provide-clock.
#report_device_failure ⇒ nil
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). This function is typically called by derived classes, and is useful for the custom slave method.
#set_custom_slaving_callback(callback, user_data, notify) ⇒ nil
Sets the custom slaving callback. This callback will be invoked if the slave-method property is set to GST_AUDIO_BASE_SINK_SLAVE_CUSTOM and the audio sink receives and plays samples.
Setting the callback to NULL causes the sink to behave as if the GST_AUDIO_BASE_SINK_SLAVE_NONE method were used.
#slave_method ⇒ GstAudio::AudioBaseSinkSlaveMethod
Returns slave-method.