aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LinuxVST/src/RightoMono/RightoMonoProc.cpp
diff options
context:
space:
mode:
authorChris Johnson <jinx6568@sover.net>2019-11-03 18:35:33 -0500
committerChris Johnson <jinx6568@sover.net>2019-11-03 18:35:33 -0500
commit65b6f8ae66aaaf324733eb2ab90e50f674ac2b1b (patch)
treeb56827bea6d67f646789036c2ef7ac1ecdb75ecb /plugins/LinuxVST/src/RightoMono/RightoMonoProc.cpp
parent9d2318d105595d9061e4c01943573c873138e884 (diff)
downloadairwindows-lv2-port-65b6f8ae66aaaf324733eb2ab90e50f674ac2b1b.tar.gz
airwindows-lv2-port-65b6f8ae66aaaf324733eb2ab90e50f674ac2b1b.tar.bz2
airwindows-lv2-port-65b6f8ae66aaaf324733eb2ab90e50f674ac2b1b.zip
ToMono
Diffstat (limited to 'plugins/LinuxVST/src/RightoMono/RightoMonoProc.cpp')
-rwxr-xr-xplugins/LinuxVST/src/RightoMono/RightoMonoProc.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/LinuxVST/src/RightoMono/RightoMonoProc.cpp b/plugins/LinuxVST/src/RightoMono/RightoMonoProc.cpp
new file mode 100755
index 0000000..998f830
--- /dev/null
+++ b/plugins/LinuxVST/src/RightoMono/RightoMonoProc.cpp
@@ -0,0 +1,48 @@
+/* ========================================
+ * 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++;
+ }
+}