Skip to content

Commit

Permalink
clean up audio output by reading in audio data with the jmusic librar…
Browse files Browse the repository at this point in the history
…y, but still using old class to write out audio file
  • Loading branch information
kklin committed Feb 6, 2014
1 parent 5e2d181 commit 773bddc
Show file tree
Hide file tree
Showing 10 changed files with 4,674,813 additions and 19 deletions.
44 changes: 43 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<description>
java-audio-steganography build file
</description>

<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
Expand All @@ -17,7 +18,12 @@
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
<javac srcdir="${src}" destdir="${build}">
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="lib/jMusic1.6.4.jar"/>
</classpath>
</javac>
</target>

<target name="dist" depends="compile"
Expand All @@ -35,4 +41,40 @@
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>

<target name="run"
description="run" >
<!-- Compile the java code from ${src} into ${build} -->
<java classname="audiosteganography.AudioQualityTest">
<classpath>
<pathelement path="${classpath}:build"/>
<pathelement location="lib/jMusic1.6.4.jar"/>
</classpath>
</java>
</target>

<target name="encode"
description="encode" >
<!-- Compile the java code from ${src} into ${build} -->
<java classname="audiosteganography.Encoder">
<classpath>
<pathelement path="${classpath}:build"/>
<pathelement location="lib/jMusic1.6.4.jar"/>
</classpath>
<arg value="${message}"/>
<arg value="${path}"/>
</java>
</target>

<target name="decode"
description="decode" >
<!-- Compile the java code from ${src} into ${build} -->
<java classname="audiosteganography.Decoder">
<classpath>
<pathelement path="${classpath}:build"/>
<pathelement location="lib/jMusic1.6.4.jar"/>
</classpath>
<arg value="${path}"/>
</java>
</target>
</project>
Loading

0 comments on commit 773bddc

Please sign in to comment.