gstreamer/gst/level
Benjamin Otte 368d6780c2 gst/level/gstlevel.*: figure out if we're initialized directly instead of keeping a variable that's wrong in 90% of c...
Original commit message from CVS:
* gst/level/gstlevel.c: (gst_level_link), (gst_level_chain),
(gst_level_change_state), (gst_level_init):
* gst/level/gstlevel.h:
figure out if we're initialized directly instead of keeping a
variable that's wrong in 90% of cases
don't initialize pads and then leak them and use a new unitialized
pad. (fixes #142084)
these were bugs so n00bish I didn't find them for an hour :/
2004-05-08 13:03:59 +00:00
..
.gitignore tagging stuff and build fixes. In detail: 2003-11-24 04:08:47 +00:00
demo.c gst-indent 2004-03-14 22:34:33 +00:00
filter.func gcc-2.95 fixage 2003-10-14 10:07:59 +00:00
gstlevel-marshal.list added second example with plotting fixed some aesthetics 2003-09-26 16:45:04 +00:00
gstlevel.c gst/level/gstlevel.*: figure out if we're initialized directly instead of keeping a variable that's wrong in 90% of c... 2004-05-08 13:03:59 +00:00
gstlevel.h gst/level/gstlevel.*: figure out if we're initialized directly instead of keeping a variable that's wrong in 90% of c... 2004-05-08 13:03:59 +00:00
Makefile.am gst/: -marshal.[ch] and -enum.[ch] files should not be disted, -marshal.h files should not be installed, and -enum.h ... 2004-02-27 02:39:18 +00:00
plot.c don't mix tabs and spaces 2004-03-15 19:32:27 +00:00
README added second example with plotting fixed some aesthetics 2003-09-26 16:45:04 +00:00

level plugin by thomas <thomas@apestaart.org>

this plugin signals:
  - running time since last EOS/start
  - channel
  - RMS level
  - peak level
  - decaying peak level
over the given interval.

This is useful for a VU meter display and for plotting out the signal graph.
The VU meter can either display RMS, or display immediate peak level and
have the falloff decaying peak level displayed as a line.

The interval for signal emission, ttl of decay peak, and falloff of decay peak
can all be set.

The element only takes unsigned data in; it could be extended to signed as
well, if separate fast chain functions are made that displaces the incoming
data to its midpoint (ie, 0,65535 should be mapped to -32768, 32767)

There are two demo apps, apps and plot.  apps will create some GTK sliders
to display the volume.  plot will output data readable by gnuplot.

Here is a sample plot script to plot output of the plot command that was
stored to plot.dat

set xlabel "Seconds"
set ylabel "dB"
set yrange [-60:0]
plot 'plot.dat' using 1:2 title 'L RMS' with lines, \
     'plot.dat' using 1:3 title 'L peak' with lines, \
     'plot.dat' using 1:4 title 'L decay' with lines

plot 'plot.dat' using 1:5 title 'R RMS' with lines, \
     'plot.dat' using 1:6 title 'R peak' with lines, \
     'plot.dat' using 1:7 title 'R decay' with lines