~ubuntu-branches/ubuntu/trusty/lmms/trusty

« back to all changes in this revision

Viewing changes to plugins/ladspa_effect/swh/util/buffer.h

  • Committer: Charlie Smotherman
  • Date: 2012-12-05 22:08:38 UTC
  • mfrom: (33.1.7 lmms_0.4.13)
  • Revision ID: cjsmo@cableone.net-20121205220838-09pjfzew9m5023hr
* New  Upstream release.
  - Minor tweaking to ZynAddSubFX, CALF, SWH plugins  and Stefan Fendt's RC
    filters.
  - Added UI fixes: Magnentic effect of knobs and Piano-roll fixes
  - Updated German localization and copyright year
* debian/lmms-common.install:
  - added /usr/share/applications so the lmms.desktop file will correctly
    install (LP: #863366)
  - This should also fix the Software Center not displaying lmms in sound
    and video (LP: #824231)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _BUFFER_H
 
2
#define _BUFFER_H
 
3
 
 
4
/* substract buffer b from a, save in c
 
5
 *
 
6
 * this could be sped up by vector operations
 
7
 */
 
8
 
 
9
static inline void buffer_sub(const float* a, const float *b, const float *c, int cnt) {
 
10
        int i;
 
11
        float *h;
 
12
        h = c;
 
13
        for(i=0;i<cnt;++i)
 
14
                *h++ = *a++ - *b++;
 
15
}
 
16
 
 
17
#endif