Prevent stacking of default effect chain
This commit is contained in:
@@ -2212,7 +2212,6 @@ public class AudiobookRecorder extends JFrame {
|
|||||||
|
|
||||||
public boolean enableMicrophone() {
|
public boolean enableMicrophone() {
|
||||||
AudioFormat format = Options.getAudioFormat();
|
AudioFormat format = Options.getAudioFormat();
|
||||||
System.err.println(format);
|
|
||||||
|
|
||||||
Mixer.Info mixer = Options.getRecordingMixer();
|
Mixer.Info mixer = Options.getRecordingMixer();
|
||||||
|
|
||||||
|
|||||||
@@ -972,6 +972,8 @@ public class Sentence extends DefaultMutableTreeNode implements Cacheable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (effectChain != null) {
|
if (effectChain != null) {
|
||||||
|
// Don't double up the default chain
|
||||||
|
if (!effectChain.equals(def)) {
|
||||||
eff = AudiobookRecorder.window.effects.get(effectChain);
|
eff = AudiobookRecorder.window.effects.get(effectChain);
|
||||||
if (eff != null) {
|
if (eff != null) {
|
||||||
eff.init(getAudioFormat().getFrameRate());
|
eff.init(getAudioFormat().getFrameRate());
|
||||||
@@ -980,6 +982,7 @@ public class Sentence extends DefaultMutableTreeNode implements Cacheable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Add final master gain stage
|
// Add final master gain stage
|
||||||
for (int i = 0; i < samples.length; i++) {
|
for (int i = 0; i < samples.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user