Membrane Audiometer plugin v0.3.0 Membrane.Audiometer.Peakmeter View Source

This element computes peaks in each channel of the given signal at regular time intervals, regardless if it receives data or not.

It uses erlang’s :timer.send_interval/2 which might not provide perfect accuracy.

It accepts data of any format specified in Membrane.Caps.Audio.Raw module.

It will periodically emit notifications, of the following format:

  • {:audiometer, :underrun} - if there were not enough data to compute audio level within given interval,
  • {:audiometer, {:measurement, measurement}} - where measurement is a Membrane.Audiometer.Peakmeter.Notification.Measurement struct containing computed audio levels. See its documentation for more details about the actual value format.

See options/0 for available options.

Element options

Passed via struct Membrane.Audiometer.Peakmeter.t/0

  • interval

    Default value: 50000000

    How often peakmeter should emit messages containing sound level (in Membrane.Time units).

Pads

:input

Availability:always
Bin?false
CapsMembrane.Caps.Audio.Raw
Demand unit:buffers
Direction:input
Mode:pull
Name:input

:output

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

Link to this section Summary

Types

t()

Struct containing options for Membrane.Audiometer.Peakmeter

Functions

Returns pads descriptions for Membrane.Audiometer.Peakmeter

Returns description of options available for this module

Link to this section Types

Link to this type amplitude_t() View Source
amplitude_t() :: [number() | :infinity | :clip]
Link to this type t() View Source
t() :: %Membrane.Audiometer.Peakmeter{interval: any()}

Struct containing options for Membrane.Audiometer.Peakmeter

Link to this section Functions

Returns pads descriptions for Membrane.Audiometer.Peakmeter

Returns description of options available for this module