class

Pipewire::Stream

Inherits Pipewire::EventListener < Pipewire::Base < Reference < Object

Constants

EVENT_LISTENER_VERSION = LibPipewire::VERSION_STREAM_EVENTS

Constructors

new(main_loop : MainLoop, name, properties, stream_events, userdata = nil)
Source
new(loop : Pointer(LibPipewire::Loop), name, properties : Hash, stream_events, user_data)
Source
new(core : Core, name, properties)
Source

Instance methods

connect(params : Array(Pipewire::SPA::Pod), direction : Pipewire::LibPipewire::Direction, target : UInt32 = LibPipewire::ID_ANY, flags : Flag = :none)
Source
dequeue_buffer
Source
on_add_buffer

Registers the block as a new handler for the event add_buffer.

A reference to the returned instance of EventListenerAddBuffer is held by self, until EventListenerAddBuffer#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerAddBuffer also holds a reference to self.

Source
on_command

Registers the block as a new handler for the event command.

A reference to the returned instance of EventListenerCommand is held by self, until EventListenerCommand#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerCommand also holds a reference to self.

Source
on_control_info

Registers the block as a new handler for the event control_info.

A reference to the returned instance of EventListenerControlInfo is held by self, until EventListenerControlInfo#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerControlInfo also holds a reference to self.

Source
on_destroy

Registers the block as a new handler for the event destroy.

A reference to the returned instance of EventListenerDestroy is held by self, until EventListenerDestroy#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerDestroy also holds a reference to self.

Source
on_drained

Registers the block as a new handler for the event drained.

A reference to the returned instance of EventListenerDrained is held by self, until EventListenerDrained#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerDrained also holds a reference to self.

Source
on_io_changed

Registers the block as a new handler for the event io_changed.

A reference to the returned instance of EventListenerIoChanged is held by self, until EventListenerIoChanged#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerIoChanged also holds a reference to self.

Source
on_param_changed

Registers the block as a new handler for the event param_changed.

A reference to the returned instance of EventListenerParamChanged is held by self, until EventListenerParamChanged#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerParamChanged also holds a reference to self.

Source
on_process

Registers the block as a new handler for the event process.

A reference to the returned instance of EventListenerProcess is held by self, until EventListenerProcess#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerProcess also holds a reference to self.

Source
on_remove_buffer

Registers the block as a new handler for the event remove_buffer.

A reference to the returned instance of EventListenerRemoveBuffer is held by self, until EventListenerRemoveBuffer#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerRemoveBuffer also holds a reference to self.

Source
on_state_changed

Registers the block as a new handler for the event state_changed.

A reference to the returned instance of EventListenerStateChanged is held by self, until EventListenerStateChanged#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerStateChanged also holds a reference to self.

Source
on_trigger_done

Registers the block as a new handler for the event trigger_done.

A reference to the returned instance of EventListenerTriggerDone is held by self, until EventListenerTriggerDone#remove is called. This prevents the garbage collector from collecting the event handler. The instance of EventListenerTriggerDone also holds a reference to self.

Source
queue_buffer(buffer)
Source
remove_event_listeners

Removes each event handler registered on this instance.

Source

Nested types