aboutsummaryrefslogtreecommitdiffstats
path: root/src/masher.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/masher.c')
-rw-r--r--src/masher.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/masher.c b/src/masher.c
index 6d501c5..0a9eeda 100644
--- a/src/masher.c
+++ b/src/masher.c
@@ -88,8 +88,11 @@ activate(LV2_Handle instance)
plugin->write_grain = 0;
for (i=0; i < GRAINSTORE_SIZE; ++i) {
- //plugin->grain_store[i].data = (float*)calloc(MAX_GRAIN_SIZE, sizeof(float));
+#ifdef HAVE_POSIX_MEMALIGN
posix_memalign((void**)&plugin->grain_store[i].data, 16, MAX_GRAIN_SIZE * sizeof(float));
+#else
+ plugin->grain_store[i].data = (float*)calloc(MAX_GRAIN_SIZE, sizeof(float));
+#endif
plugin->grain_store[i].length = 0;
}
}