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

Element responsible for generating silence as raw audio.

element-options

Element options

Passed via struct Membrane.SilenceGenerator.t/0

  • caps

    RawAudio.t()

    Required
    Audio caps of generated samples (t:Membrane.Caps.Audio.RawAudio.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

Pads

output

:output

Availability :always
Caps Membrane.RawAudio
Demand mode :manual
Demand unit :buffers
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

@type t() :: %Membrane.SilenceGenerator{
  caps: Membrane.RawAudio.t(),
  duration: Membrane.Time.t() | :infinity,
  frames_per_buffer: pos_integer()
}

Struct containing options for Membrane.SilenceGenerator

Link to this section Functions

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

Returns pads descriptions for Membrane.SilenceGenerator

@spec options() :: keyword()

Returns description of options available for this module