--- linuxsampler/trunk/src/engines/gig/Engine.cpp 2005/01/29 15:17:59 354 +++ linuxsampler/trunk/src/engines/gig/Engine.cpp 2005/02/09 01:22:18 361 @@ -26,7 +26,12 @@ #include "EGADSR.h" #include "Engine.h" -#include + +#if defined(__APPLE__) +# include +#else +# include +#endif namespace LinuxSampler { namespace gig { @@ -353,7 +358,12 @@ // (re)allocate synthesis parameter matrix if (pSynthesisParameters[0]) free(pSynthesisParameters[0]); + + #if defined(__APPLE__) + pSynthesisParameters[0] = (float *) malloc(Event::destination_count * sizeof(float) * pAudioOut->MaxSamplesPerCycle()); + #else pSynthesisParameters[0] = (float *) memalign(16,(Event::destination_count * sizeof(float) * pAudioOut->MaxSamplesPerCycle())); + #endif for (int dst = 1; dst < Event::destination_count; dst++) pSynthesisParameters[dst] = pSynthesisParameters[dst - 1] + pAudioOut->MaxSamplesPerCycle(); @@ -1184,7 +1194,7 @@ } String Engine::Version() { - String s = "$Revision: 1.22 $"; + String s = "$Revision: 1.23 $"; return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword }