Now supporting smaller durations.
This commit is contained in:
parent
31e441e886
commit
544c15be1d
@ -22,4 +22,6 @@
|
|||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="main" depends="jar" ></target>
|
||||||
</project>
|
</project>
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user