Files
lmms/plugins/ladspa_effect/swh/util/buffer.h
Tobias Doerffel 76a4d88fe4 Added missing plugins from the SWH LADSPA plugin collection
Once I added the SWH LADSPA plugins I just added a small selection of
them in order to improve clarity. However lots of projects use SWH
LADSPA plugins that are not shipped with LMMS and thus can't be
played properly e.g. on Windows. Fix this by adding missing plugins
(except the analog and FM oscillators).
2011-07-02 12:47:49 +02:00

18 lines
299 B
C

#ifndef _BUFFER_H
#define _BUFFER_H
/* substract buffer b from a, save in c
*
* this could be sped up by vector operations
*/
static inline void buffer_sub(const float* a, const float *b, const float *c, int cnt) {
int i;
float *h;
h = c;
for(i=0;i<cnt;++i)
*h++ = *a++ - *b++;
}
#endif