aboutsummaryrefslogblamecommitdiffstats
path: root/plugins/WinVST/RightoMono/RightoMonoProc.cpp
blob: 998f830b19a6893bfecf3bc9a2b3fe51cf811625 (plain) (tree)















































                                                                                                  
/* ========================================
 *  RightoMono - RightoMono.h
 *  Copyright (c) 2016 airwindows, All rights reserved
 * ======================================== */

#ifndef __RightoMono_H
#include "RightoMono.h"
#endif

void RightoMono::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames) 
{
    float* in1  =  inputs[0];
    float* in2  =  inputs[1];
    float* out1 = outputs[0];
    float* out2 = outputs[1];

    while (--sampleFrames >= 0)
    {

		*out1 = *in2;
		*out2 = *in2;

		*in1++;
		*in2++;
		*out1++;
		*out2++;
    }
}

void RightoMono::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames) 
{
    double* in1  =  inputs[0];
    double* in2  =  inputs[1];
    double* out1 = outputs[0];
    double* out2 = outputs[1];

    while (--sampleFrames >= 0)
    {
		
		*out1 = *in2;
		*out2 = *in2;

		*in1++;
		*in2++;
		*out1++;
		*out2++;
    }
}