fix VST plugin crash (from 35a9c63)
authorRobin Gareus <robin@gareus.org>
Fri, 7 Aug 2015 01:07:50 +0000 (03:07 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 7 Aug 2015 01:07:50 +0000 (03:07 +0200)
depending on offset, the audio-buffer may not be
memory aligned, use memcpy() not SSE copy_vector.

libs/ardour/vst_plugin.cc

index b32db6a6d309a3df4cc24d50bd21784f6c79a399..b62e18fed8993c7afd70e6db22337aa954e8caa4 100644 (file)
@@ -649,7 +649,7 @@ VSTPlugin::connect_and_run (BufferSet& bufs,
                if (!valid) {
                        continue;
                }
-               copy_vector (bufs.get_audio(index).data(offset), outs[i], nframes * sizeof(float));
+               memcpy (bufs.get_audio(index).data(offset), outs[i], nframes * sizeof(float));
        }
 #endif
        return 0;