Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
2ae030df92 | |||
dff0b993d3 | |||
c56a664a2a | |||
544c15be1d |
@ -6,7 +6,7 @@ FreqSample is a tool made in Java that will play a frequency.
|
||||
### Compiling
|
||||
Make sure you have the JDK installed along with Apache Ant. Then go to the root directory of this project and run:
|
||||
```
|
||||
$ ant jar
|
||||
$ ant
|
||||
```
|
||||
|
||||
### Contributing
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
<target name="compile" >
|
||||
<mkdir dir="${classes.dir}" />
|
||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" />
|
||||
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile" >
|
||||
@ -22,4 +22,6 @@
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="main" depends="jar" />
|
||||
</project>
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user