Membrane.SilenceGenerator (Membrane Generator plugin v0.2.1) View Source

Element responsible for generating silence as raw audio.

Element options

Passed via struct Membrane.SilenceGenerator.t/0

  • caps

    Raw.t()

    Required
    Audio caps of generated samples (Membrane.Caps.Audio.Raw.t/0)

  • duration

    Time.t() | :infinity

    Required
    Duration of the generated silent samples

  • frames_per_buffer

    pos_integer()

    Default value: 2048
    Assumed number of raw audio frames in each buffer. Used when converting demand from buffers into bytes.

Pads

:output

Availability:always
CapsMembrane.Caps.Audio.Raw
Direction:output
Mode:pull
Name:output

Link to this section Summary

Types

t()

Struct containing options for Membrane.SilenceGenerator

Functions

Returns pads descriptions for Membrane.SilenceGenerator

Returns description of options available for this module

Link to this section Types

Specs

t() :: %Membrane.SilenceGenerator{
  caps: Membrane.Caps.Audio.Raw.t(),
  duration: Membrane.Time.t() | :infinity,
  frames_per_buffer: pos_integer()
}

Struct containing options for Membrane.SilenceGenerator

Link to this section Functions

Specs

membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]

Returns pads descriptions for Membrane.SilenceGenerator

Specs

options() :: keyword()

Returns description of options available for this module