changeset 43:2f129118e2d6

removed old files and moved natives unpacking to the AudioRenderer
author Robert McIntyre <rlm@mit.edu>
date Wed, 30 Nov 2011 06:32:36 -0700
parents b1bc965a38d2
children 388f9d062012
files build.xml divergence/pure divergence/pure-with-play divergence/pure2 divergence/results.txt divergence/sqr-100Hz divergence/sqr-1kHz-1 divergence/sqr-1kHz-2 divergence/with-supportEFX divergence/without-supportEFX src/com/aurellem/capture/audio/AudioSendRenderer.java src/com/aurellem/capture/examples/Advanced.java transcoding.txt
diffstat 13 files changed, 50 insertions(+), 836 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/build.xml	Thu Nov 03 18:47:21 2011 -0700
     1.2 +++ b/build.xml	Wed Nov 30 06:32:36 2011 -0700
     1.3 @@ -5,7 +5,7 @@
     1.4    <property name="src" value="src"/>
     1.5    <property name="dist" value="dist"/>
     1.6    <property name="lib"  value="lib"/>
     1.7 -  <property name="assets"  value="assets"/>
     1.8 +
     1.9  
    1.10  
    1.11    <path id="classpath">
    1.12 @@ -38,7 +38,6 @@
    1.13      <jar jarfile="${dist}/jmeCapture.jar">
    1.14  	 <fileset dir="${src}"/>
    1.15  	 <fileset dir="${build}"/>
    1.16 -	 <fileset dir="${assets}"/>
    1.17      </jar>
    1.18    </target>
    1.19  
     2.1 --- a/divergence/pure	Thu Nov 03 18:47:21 2011 -0700
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,96 +0,0 @@
     2.4 -OPENAL-AURELLEM: alc_init_config!!
     2.5 -creating new context via naddListener
     2.6 ---------
     2.7 -main
     2.8 -0.0
     2.9 -aux
    2.10 -0.0
    2.11 -0
    2.12 -I'm playing! <3
    2.13 ---------
    2.14 -main
    2.15 -6.408789E-4
    2.16 -aux
    2.17 -6.408789E-4
    2.18 -1
    2.19 ---------
    2.20 -main
    2.21 -0.0012512398
    2.22 -aux
    2.23 -0.0012512398
    2.24 -2
    2.25 ---------
    2.26 -main
    2.27 -0.0018921187
    2.28 -aux
    2.29 -0.0018921187
    2.30 -3
    2.31 ---------
    2.32 -main
    2.33 -0.0024719615
    2.34 -aux
    2.35 -0.0024719615
    2.36 -4
    2.37 ---------
    2.38 -main
    2.39 -0.0030212863
    2.40 -aux
    2.41 -0.0030212863
    2.42 -5
    2.43 ---------
    2.44 -main
    2.45 -0.003540093
    2.46 -aux
    2.47 -0.003540093
    2.48 -6
    2.49 ---------
    2.50 -main
    2.51 -0.004089418
    2.52 -aux
    2.53 -0.004089418
    2.54 -7
    2.55 ---------
    2.56 -main
    2.57 -0.0045471885
    2.58 -aux
    2.59 -0.0045471885
    2.60 -8
    2.61 ---------
    2.62 -main
    2.63 -0.004943923
    2.64 -aux
    2.65 -0.004913405
    2.66 -9
    2.67 ---------
    2.68 -main
    2.69 -0.004943923
    2.70 -aux
    2.71 -0.004882887
    2.72 -10
    2.73 ---------
    2.74 -main
    2.75 -0.004791333
    2.76 -aux
    2.77 -0.004760815
    2.78 -11
    2.79 ---------
    2.80 -main
    2.81 -0.0046082246
    2.82 -aux
    2.83 -0.0045777066
    2.84 -12
    2.85 ---------
    2.86 -main
    2.87 -0.0046082246
    2.88 -aux
    2.89 -0.0045777066
    2.90 -13
    2.91 ---------
    2.92 -main
    2.93 -0.0044556344
    2.94 -aux
    2.95 -0.0044251163
    2.96 -14
    2.97 -AL lib: ALc.c:2463: alcCloseDevice(): destroying 1 Context(s)
    2.98 -AL lib: ALc.c:2069: alcDestroyContext(): deleting 64 Source(s)
    2.99 -AL lib: ALc.c:2471: alcCloseDevice(): deleting 1 Buffer(s)
     3.1 --- a/divergence/pure-with-play	Thu Nov 03 18:47:21 2011 -0700
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,96 +0,0 @@
     3.4 -OPENAL-AURELLEM: alc_init_config!!
     3.5 -creating new context via naddListener
     3.6 ---------
     3.7 -main
     3.8 -0.0
     3.9 -aux
    3.10 -0.0
    3.11 -0
    3.12 -I'm playing! <3
    3.13 ---------
    3.14 -main
    3.15 -6.408789E-4
    3.16 -aux
    3.17 -6.408789E-4
    3.18 -1
    3.19 ---------
    3.20 -main
    3.21 -0.0012512398
    3.22 -aux
    3.23 -0.0012512398
    3.24 -2
    3.25 ---------
    3.26 -main
    3.27 -0.0018921187
    3.28 -aux
    3.29 -0.0018921187
    3.30 -3
    3.31 ---------
    3.32 -main
    3.33 -0.0024719615
    3.34 -aux
    3.35 -0.0024719615
    3.36 -4
    3.37 ---------
    3.38 -main
    3.39 -0.0030212863
    3.40 -aux
    3.41 -0.0030212863
    3.42 -5
    3.43 ---------
    3.44 -main
    3.45 -0.003540093
    3.46 -aux
    3.47 -0.003540093
    3.48 -6
    3.49 ---------
    3.50 -main
    3.51 -0.004089418
    3.52 -aux
    3.53 -0.004089418
    3.54 -7
    3.55 ---------
    3.56 -main
    3.57 -0.0045471885
    3.58 -aux
    3.59 -0.0045471885
    3.60 -8
    3.61 ---------
    3.62 -main
    3.63 -0.004943923
    3.64 -aux
    3.65 -0.004913405
    3.66 -9
    3.67 ---------
    3.68 -main
    3.69 -0.004943923
    3.70 -aux
    3.71 -0.004882887
    3.72 -10
    3.73 ---------
    3.74 -main
    3.75 -0.004791333
    3.76 -aux
    3.77 -0.004760815
    3.78 -11
    3.79 ---------
    3.80 -main
    3.81 -0.0046082246
    3.82 -aux
    3.83 -0.0045777066
    3.84 -12
    3.85 ---------
    3.86 -main
    3.87 -0.0046082246
    3.88 -aux
    3.89 -0.0045777066
    3.90 -13
    3.91 ---------
    3.92 -main
    3.93 -0.0044556344
    3.94 -aux
    3.95 -0.0044251163
    3.96 -14
    3.97 -AL lib: ALc.c:2463: alcCloseDevice(): destroying 1 Context(s)
    3.98 -AL lib: ALc.c:2069: alcDestroyContext(): deleting 64 Source(s)
    3.99 -AL lib: ALc.c:2471: alcCloseDevice(): deleting 1 Buffer(s)
     4.1 --- a/divergence/pure2	Thu Nov 03 18:47:21 2011 -0700
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,96 +0,0 @@
     4.4 -OPENAL-AURELLEM: alc_init_config!!
     4.5 -creating new context via naddListener
     4.6 ---------
     4.7 -main
     4.8 -0.0
     4.9 -aux
    4.10 -0.0
    4.11 -0
    4.12 -I'm playing! <3
    4.13 ---------
    4.14 -main
    4.15 -6.408789E-4
    4.16 -aux
    4.17 -6.408789E-4
    4.18 -1
    4.19 ---------
    4.20 -main
    4.21 -0.0012512398
    4.22 -aux
    4.23 -0.0012512398
    4.24 -2
    4.25 ---------
    4.26 -main
    4.27 -0.0018921187
    4.28 -aux
    4.29 -0.0018921187
    4.30 -3
    4.31 ---------
    4.32 -main
    4.33 -0.0024719615
    4.34 -aux
    4.35 -0.0024719615
    4.36 -4
    4.37 ---------
    4.38 -main
    4.39 -0.0030212863
    4.40 -aux
    4.41 -0.0030212863
    4.42 -5
    4.43 ---------
    4.44 -main
    4.45 -0.003540093
    4.46 -aux
    4.47 -0.003540093
    4.48 -6
    4.49 ---------
    4.50 -main
    4.51 -0.004089418
    4.52 -aux
    4.53 -0.004089418
    4.54 -7
    4.55 ---------
    4.56 -main
    4.57 -0.0045471885
    4.58 -aux
    4.59 -0.0045471885
    4.60 -8
    4.61 ---------
    4.62 -main
    4.63 -0.004943923
    4.64 -aux
    4.65 -0.004913405
    4.66 -9
    4.67 ---------
    4.68 -main
    4.69 -0.004943923
    4.70 -aux
    4.71 -0.004882887
    4.72 -10
    4.73 ---------
    4.74 -main
    4.75 -0.004791333
    4.76 -aux
    4.77 -0.004760815
    4.78 -11
    4.79 ---------
    4.80 -main
    4.81 -0.0046082246
    4.82 -aux
    4.83 -0.0045777066
    4.84 -12
    4.85 ---------
    4.86 -main
    4.87 -0.0046082246
    4.88 -aux
    4.89 -0.0045777066
    4.90 -13
    4.91 ---------
    4.92 -main
    4.93 -0.0044556344
    4.94 -aux
    4.95 -0.0044251163
    4.96 -14
    4.97 -AL lib: ALc.c:2463: alcCloseDevice(): destroying 1 Context(s)
    4.98 -AL lib: ALc.c:2069: alcDestroyContext(): deleting 64 Source(s)
    4.99 -AL lib: ALc.c:2471: alcCloseDevice(): deleting 1 Buffer(s)
     5.1 --- a/divergence/results.txt	Thu Nov 03 18:47:21 2011 -0700
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,39 +0,0 @@
     5.4 -sqr-1khz, a mono 16 bit sound file, diverges at sample 9
     5.5 -haydn, a stereo 16 bit,  does not diverge to 350 samples.
     5.6 -pure, mono 16 bit, diverges at sample 9
     5.7 -sqr-10Hz, a mono 16 bit, diverges at sample 10
     5.8 -sqr-100Hz also diverges at 10.
     5.9 -
    5.10 -
    5.11 -calling audioRenderer.updateSourceParams in main update loop doesn't
    5.12 -change output
    5.13 -
    5.14 -audioRenderer.playSource vs source.play doesn't make a difference with
    5.15 -pure (and probably doesn't make any difference)
    5.16 -
    5.17 -
    5.18 -channel starts at -1, changes to 0 when playing starts, then stays the
    5.19 -same through divergence.
    5.20 -
    5.21 -
    5.22 -surprisingly, supporfEFX doesn't affect anything.
    5.23 -
    5.24 -
    5.25 -When things are off, they only appear to be off by one byte.  main
    5.26 -will be at x and aux will be at x+1 or x-1.
    5.27 -
    5.28 -Setting audioNode paramaters changes the severity of the difference
    5.29 -but not its onset.
    5.30 -
    5.31 -
    5.32 -Non-positional sound has no problems.
    5.33 -
    5.34 -
    5.35 -Divergence gets worse the longer things run.
    5.36 -
    5.37 -
    5.38 -As the sound source moves about the listener in a circle, the sound
    5.39 -should be at a constant volume, since the distance between the source
    5.40 -and listener is constant. Instead, the sound varies depending on where
    5.41 -the thing is in the circle.  Main cuts out at around 90degrees, while
    5.42 -aux cuts out at around 180 degrees.
     6.1 --- a/divergence/sqr-100Hz	Thu Nov 03 18:47:21 2011 -0700
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,94 +0,0 @@
     6.4 -OPENAL-AURELLEM: alc_init_config!!
     6.5 -creating new context via naddListener
     6.6 ---------
     6.7 -main
     6.8 -0.0
     6.9 -aux
    6.10 -0.0
    6.11 -0
    6.12 -I'm playing! <3
    6.13 ---------
    6.14 -main
    6.15 -0.0046997787
    6.16 -aux
    6.17 -0.0046997787
    6.18 -1
    6.19 ---------
    6.20 -main
    6.21 -0.004943923
    6.22 -aux
    6.23 -0.004943923
    6.24 -2
    6.25 ---------
    6.26 -main
    6.27 -0.004943923
    6.28 -aux
    6.29 -0.004943923
    6.30 -3
    6.31 ---------
    6.32 -main
    6.33 -0.004852369
    6.34 -aux
    6.35 -0.004852369
    6.36 -4
    6.37 ---------
    6.38 -main
    6.39 -0.0046082246
    6.40 -aux
    6.41 -0.0046082246
    6.42 -5
    6.43 ---------
    6.44 -main
    6.45 -0.0046082246
    6.46 -aux
    6.47 -0.0046082246
    6.48 -6
    6.49 ---------
    6.50 -main
    6.51 -0.0045166705
    6.52 -aux
    6.53 -0.0045166705
    6.54 -7
    6.55 ---------
    6.56 -main
    6.57 -0.004303044
    6.58 -aux
    6.59 -0.004303044
    6.60 -8
    6.61 ---------
    6.62 -main
    6.63 -0.004303044
    6.64 -aux
    6.65 -0.004303044
    6.66 -9
    6.67 ---------
    6.68 -main
    6.69 -0.004150454
    6.70 -aux
    6.71 -0.004119936
    6.72 -10
    6.73 ---------
    6.74 -main
    6.75 -0.0040589
    6.76 -aux
    6.77 -0.004028382
    6.78 -11
    6.79 ---------
    6.80 -main
    6.81 -0.0040589
    6.82 -aux
    6.83 -0.004028382
    6.84 -12
    6.85 ---------
    6.86 -main
    6.87 -0.0039978637
    6.88 -aux
    6.89 -0.0039673457
    6.90 -13
    6.91 ---------
    6.92 -main
    6.93 -0.0038147555
    6.94 -aux
    6.95 -0.0037842374
    6.96 -14
    6.97 -
     7.1 --- a/divergence/sqr-1kHz-1	Thu Nov 03 18:47:21 2011 -0700
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,77 +0,0 @@
     7.4 -creating new context via naddListener
     7.5 ---------
     7.6 -main
     7.7 -0.0
     7.8 -aux
     7.9 -0.0
    7.10 -I'm playing! <3
    7.11 ---------
    7.12 -main
    7.13 -0.004791333
    7.14 -aux
    7.15 -0.004791333
    7.16 ---------
    7.17 -main
    7.18 -0.004943923
    7.19 -aux
    7.20 -0.004943923
    7.21 ---------
    7.22 -main
    7.23 -0.004943923
    7.24 -aux
    7.25 -0.004943923
    7.26 ---------
    7.27 -main
    7.28 -0.004852369
    7.29 -aux
    7.30 -0.004852369
    7.31 ---------
    7.32 -main
    7.33 -0.0046082246
    7.34 -aux
    7.35 -0.0046082246
    7.36 ---------
    7.37 -main
    7.38 -0.0044861524
    7.39 -aux
    7.40 -0.0044861524
    7.41 ---------
    7.42 -main
    7.43 -0.0044861524
    7.44 -aux
    7.45 -0.0044861524
    7.46 ---------
    7.47 -main
    7.48 -0.004303044
    7.49 -aux
    7.50 -0.004303044
    7.51 ---------
    7.52 -main
    7.53 -0.004242008
    7.54 -aux
    7.55 -0.004180972
    7.56 ---------
    7.57 -main
    7.58 -0.004242008
    7.59 -aux
    7.60 -0.004180972
    7.61 ---------
    7.62 -main
    7.63 -0.004150454
    7.64 -aux
    7.65 -0.004119936
    7.66 ---------
    7.67 -main
    7.68 -0.0039673457
    7.69 -aux
    7.70 -0.0039368276
    7.71 ---------
    7.72 -main
    7.73 -0.0039673457
    7.74 -aux
    7.75 -0.0039368276
    7.76 ---------
    7.77 -main
    7.78 -0.0039063096
    7.79 -aux
    7.80 -0.0038757916
     8.1 --- a/divergence/sqr-1kHz-2	Thu Nov 03 18:47:21 2011 -0700
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,77 +0,0 @@
     8.4 -creating new context via naddListener
     8.5 ---------
     8.6 -main
     8.7 -0.0
     8.8 -aux
     8.9 -0.0
    8.10 -I'm playing! <3
    8.11 ---------
    8.12 -main
    8.13 -0.004791333
    8.14 -aux
    8.15 -0.004791333
    8.16 ---------
    8.17 -main
    8.18 -0.004943923
    8.19 -aux
    8.20 -0.004943923
    8.21 ---------
    8.22 -main
    8.23 -0.004943923
    8.24 -aux
    8.25 -0.004943923
    8.26 ---------
    8.27 -main
    8.28 -0.004852369
    8.29 -aux
    8.30 -0.004852369
    8.31 ---------
    8.32 -main
    8.33 -0.0046082246
    8.34 -aux
    8.35 -0.0046082246
    8.36 ---------
    8.37 -main
    8.38 -0.0044861524
    8.39 -aux
    8.40 -0.0044861524
    8.41 ---------
    8.42 -main
    8.43 -0.0044861524
    8.44 -aux
    8.45 -0.0044861524
    8.46 ---------
    8.47 -main
    8.48 -0.004303044
    8.49 -aux
    8.50 -0.004303044
    8.51 ---------
    8.52 -main
    8.53 -0.004242008
    8.54 -aux
    8.55 -0.004180972
    8.56 ---------
    8.57 -main
    8.58 -0.004242008
    8.59 -aux
    8.60 -0.004180972
    8.61 ---------
    8.62 -main
    8.63 -0.004150454
    8.64 -aux
    8.65 -0.004119936
    8.66 ---------
    8.67 -main
    8.68 -0.0039673457
    8.69 -aux
    8.70 -0.0039368276
    8.71 ---------
    8.72 -main
    8.73 -0.0039673457
    8.74 -aux
    8.75 -0.0039368276
    8.76 ---------
    8.77 -main
    8.78 -0.0039063096
    8.79 -aux
    8.80 -0.0038757916
     9.1 --- a/divergence/with-supportEFX	Thu Nov 03 18:47:21 2011 -0700
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,129 +0,0 @@
     9.4 -OPENAL-AURELLEM: alc_init_config!!
     9.5 -creating new context via naddListener
     9.6 ---------
     9.7 -main
     9.8 -0.0
     9.9 -aux
    9.10 -0.0
    9.11 -0
    9.12 -channel -1
    9.13 -I'm playing! <3
    9.14 ---------
    9.15 -main
    9.16 -6.408789E-4
    9.17 -aux
    9.18 -6.408789E-4
    9.19 -1
    9.20 -channel 0
    9.21 ---------
    9.22 -main
    9.23 -0.0012512398
    9.24 -aux
    9.25 -0.0012512398
    9.26 -2
    9.27 -channel 0
    9.28 ---------
    9.29 -main
    9.30 -0.0018921187
    9.31 -aux
    9.32 -0.0018921187
    9.33 -3
    9.34 -channel 0
    9.35 ---------
    9.36 -main
    9.37 -0.0024719615
    9.38 -aux
    9.39 -0.0024719615
    9.40 -4
    9.41 -channel 0
    9.42 ---------
    9.43 -main
    9.44 -0.0030212863
    9.45 -aux
    9.46 -0.0030212863
    9.47 -5
    9.48 -channel 0
    9.49 ---------
    9.50 -main
    9.51 -0.003540093
    9.52 -aux
    9.53 -0.003540093
    9.54 -6
    9.55 -channel 0
    9.56 ---------
    9.57 -main
    9.58 -0.004089418
    9.59 -aux
    9.60 -0.004089418
    9.61 -7
    9.62 -channel 0
    9.63 ---------
    9.64 -main
    9.65 -0.0045471885
    9.66 -aux
    9.67 -0.0045471885
    9.68 -8
    9.69 -channel 0
    9.70 ---------
    9.71 -main
    9.72 -0.004943923
    9.73 -aux
    9.74 -0.004913405
    9.75 -inconsistency detected @ sample 16
    9.76 -main : -60
    9.77 -aux : -61
    9.78 -9
    9.79 -channel 0
    9.80 ---------
    9.81 -main
    9.82 -0.004943923
    9.83 -aux
    9.84 -0.004882887
    9.85 -inconsistency detected @ sample 0
    9.86 -main : -96
    9.87 -aux : -97
    9.88 -10
    9.89 -channel 0
    9.90 ---------
    9.91 -main
    9.92 -0.004791333
    9.93 -aux
    9.94 -0.004760815
    9.95 -inconsistency detected @ sample 0
    9.96 -main : -59
    9.97 -aux : -58
    9.98 -11
    9.99 -channel 0
   9.100 ---------
   9.101 -main
   9.102 -0.0046082246
   9.103 -aux
   9.104 -0.0045777066
   9.105 -inconsistency detected @ sample 0
   9.106 -main : -96
   9.107 -aux : -95
   9.108 -12
   9.109 -channel 0
   9.110 ---------
   9.111 -main
   9.112 -0.0046082246
   9.113 -aux
   9.114 -0.0045777066
   9.115 -inconsistency detected @ sample 0
   9.116 -main : -107
   9.117 -aux : -108
   9.118 -13
   9.119 -channel 0
   9.120 ---------
   9.121 -main
   9.122 -0.0044556344
   9.123 -aux
   9.124 -0.0044251163
   9.125 -inconsistency detected @ sample 0
   9.126 -main : -55
   9.127 -aux : -54
   9.128 -14
   9.129 -channel 0
   9.130 -AL lib: ALc.c:2463: alcCloseDevice(): destroying 1 Context(s)
   9.131 -AL lib: ALc.c:2069: alcDestroyContext(): deleting 64 Source(s)
   9.132 -AL lib: ALc.c:2471: alcCloseDevice(): deleting 1 Buffer(s)
    10.1 --- a/divergence/without-supportEFX	Thu Nov 03 18:47:21 2011 -0700
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,129 +0,0 @@
    10.4 -OPENAL-AURELLEM: alc_init_config!!
    10.5 -creating new context via naddListener
    10.6 ---------
    10.7 -main
    10.8 -0.0
    10.9 -aux
   10.10 -0.0
   10.11 -0
   10.12 -channel -1
   10.13 -I'm playing! <3
   10.14 ---------
   10.15 -main
   10.16 -6.408789E-4
   10.17 -aux
   10.18 -6.408789E-4
   10.19 -1
   10.20 -channel 0
   10.21 ---------
   10.22 -main
   10.23 -0.0012512398
   10.24 -aux
   10.25 -0.0012512398
   10.26 -2
   10.27 -channel 0
   10.28 ---------
   10.29 -main
   10.30 -0.0018921187
   10.31 -aux
   10.32 -0.0018921187
   10.33 -3
   10.34 -channel 0
   10.35 ---------
   10.36 -main
   10.37 -0.0024719615
   10.38 -aux
   10.39 -0.0024719615
   10.40 -4
   10.41 -channel 0
   10.42 ---------
   10.43 -main
   10.44 -0.0030212863
   10.45 -aux
   10.46 -0.0030212863
   10.47 -5
   10.48 -channel 0
   10.49 ---------
   10.50 -main
   10.51 -0.003540093
   10.52 -aux
   10.53 -0.003540093
   10.54 -6
   10.55 -channel 0
   10.56 ---------
   10.57 -main
   10.58 -0.004089418
   10.59 -aux
   10.60 -0.004089418
   10.61 -7
   10.62 -channel 0
   10.63 ---------
   10.64 -main
   10.65 -0.0045471885
   10.66 -aux
   10.67 -0.0045471885
   10.68 -8
   10.69 -channel 0
   10.70 ---------
   10.71 -main
   10.72 -0.004943923
   10.73 -aux
   10.74 -0.004913405
   10.75 -inconsistency detected @ sample 16
   10.76 -main : -60
   10.77 -aux : -61
   10.78 -9
   10.79 -channel 0
   10.80 ---------
   10.81 -main
   10.82 -0.004943923
   10.83 -aux
   10.84 -0.004882887
   10.85 -inconsistency detected @ sample 0
   10.86 -main : -96
   10.87 -aux : -97
   10.88 -10
   10.89 -channel 0
   10.90 ---------
   10.91 -main
   10.92 -0.004791333
   10.93 -aux
   10.94 -0.004760815
   10.95 -inconsistency detected @ sample 0
   10.96 -main : -59
   10.97 -aux : -58
   10.98 -11
   10.99 -channel 0
  10.100 ---------
  10.101 -main
  10.102 -0.0046082246
  10.103 -aux
  10.104 -0.0045777066
  10.105 -inconsistency detected @ sample 0
  10.106 -main : -96
  10.107 -aux : -95
  10.108 -12
  10.109 -channel 0
  10.110 ---------
  10.111 -main
  10.112 -0.0046082246
  10.113 -aux
  10.114 -0.0045777066
  10.115 -inconsistency detected @ sample 0
  10.116 -main : -107
  10.117 -aux : -108
  10.118 -13
  10.119 -channel 0
  10.120 ---------
  10.121 -main
  10.122 -0.0044556344
  10.123 -aux
  10.124 -0.0044251163
  10.125 -inconsistency detected @ sample 0
  10.126 -main : -55
  10.127 -aux : -54
  10.128 -14
  10.129 -channel 0
  10.130 -AL lib: ALc.c:2463: alcCloseDevice(): destroying 1 Context(s)
  10.131 -AL lib: ALc.c:2069: alcDestroyContext(): deleting 64 Source(s)
  10.132 -AL lib: ALc.c:2471: alcCloseDevice(): deleting 1 Buffer(s)
    11.1 --- a/src/com/aurellem/capture/audio/AudioSendRenderer.java	Thu Nov 03 18:47:21 2011 -0700
    11.2 +++ b/src/com/aurellem/capture/audio/AudioSendRenderer.java	Wed Nov 30 06:32:36 2011 -0700
    11.3 @@ -1,5 +1,6 @@
    11.4  package com.aurellem.capture.audio;
    11.5  
    11.6 +import java.io.IOException;
    11.7  import java.lang.reflect.Field;
    11.8  import java.nio.ByteBuffer;
    11.9  import java.util.HashMap;
   11.10 @@ -20,6 +21,8 @@
   11.11  import com.jme3.audio.Listener;
   11.12  import com.jme3.audio.lwjgl.LwjglAudioRenderer;
   11.13  import com.jme3.math.Vector3f;
   11.14 +import com.jme3.system.JmeSystem;
   11.15 +import com.jme3.system.Natives;
   11.16  import com.jme3.util.BufferUtils;
   11.17  
   11.18  public class AudioSendRenderer 
   11.19 @@ -104,6 +107,25 @@
   11.20  	 * instead to buffers which it makes available via JNI.
   11.21  	 */
   11.22  	public void initInThread(){
   11.23 +		
   11.24 +		try{
   11.25 +			switch (JmeSystem.getPlatform()){
   11.26 +			case Windows64:
   11.27 +				Natives.extractNativeLib("windows/audioSend", "OpenAL64", true, true);
   11.28 +				break;
   11.29 +			case Windows32:
   11.30 +				Natives.extractNativeLib("windows/audioSend", "OpenAL32", true, true);	
   11.31 +				break;
   11.32 +			case Linux64:
   11.33 +				Natives.extractNativeLib("linux/audioSend", "openal64", true, true);
   11.34 +				break;
   11.35 +			case Linux32:
   11.36 +				Natives.extractNativeLib("linux/audioSend", "openal", true, true);
   11.37 +				break;
   11.38 +			}
   11.39 +		}
   11.40 +		catch (IOException ex) {ex.printStackTrace();}
   11.41 +
   11.42  		try{
   11.43              if (!AL.isCreated()){
   11.44                  AL.create("Multiple Audio Send", 44100, 60, false);
    12.1 --- a/src/com/aurellem/capture/examples/Advanced.java	Thu Nov 03 18:47:21 2011 -0700
    12.2 +++ b/src/com/aurellem/capture/examples/Advanced.java	Wed Nov 30 06:32:36 2011 -0700
    12.3 @@ -34,6 +34,7 @@
    12.4  import com.jme3.scene.shape.Box;
    12.5  import com.jme3.scene.shape.Sphere;
    12.6  import com.jme3.system.AppSettings;
    12.7 +import com.jme3.system.Natives;
    12.8  
    12.9  
   12.10  /**
   12.11 @@ -73,12 +74,25 @@
   12.12  		app.setSettings(settings);
   12.13  		app.setShowSettings(false);
   12.14  		app.setPauseOnLostFocus(false);
   12.15 -
   12.16 +		
   12.17 +		
   12.18 +		
   12.19  		try {
   12.20  			Capture.captureVideo(app, File.createTempFile("advanced",".avi"));
   12.21  			Capture.captureAudio(app, File.createTempFile("advanced", ".wav"));
   12.22  			}
   12.23  		catch (IOException e) {e.printStackTrace();}
   12.24 +		
   12.25 +		app.start();
   12.26 +	}
   12.27 +	
   12.28 +	public static void test(){
   12.29 +		Advanced app = new Advanced();
   12.30 +		AppSettings settings = new AppSettings(true);
   12.31 +		settings.setAudioRenderer("Send");
   12.32 +		app.setSettings(settings);
   12.33 +		app.setShowSettings(false);
   12.34 +		app.setPauseOnLostFocus(false);
   12.35  		app.start();
   12.36  	}
   12.37  
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/transcoding.txt	Wed Nov 30 06:32:36 2011 -0700
    13.3 @@ -0,0 +1,12 @@
    13.4 +ffmpeg -r 60 -b 5000k -i out/%07d.png out.ogg
    13.5 +
    13.6 +
    13.7 +
    13.8 +# this is wrong.  Why is is wrong!@
    13.9 +#  ffmpeg -i main.wav -acodec libvorbis -i out.ogg -vcodec copy final.ogg
   13.10 +
   13.11 +
   13.12 +# it's wrong because the inputs need to come first?
   13.13 +ffmpeg -i main.wav -i out.ogg -sameq -acodec libvorbis -vcodec copy final.ogg
   13.14 +# apparently
   13.15 +