summaryrefslogtreecommitdiff
path: root/muse2/muse/plugin.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-12-16 01:56:25 +0000
committerTim E. Real <termtech@rogers.com>2012-12-16 01:56:25 +0000
commita2ae7e06099f1ceb38d752909e3c17055fbc59ca (patch)
tree05d72e62dc981f60876eae6be24993d336276b0f /muse2/muse/plugin.cpp
parentb776676ee0feb412a0c2aa917847231985b32563 (diff)
Fix some Release build warnings. Several more to do.
Diffstat (limited to 'muse2/muse/plugin.cpp')
-rw-r--r--muse2/muse/plugin.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp
index 203aac63..3029e618 100644
--- a/muse2/muse/plugin.cpp
+++ b/muse2/muse/plugin.cpp
@@ -1166,7 +1166,14 @@ Pipeline::Pipeline()
: std::vector<PluginI*>()
{
for (int i = 0; i < MAX_CHANNELS; ++i)
- posix_memalign((void**)(buffer + i), 16, sizeof(float) * MusEGlobal::segmentSize);
+ {
+ int rv = posix_memalign((void**)(buffer + i), 16, sizeof(float) * MusEGlobal::segmentSize);
+ if(rv != 0)
+ {
+ fprintf(stderr, "ERROR: Pipeline ctor: posix_memalign returned error:%d. Aborting!\n", rv);
+ abort();
+ }
+ }
for (int i = 0; i < PipelineDepth; ++i)
push_back(0);
@@ -1180,7 +1187,14 @@ Pipeline::Pipeline(const Pipeline& /*p*/)
: std::vector<PluginI*>()
{
for (int i = 0; i < MAX_CHANNELS; ++i)
- posix_memalign((void**)(buffer + i), 16, sizeof(float) * MusEGlobal::segmentSize);
+ {
+ int rv = posix_memalign((void**)(buffer + i), 16, sizeof(float) * MusEGlobal::segmentSize);
+ if(rv != 0)
+ {
+ fprintf(stderr, "ERROR: Pipeline copy ctor: posix_memalign returned error:%d. Aborting!\n", rv);
+ abort();
+ }
+ }
// TODO: Copy plug-ins !
for (int i = 0; i < PipelineDepth; ++i)