cadencii.VSTiDriverBase.initBuffer C# (CSharp) Method

initBuffer() private method

private initBuffer ( ) : void
return void
        private void initBuffer()
        {
            if ( bufferLeft == IntPtr.Zero ) {
                bufferLeft = Marshal.AllocHGlobal( sizeof( float ) * BUFLEN );
            }
            if ( bufferRight == IntPtr.Zero ) {
                bufferRight = Marshal.AllocHGlobal( sizeof( float ) * BUFLEN );
            }
            if ( buffers == IntPtr.Zero ) {
                unsafe {
                    buffers = Marshal.AllocHGlobal( sizeof( float* ) * 2 );
                }
            }
        }