summaryrefslogtreecommitdiff
path: root/src/Reverb.cpp
diff options
context:
space:
mode:
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>2021-11-24 16:44:52 +0100
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>2021-11-24 16:44:52 +0100
commitb3c70f2001c91aa5f12903869957ff4c65df2e8e (patch)
tree51413982306ba4920c7448a82905408e65ca7c03 /src/Reverb.cpp
parent6acadc7e322d4be0e696efd0ad7719be9f66abe9 (diff)
New upstream version 1.4.1+ds0
Diffstat (limited to 'src/Reverb.cpp')
-rw-r--r--src/Reverb.cpp45
1 files changed, 23 insertions, 22 deletions
diff --git a/src/Reverb.cpp b/src/Reverb.cpp
index abc2c5f..977fcbd 100644
--- a/src/Reverb.cpp
+++ b/src/Reverb.cpp
@@ -35,36 +35,37 @@
* \date August 2020
*/
-
#include "Reverb.h"
-#include "jacktrip_types.h"
#include <iostream>
+#include "jacktrip_types.h"
+
//*******************************************************************************
void Reverb::compute(int nframes, float** inputs, float** outputs)
{
- if (not inited) {
- std::cerr << "*** Reverb " << this << ": init never called! Doing it now.\n";
- if (fSamplingFreq <= 0) {
- fSamplingFreq = 48000;
- std::cout << "Reverb " << this << ": *** HAD TO GUESS the sampling rate (chose 48000 Hz) ***\n";
- }
- init(fSamplingFreq);
- }
- if (mReverbLevel <= 1.0) {
- if (mNumInChannels == 1) {
- freeverbMonoP->compute(nframes, inputs, outputs);
- } else {
- assert(mNumInChannels == 2);
- freeverbStereoP->compute(nframes, inputs, outputs);
+ if (not inited) {
+ std::cerr << "*** Reverb " << this << ": init never called! Doing it now.\n";
+ if (fSamplingFreq <= 0) {
+ fSamplingFreq = 48000;
+ std::cout << "Reverb " << this
+ << ": *** HAD TO GUESS the sampling rate (chose 48000 Hz) ***\n";
+ }
+ init(fSamplingFreq);
}
- } else {
- if (mNumInChannels == 1) {
- zitarevMonoP->compute(nframes, inputs, outputs);
+ if (mReverbLevel <= 1.0) {
+ if (mNumInChannels == 1) {
+ freeverbMonoP->compute(nframes, inputs, outputs);
+ } else {
+ assert(mNumInChannels == 2);
+ freeverbStereoP->compute(nframes, inputs, outputs);
+ }
} else {
- assert(mNumInChannels == 2);
- zitarevStereoP->compute(nframes, inputs, outputs);
+ if (mNumInChannels == 1) {
+ zitarevMonoP->compute(nframes, inputs, outputs);
+ } else {
+ assert(mNumInChannels == 2);
+ zitarevStereoP->compute(nframes, inputs, outputs);
+ }
}
- }
}