aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/MacVST/LeftoMono/source/LeftoMonoProc.cpp
blob: a8f063f195dc889813899676ba006d05a7b32604 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* ========================================
 *  LeftoMono - LeftoMono.h
 *  Copyright (c) 2016 airwindows, All rights reserved
 * ======================================== */

#ifndef __LeftoMono_H
#include "LeftoMono.h"
#endif

void LeftoMono::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 = *in1;
		*out2 = *in1;

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

void LeftoMono::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 = *in1;
		*out2 = *in1;

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