From 69e9fa695c2c772ab763269f64e78d8203fdd1e7 Mon Sep 17 00:00:00 2001 From: Deathsbreed Date: Thu, 9 Oct 2014 17:47:26 -0500 Subject: [PATCH] Fixed duration error. --- src/freqsample/Generator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freqsample/Generator.java b/src/freqsample/Generator.java index c0e671f..2e6987c 100644 --- a/src/freqsample/Generator.java +++ b/src/freqsample/Generator.java @@ -35,8 +35,8 @@ public class Generator { ByteBuffer cBuf = ByteBuffer.allocate(line.getBufferSize()); + if(msecs < 150) msecs = 150; int ctSamplesTotal = (int)(SAMPLE_RATE * (msecs / 1000)); - if(ctSamplesTotal < 150) ctSamplesTotal = 150; while(ctSamplesTotal > 0) { double fCycleInc = fFreq/SAMPLE_RATE;