Membrane Core v0.2.2 Membrane.Testing.Source View Source
Testing Element for supplying data based on generator function passed through options.
Link to this section Summary
Types
Struct containing options for Membrane.Testing.Source
Functions
Returns pads specification for Membrane.Testing.Source
Returns description of options available for this module
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Membrane.Testing.Source{
actions_generator:
(non_neg_integer(), non_neg_integer() -> [Membrane.Action.t()])
}
t() :: %Membrane.Testing.Source{ actions_generator: (non_neg_integer(), non_neg_integer() -> [Membrane.Action.t()]) }
Struct containing options for Membrane.Testing.Source
actions_generator
- Function invoked each timehandle_demand
is invoked. It is an action generator that takes two arguments. First argument is counter which is incremented by 1 every call and second argument represents size of demand.Defaults to
&Membrane.Testing.Source.default_buf_gen/2
Link to this section Functions
Link to this function
default_buf_gen(cnt, size) View Source
Link to this function
membrane_pads() View Source
Returns pads specification for Membrane.Testing.Source
They are the following:
Pad
:output
- availability:
:always
- caps:
:any
- direction:
:output
- mode:
:pull
- availability:
Link to this function
options()
View Source
options()
View Source
options() :: keyword()
options() :: keyword()
Returns description of options available for this module