comparison 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
comparison
equal deleted inserted replaced
523:d00096b6bf17 524:7ef5c73ea8fa
99 99
100 public static final int NUM_REGISTERS = 29; 100 public static final int NUM_REGISTERS = 29;
101 101
102 public static final int GB_MEMORY = 0x10000; 102 public static final int GB_MEMORY = 0x10000;
103 103
104 public static final int SOUND_SIZE = 735 * 30 * 2; 104 public static final int SOUND_SIZE =
105 44100*2;
106 //1470*2;
105 107
106 public static native void getMemory(int[] store); 108 public static native void getMemory(int[] store);
107 109
108 public static native void writeMemory(int[] newMemory); 110 public static native void writeMemory(int[] newMemory);
109 111
127 129
128 public static final int DISPLAY_HEIGHT = 144; 130 public static final int DISPLAY_HEIGHT = 144;
129 131
130 public static native void getPixels(int[] store); 132 public static native void getPixels(int[] store);
131 133
132 public static native void getFrameSound(int[] store);
133
134 public static native void nwritePNG(String filename); 134 public static native void nwritePNG(String filename);
135 135
136 public static native int readMemory(int address); 136 public static native int readMemory(int address);
137 137
138 public static native void getFrameSound(byte[] store);
139
138 public static native int getSoundFrameWritten(); 140 public static native int getSoundFrameWritten();
139 141
140 public static native void setSoundFrameWritten(int frames); 142 public static native void setSoundFrameWritten(int frames);
141 143
142 } 144 }