summaryrefslogtreecommitdiffstats
path: root/ext/soundtouch/gstbpmdetect.cc
AgeCommit message (Collapse)AuthorFilesLines
2009-02-22Detect libsoundtouch 1.4 and higher.Jan Schmidt1-4/+12
In libsoundtouch 1.4, libBPM appears to have been subsumed into libSoundTouch, and into the soundtouch namespace.
2009-02-16bpmdetect: Fix accidentally introduced stack overwriting introduced in last ↵Sebastian Dröge1-1/+0
commit
2009-02-16bpmdetect: Save one memory allocation per stereo bufferSebastian Dröge1-5/+6
2009-02-10bpmdetect: Pass at most 2048 samples to SoundTouch's BPMDetectSebastian Dröge1-4/+16
Internally BPMDetect assumes that at most 2048 samples are passed to it at once and stores those in a stack allocated static sized array. If we pass too many samples this will result in a buffer overflow resulting in heavy stack corruption and a crash. Fixes bug #570996.
2008-04-25ext/: Cast NULL sentinels to void * as NULL is defined as an integer ↵Sebastian Dröge1-1/+1
constant in most environments when using C++ and... Original commit message from CVS: * ext/mpeg2enc/gstmpeg2enc.cc: * ext/soundtouch/gstbpmdetect.cc: Cast NULL sentinels to void * as NULL is defined as an integer constant in most environments when using C++ and it's size might be different from a pointer.
2008-01-28ext/soundtouch/gstbpmdetect.cc: Clean up a bit and only allocate a temporary ↵Sebastian Dröge1-11/+20
buffer for the data if processing stereo... Original commit message from CVS: * ext/soundtouch/gstbpmdetect.cc: Clean up a bit and only allocate a temporary buffer for the data if processing stereo data as BPMDetect downmixes from stereo to mono and stores the result in the input data. Thanks to Stefan Kost for the suggestions.
2008-01-27ext/soundtouch/gstbpmdetect.cc: Only consider a BPM value above 1.0 as valid.Sebastian Dröge1-1/+1
Original commit message from CVS: * ext/soundtouch/gstbpmdetect.cc: Only consider a BPM value above 1.0 as valid.
2008-01-27ext/soundtouch/: Add BPM detection plugin based on SoundTouch's libBPM.Sebastian Dröge1-0/+223
Original commit message from CVS: * ext/soundtouch/Makefile.am: * ext/soundtouch/gstbpmdetect.cc: * ext/soundtouch/gstbpmdetect.hh: * ext/soundtouch/plugin.c: (plugin_init): Add BPM detection plugin based on SoundTouch's libBPM. * ext/soundtouch/gstpitch.cc: Allow sample rates until MAX instead of only 48kHz and remove the buffer-frames field from that caps. Clear the remaining samples completely when necessary to get into a clean state again.