1 Commits

Author SHA1 Message Date
544c15be1d Now supporting smaller durations. 2014-10-08 19:40:27 -05:00
2 changed files with 3 additions and 1 deletions

View File

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

View File

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