Now supporting smaller durations.

This commit is contained in:
Deathsbreed 2014-10-08 19:40:27 -05:00
parent 31e441e886
commit 544c15be1d
2 changed files with 3 additions and 1 deletions

View File

@ -22,4 +22,6 @@
</manifest>
</jar>
</target>
<target name="main" depends="jar" ></target>
</project>

View File

@ -35,7 +35,7 @@ public class Generator {
ByteBuffer cBuf = ByteBuffer.allocate(line.getBufferSize());
int ctSamplesTotal = SAMPLE_RATE * (int)(msecs / 1000);
int ctSamplesTotal = (int)(SAMPLE_RATE * msecs / 1000);
while(ctSamplesTotal > 0) {
double fCycleInc = fFreq/SAMPLE_RATE;