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
|
### Compiling
|
||||||
Make sure you have the JDK installed along with Apache Ant. Then go to the root directory of this project and run:
|
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
|
### Contributing
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<target name="compile" >
|
<target name="compile" >
|
||||||
<mkdir dir="${classes.dir}" />
|
<mkdir dir="${classes.dir}" />
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}" />
|
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jar" depends="compile" >
|
<target name="jar" depends="compile" >
|
||||||
@ -22,4 +22,6 @@
|
|||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="main" depends="jar" />
|
||||||
</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;
|
||||||
|
Reference in New Issue
Block a user