Przeglądaj źródła

Bugfix for passthrough

did not work because of missing return - for num_channels<=1, "left channel" was still running..
(1  means pass trough)
dds
Frank 8 lat temu
rodzic
commit
e0af6f0a94
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      effect_chorus.cpp

+ 2
- 1
effect_chorus.cpp Wyświetl plik

@@ -78,7 +78,7 @@ void AudioEffectChorus::update(void)
// do passthru
// It stores the unmodified data in the delay line so that
// it isn't as likely to click
if(num_chorus < 1) {
if(num_chorus <= 1) {
// Just passthrough
block = receiveWritable(0);
if(block) {
@@ -93,6 +93,7 @@ void AudioEffectChorus::update(void)
transmit(block,0);
release(block);
}
return;
}

// L E F T C H A N N E L

Ładowanie…
Anuluj
Zapisz