You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that VstPluginAudioProcessor and VstPluginAudioPrecisionProcessor are copying buffer values one by one. Since the pointers are already exposed, I suggest using Buffer.MemoryCopy():
using System;// ...
unsafe
{float*inputBuffer=this.Buffer;float*outputBuffer=((IDirectBufferAccess32)destination).Buffer;
Buffer.MemoryCopy(inputBuffer, outputBuffer,this.SampleCount *sizeof(float),this.SampleCount *sizeof(float));}
I've noticed that
VstPluginAudioProcessor
andVstPluginAudioPrecisionProcessor
are copying buffer values one by one. Since the pointers are already exposed, I suggest usingBuffer.MemoryCopy()
:Or SIMD, like so:
And likewise for doubles, just divide the jumps by 2 (though a simple memory copy would be more useful in this case).
The text was updated successfully, but these errors were encountered: