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}}
- wheremeasurement
is aMembrane.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 |
Caps | Membrane.Caps.Audio.Raw |
Demand unit | :buffers |
Direction | :input |
Mode | :pull |
Name | :input |
:output
Availability | :always |
Bin? | false |
Caps | Membrane.Caps.Audio.Raw |
Direction | :output |
Mode | :pull |
Name | :output |
Link to this section Summary
Functions
Returns pads descriptions for Membrane.Audiometer.Peakmeter
Returns description of options available for this module
Link to this section Types
Struct containing options for Membrane.Audiometer.Peakmeter
Link to this section Functions
membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.Audiometer.Peakmeter
Returns description of options available for this module