diff options
author | Tim E. Real <termtech@rogers.com> | 2012-12-16 01:56:25 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2012-12-16 01:56:25 +0000 |
commit | a2ae7e06099f1ceb38d752909e3c17055fbc59ca (patch) | |
tree | 05d72e62dc981f60876eae6be24993d336276b0f /muse2/muse/driver | |
parent | b776676ee0feb412a0c2aa917847231985b32563 (diff) |
Fix some Release build warnings. Several more to do.
Diffstat (limited to 'muse2/muse/driver')
-rw-r--r-- | muse2/muse/driver/dummyaudio.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/muse2/muse/driver/dummyaudio.cpp b/muse2/muse/driver/dummyaudio.cpp index 21bb425f..172638b4 100644 --- a/muse2/muse/driver/dummyaudio.cpp +++ b/muse2/muse/driver/dummyaudio.cpp @@ -227,7 +227,13 @@ DummyAudioDevice::DummyAudioDevice() // Added by Tim. p3.3.15 // p3.3.30 //posix_memalign((void**)&buffer, 16, sizeof(float) * dummyFrames); - posix_memalign((void**)&buffer, 16, sizeof(float) * MusEGlobal::config.dummyAudioBufSize); + + int rv = posix_memalign((void**)&buffer, 16, sizeof(float) * MusEGlobal::config.dummyAudioBufSize); + if(rv != 0) + { + fprintf(stderr, "ERROR: DummyAudioDevice ctor: posix_memalign returned error:%d. Aborting!\n", rv); + abort(); + } dummyThread = 0; realtimeFlag = false; |