From a14c59a4482169870c24b745ab08554093c256eb Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Fri, 4 Jan 2019 10:50:59 -0500 Subject: [PATCH] Macintosh was using SSE1 because cpuInitialization was never occuring. This leads to the ancilliary effect of using the broken SSE1 implementation of the asym waveshaper. This fixes it by explicitly calling the cpu initialization. See Issue #181 for more commentary. Former-commit-id: 9414b299a27d1a7521f0d02047f01e18e151c0b5 Former-commit-id: 67af088ca68840087218cb9a3e555c275b28f7e5 --- src/au/aulayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/au/aulayer.cpp b/src/au/aulayer.cpp index fee9aec11b6..d8424d9c81a 100644 --- a/src/au/aulayer.cpp +++ b/src/au/aulayer.cpp @@ -4,6 +4,7 @@ #include #include #include "aulayer_cocoaui.h" +#include "CpuArchitecture.h" typedef SurgeSynthesizer sub3_synth; @@ -110,6 +111,7 @@ void aulayer::InitializePlugin() { //sub3_synth* synth = (sub3_synth*)_aligned_malloc(sizeof(sub3_synth),16); //new(synth) sub3_synth(this); + initCpuArchitecture(); // FIXME: The VST uses a std::unique_ptr<> and we probably should here also plugin_instance = new SurgeSynthesizer( this );