Top | ![]() |
![]() |
![]() |
![]() |
Level analyses incoming audio buffers and, if the “message” property is TRUE, generates an element message named
"level"
:
after each interval of time given by the “interval” property. The message's structure contains these fields:
GstClockTime
"timestamp"
:
the timestamp of the buffer that triggered the message.
GstClockTime
"stream-time"
:
the stream time of the buffer.
GstClockTime
"running-time"
:
the running_time of the buffer.
GstClockTime
"duration"
:
the duration of the buffer.
GstClockTime
"endtime"
:
the end time of the buffer that triggered the message as stream time (this
is deprecated, as it can be calculated from stream-time + duration)
GstValueList of gdouble
"peak"
:
the peak power level in dB for each channel
GstValueList of gdouble
"decay"
:
the decaying peak power level in dB for each channel
the decaying peak level follows the peak level, but starts dropping
if no new peak is reached after the time given by
the the time to live.
When the decaying peak level drops, it does so at the decay rate
as specified by the
the peak falloff rate.
GstValueList of gdouble
"rms"
:
the Root Mean Square (or average power) level in dB for each channel
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" parse="text" href="../../../../tests/examples/level/level-example.c" />
plugin |
level |
author |
Thomas Vander Stichele <thomas at apestaart dot org> |
class |
Filter/Analyzer/Audio |
name |
sink |
direction |
sink |
presence |
always |
details |
audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ], endianness=(int)1234, width=(int){ 8, 16, 32 }, depth=(int){ 8, 16, 32 }, signed=(boolean)true |
audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ], endianness=(int)1234, width=(int){ 32, 64 } |
name |
src |
direction |
source |
presence |
always |
details |
audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ], endianness=(int)1234, width=(int){ 8, 16, 32 }, depth=(int){ 8, 16, 32 }, signed=(boolean)true |
audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ], endianness=(int)1234, width=(int){ 32, 64 } |
“interval”
property “interval” guint64
Interval of time between message posts (in nanoseconds).
Flags: Read / Write
Allowed values: >= 1
Default value: 100000000
“message”
property“message” gboolean
Post a level message for each passed interval.
Flags: Read / Write
Default value: TRUE
“peak-falloff”
property“peak-falloff” gdouble
Decay rate of decay peak after TTL (in dB/sec).
Flags: Read / Write
Allowed values: >= 0
Default value: 10