Mercurial > vba-clojure
diff java/src/com/aurellem/gb/Gb.java @ 524:7ef5c73ea8fa
working on recording sound. almost have it, but there is still unexplained popping sounds.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 23 Jun 2012 23:10:31 -0500 |
parents | d00096b6bf17 |
children | fa7676dbf6f2 |
line wrap: on
line diff
1.1 --- a/java/src/com/aurellem/gb/Gb.java Sat Jun 23 20:34:14 2012 -0500 1.2 +++ b/java/src/com/aurellem/gb/Gb.java Sat Jun 23 23:10:31 2012 -0500 1.3 @@ -101,7 +101,9 @@ 1.4 1.5 public static final int GB_MEMORY = 0x10000; 1.6 1.7 - public static final int SOUND_SIZE = 735 * 30 * 2; 1.8 + public static final int SOUND_SIZE = 1.9 + 44100*2; 1.10 + //1470*2; 1.11 1.12 public static native void getMemory(int[] store); 1.13 1.14 @@ -129,12 +131,12 @@ 1.15 1.16 public static native void getPixels(int[] store); 1.17 1.18 - public static native void getFrameSound(int[] store); 1.19 - 1.20 public static native void nwritePNG(String filename); 1.21 1.22 public static native int readMemory(int address); 1.23 1.24 + public static native void getFrameSound(byte[] store); 1.25 + 1.26 public static native int getSoundFrameWritten(); 1.27 1.28 public static native void setSoundFrameWritten(int frames);