summaryrefslogtreecommitdiffstats
path: root/tests/examples/spectrum/demo-audiotest.c
Commit message (Collapse)AuthorAgeFilesLines
* build: fprintf, sprintf, sscanf need stdio.hStefan Kost2009-10-071-0/+1
|
* Fix example apps by drawing in the main-loop.Stefan Kost2009-01-271-7/+12
|
* tests/examples/spectrum/: Demo how to draw analyzer results synced to the clock.Stefan Kost2008-08-101-14/+53
| | | | | | | Original commit message from CVS: * tests/examples/spectrum/demo-audiotest.c: * tests/examples/spectrum/demo-osssrc.c: Demo how to draw analyzer results synced to the clock.
* Don't use declarations after statements and variable length arrays.Sebastian Dröge2008-07-081-1/+2
| | | | | | | | | | | | | Original commit message from CVS: * ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri): * ext/speex/gstspeexenc.c: (gst_speex_enc_sink_getcaps): * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_set_wp_config): * sys/v4l2/gstv4l2src.c: (gst_v4l2src_fixate): * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format): * tests/examples/equalizer/demo.c: (message_handler): * tests/examples/spectrum/demo-audiotest.c: (message_handler): * tests/examples/spectrum/demo-osssrc.c: (message_handler): Don't use declarations after statements and variable length arrays.
* Fix some compiler warnings.Jan Schmidt2008-05-161-0/+2
| | | | | | | | Original commit message from CVS: * ext/wavpack/gstwavpackstreamreader.c: * tests/examples/spectrum/demo-audiotest.c: * tests/examples/spectrum/demo-osssrc.c: Fix some compiler warnings.
* gst/: Change the meaning of the magnitude values given in theSebastian Dröge2007-11-111-1/+1
| | | | | | | | | | | Original commit message from CVS: * gst/equalizer/demo.c: (draw_spectrum): * gst/spectrum/demo-audiotest.c: (draw_spectrum): * gst/spectrum/demo-osssrc.c: (draw_spectrum): * gst/spectrum/gstspectrum.c: (gst_spectrum_class_init): Change the meaning of the magnitude values given in the GstMessages by spectrum to decibel instead of decibel+threshold.
* gst/spectrum/demo-audiotest.c: Use autoaudiosink instead of alsasink and use ↵Sebastian Dröge2007-11-061-2/+2
| | | | | | | | | | a sine wave. Original commit message from CVS: * gst/spectrum/demo-audiotest.c: (main): Use autoaudiosink instead of alsasink and use a sine wave. * gst/spectrum/gstspectrum.c: Fix the magnitude calculation.
* gst/spectrum/: Handling window resize.Stefan Kost2007-09-181-16/+34
| | | | | | | Original commit message from CVS: * gst/spectrum/demo-audiotest.c: * gst/spectrum/demo-osssrc.c: Handling window resize.
* Port GstSpectrum to GstAudioFilter and libgstfft, add support for int32, ↵Sebastian Dröge2007-09-061-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | float and double, use floats for the message... Original commit message from CVS: * configure.ac: * gst/spectrum/Makefile.am: * gst/spectrum/demo-audiotest.c: (draw_spectrum), (message_handler), (main): * gst/spectrum/demo-osssrc.c: (draw_spectrum), (message_handler): * gst/spectrum/gstspectrum.c: (gst_spectrum_base_init), (gst_spectrum_class_init), (gst_spectrum_init), (gst_spectrum_dispose), (gst_spectrum_set_property), (gst_spectrum_get_property), (gst_spectrum_start), (gst_spectrum_setup), (gst_spectrum_message_new), (gst_spectrum_transform_ip): * gst/spectrum/gstspectrum.h: Port GstSpectrum to GstAudioFilter and libgstfft, add support for int32, float and double, use floats for the message contents, average all FFTs done in one interval for better results, use a better windowing function, allow posting the phase in the message and actually do an FFT with the requested number of bands instead of interpolating. * tests/check/elements/spectrum.c: (GST_START_TEST), (spectrum_suite): Improve the units tests by checking for a 11025Hz sine wave and add unit tests for all 4 supported sample types.
* Add stdlib include (free, atoi, exit).Stefan Kost2007-07-181-0/+1
| | | | | | | | | | | | | | | | Original commit message from CVS: * examples/app/appsrc_ex.c: * examples/switch/switcher.c: * ext/neon/gstneonhttpsrc.c: * ext/timidity/gstwildmidi.c: * ext/x264/gstx264enc.c: * gst/mve/mveaudioenc.c: (mve_compress_audio): * gst/rtpmanager/gstrtpclient.c: * gst/rtpmanager/gstrtpjitterbuffer.c: * gst/spectrum/demo-audiotest.c: * gst/spectrum/demo-osssrc.c: * sys/dvb/gstdvbsrc.c: Add stdlib include (free, atoi, exit).
* gst/spectrum/: Remove two obsolete and confusing comments.Stefan Kost2007-03-051-2/+0
| | | | | | | Original commit message from CVS: * gst/spectrum/demo-audiotest.c: (message_handler): * gst/spectrum/demo-osssrc.c: (message_handler): Remove two obsolete and confusing comments.
* gst/spectrum/: Do not use deprecated gtk functions.Stefan Kost2006-07-151-1/+1
| | | | | | | Original commit message from CVS: * gst/spectrum/demo-audiotest.c: (main): * gst/spectrum/demo-osssrc.c: (main): Do not use deprecated gtk functions.
* gst/spectrum/: port to use message to get results, cleanly exit when closing ↵Stefan Kost2006-06-161-25/+85
| | | | | | | | | | | | | | | | | | | the window Original commit message from CVS: * gst/spectrum/demo-audiotest.c: (on_window_destroy), (draw_spectrum), (message_handler), (main): * gst/spectrum/demo-osssrc.c: (on_window_destroy), (draw_spectrum), (message_handler), (main): port to use message to get results, cleanly exit when closing the window * gst/spectrum/gstspectrum.c: (gst_spectrum_class_init), (gst_spectrum_init), (gst_spectrum_dispose), (gst_spectrum_set_property), (gst_spectrum_get_property), (gst_spectrum_set_caps), (gst_spectrum_start), (gst_spectrum_message_new), (gst_spectrum_transform_ip): * gst/spectrum/gstspectrum.h: port to derive from basetransform and send results via messages (like level element)
* gst/spectrum/: added another exampleStefan Kost2006-05-261-0/+99
Original commit message from CVS: * gst/spectrum/Makefile.am: * gst/spectrum/demo-audiotest.c: (on_frequency_changed), (spectrum_chain), (main): * gst/spectrum/demo-osssrc.c: added another example * sys/v4l2/gstv4l2src.c: fix typo