Class: GstAudio::AudioBaseSink

Inherits:
GstBase::BaseSink show all
Defined in:
(unknown)

Overview

Gst::AudioBaseSink class. Override the vmethod to implement functionality.

Direct Known Subclasses

AudioSink

Instance Method Summary collapse

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_thresholdInteger

Returns alignment-threshold.

Returns:

  • (Integer)

    alignment-threshold

#alignment_threshold=(alignment_threshold) ⇒ Integer

Parameters:

  • alignment_threshold (Integer)

Returns:

  • (Integer)

    alignment-threshold

  • (Integer)

    alignment-threshold

#buffer_timeInteger

Returns buffer-time.

Returns:

  • (Integer)

    buffer-time

#buffer_time=(buffer_time) ⇒ Integer

Parameters:

  • buffer_time (Integer)

Returns:

  • (Integer)

    buffer-time

  • (Integer)

    buffer-time

#can_activate_pull=(can_activate_pull) ⇒ Boolean

Parameters:

  • can_activate_pull (Boolean)

Returns:

  • (Boolean)

    can-activate-pull

  • (Boolean)

    can-activate-pull

#can_activate_pull?Boolean

Returns can-activate-pull.

Returns:

  • (Boolean)

    can-activate-pull

#create_ringbufferGstAudio::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()).

Returns:

#discont_waitInteger

A window of time in nanoseconds to wait before creating a discontinuity as a result of breaching the drift-tolerance.

Returns:

  • (Integer)

    discont-wait

#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.

Parameters:

  • discont_wait (Integer)

Returns:

  • (Integer)

    discont-wait

  • (Integer)

    discont-wait

#drift_toleranceInteger

Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.

Returns:

  • (Integer)

    drift-tolerance

#drift_tolerance=(drift_tolerance) ⇒ Integer

Controls the amount of time in microseconds that clocks are allowed to drift before resynchronisation happens.

Parameters:

  • drift_tolerance (Integer)

Returns:

  • (Integer)

    drift-tolerance

  • (Integer)

    drift-tolerance

#latency_timeInteger

Returns latency-time.

Returns:

  • (Integer)

    latency-time

#latency_time=(latency_time) ⇒ Integer

Parameters:

  • latency_time (Integer)

Returns:

  • (Integer)

    latency-time

  • (Integer)

    latency-time

#provide_clockBoolean

Queries whether sink will provide a clock or not. See also gst_audio_base_sink_set_provide_clock.

Returns:

  • (Boolean)

    true if sink will provide a clock.

#provide_clock=(provide_clock) ⇒ Boolean

Parameters:

  • provide_clock (Boolean)

Returns:

  • (Boolean)

    provide-clock

  • (Boolean)

    provide-clock

#provide_clock?Boolean

Returns provide-clock.

Returns:

  • (Boolean)

    provide-clock

#report_device_failurenil

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.

Returns:

  • (nil)

#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.

Parameters:

  • callback (GstAudio::AudioBaseSinkCustomSlavingCallback)

    a Gst::AudioBaseSinkCustomSlavingCallback

  • user_data (GObject)

    user data passed to the callback

  • notify (GLib::DestroyNotify)

    called when user_data becomes unused

Returns:

  • (nil)

#slave_methodGstAudio::AudioBaseSinkSlaveMethod

Returns slave-method.

Returns:

#slave_method=(slave_method) ⇒ GstAudio::AudioBaseSinkSlaveMethod

Parameters:

Returns: