Prevent stacking of default effect chain

This commit is contained in:
2019-07-21 15:36:33 +01:00
parent 7545e33d2f
commit c907e735c6
2 changed files with 8 additions and 6 deletions
@@ -2212,7 +2212,6 @@ public class AudiobookRecorder extends JFrame {
public boolean enableMicrophone() {
AudioFormat format = Options.getAudioFormat();
System.err.println(format);
Mixer.Info mixer = Options.getRecordingMixer();
@@ -972,6 +972,8 @@ public class Sentence extends DefaultMutableTreeNode implements Cacheable {
}
if (effectChain != null) {
// Don't double up the default chain
if (!effectChain.equals(def)) {
eff = AudiobookRecorder.window.effects.get(effectChain);
if (eff != null) {
eff.init(getAudioFormat().getFrameRate());
@@ -980,6 +982,7 @@ public class Sentence extends DefaultMutableTreeNode implements Cacheable {
}
}
}
}
// Add final master gain stage
for (int i = 0; i < samples.length; i++) {