aboutsummaryrefslogtreecommitdiffstats
path: root/src/masher_4310.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
commit2532a87bd1c1d2731b72f6c50e17249c62c25691 (patch)
treeb2d5b1ca9f42ff5d21d15b2c6e009c3c9ff968f9 /src/masher_4310.c
parent69c44871c2b64329956f090d37dd14495059f6db (diff)
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/omins@1999 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/masher_4310.c')
-rw-r--r--src/masher_4310.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/masher_4310.c b/src/masher_4310.c
index 1c5c933..374b43d 100644
--- a/src/masher_4310.c
+++ b/src/masher_4310.c
@@ -63,7 +63,7 @@ typedef struct {
LADSPA_Data *grain_pitch;
LADSPA_Data *density;
LADSPA_Data *output;
-
+
Sample grain_store[GRAINSTORE_SIZE];
GrainDesc overlaps[OVERLAPS_SIZE];
size_t overlaps_size;
@@ -93,7 +93,7 @@ masher_activate(LADSPA_Handle instance)
{
Masher *plugin = (Masher*)instance;
int i = 0;
-
+
plugin->overlaps_size = 0;
plugin->write_grain = 0;
@@ -147,17 +147,17 @@ void
masher_run(LADSPA_Handle instance, unsigned long nframes)
{
Masher* plugin = (Masher*)instance;
-
+
static const int randomness = 1.0; // FIXME: make a control port
int read_grain = 0; // FIXME: what is this?
int grain_store_size = 100; // FIXME: what is this? (max 1000)
const LADSPA_Data grain_pitch = *plugin->grain_pitch;
const LADSPA_Data density = *plugin->density;
-
+
const LADSPA_Data* const in = plugin->input;
LADSPA_Data* const out = plugin->output;
-
+
Sample out_sample = { out, nframes };
size_t n = 0;
@@ -166,7 +166,7 @@ masher_run(LADSPA_Handle instance, unsigned long nframes)
bool first = true;
size_t grain_index = 0;
size_t next_grain = 0;
-
+
// Zero output buffer
for (n = 0; n < nframes; ++n)
out[n] = 0.0f;
@@ -210,7 +210,7 @@ masher_run(LADSPA_Handle instance, unsigned long nframes)
if (n + grain_length > nframes) {
if (plugin->overlaps_size < OVERLAPS_SIZE) {
GrainDesc new_grain;
-
+
new_grain.pos = n;
new_grain.grain = grain_num;
plugin->overlaps[plugin->overlaps_size++] = new_grain;