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;