From b8dea19c3040b74dee84b9f5db5a8bb793d2bdc1 Mon Sep 17 00:00:00 2001 From: Matt Jenkins Date: Sun, 8 Sep 2019 12:30:52 +0100 Subject: [PATCH] Make splits continuations and have single playback always 1.00x --- src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java b/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java index fb9a8a5..8328572 100644 --- a/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java +++ b/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java @@ -2184,7 +2184,7 @@ public class AudiobookRecorder extends JFrame { AudioFormat sampleformat = s.getAudioFormat(); float sampleRate = sampleformat.getSampleRate(); - sampleRate *= toolBar.getPlaybackSpeed(); +// sampleRate *= toolBar.getPlaybackSpeed(); AudioFormat format = new AudioFormat(sampleRate, 16, 2, true, false); play = AudioSystem.getSourceDataLine(format, Options.getPlaybackMixer()); @@ -3373,6 +3373,9 @@ public class AudiobookRecorder extends JFrame { } newSentence.writeAudioData(startSamples); + newSentence.setPostGapType("continuation"); + newSentence.setPostGap(Options.getInteger("catenation.short-sentence")); + selectedSentence.writeAudioData(endSamples); selectedSentence.autoTrimSample(); newSentence.autoTrimSample();