Skip to content

Conversation

@FelonEkonom
Copy link
Member

Closes #871

@FelonEkonom FelonEkonom self-assigned this Dec 18, 2024
@FelonEkonom FelonEkonom changed the title Incorporate Funnel and Tee Incorporate Funnel, Tee and Fake.Sink Dec 18, 2024
Comment on lines 3 to 5
Element that can be used for collecting data from multiple inputs and sending it through one
output. When a new input connects in the `:playing` state, the funnel sends
`#{inspect(__MODULE__)}.NewInputEvent` via output.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Element that can be used for collecting data from multiple inputs and sending it through one
output. When a new input connects in the `:playing` state, the funnel sends
`#{inspect(__MODULE__)}.NewInputEvent` via output.
Element that can be used for collecting data from multiple inputs and sending it through one
output.
When a new input connects in the `:playing` state, the funnel sends
`#{inspect(__MODULE__)}.NewInputEvent` via output.


It has one input pad `:input` and 2 output pads:
* `:output` - is a dynamic pad which is always available and works in pull mode
* `:output_copy` - is a dynamic pad that can be linked to any number of elements (including 0) and works
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While copy made (a bit of) sense along with the master pad, now it doesn't IMO. Maybe push_output?

@@ -0,0 +1,12 @@
defmodule Membrane.Fake.Sink do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about

Suggested change
defmodule Membrane.Fake.Sink do
defmodule Membrane.FakeSink do

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In analogical places in core (Testing.Sink, Debug.Filter) we use dots

@FelonEkonom FelonEkonom merged commit 5d6d7e7 into master Dec 23, 2024
5 of 6 checks passed
@FelonEkonom FelonEkonom deleted the incorporate-funnel branch December 23, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorporate ForwardingFilter, Tee, Funnel and Fake Sink into membrane_core

3 participants