comparison java/src/com/aurellem/gb/Gb.java @ 523:d00096b6bf17

added sound introspection abilities.
author Robert McIntyre <rlm@mit.edu>
date Sat, 23 Jun 2012 20:34:14 -0500
parents 5596cd4a3fc6
children 7ef5c73ea8fa
comparison
equal deleted inserted replaced
522:5596cd4a3fc6 523:d00096b6bf17
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;
105
104 public static native void getMemory(int[] store); 106 public static native void getMemory(int[] store);
105 107
106 public static native void writeMemory(int[] newMemory); 108 public static native void writeMemory(int[] newMemory);
107 109
108 public static native void getRAM(int[] store); 110 public static native void getRAM(int[] store);
125 127
126 public static final int DISPLAY_HEIGHT = 144; 128 public static final int DISPLAY_HEIGHT = 144;
127 129
128 public static native void getPixels(int[] store); 130 public static native void getPixels(int[] store);
129 131
132 public static native void getFrameSound(int[] store);
133
130 public static native void nwritePNG(String filename); 134 public static native void nwritePNG(String filename);
131 135
132 public static native int readMemory(int address); 136 public static native int readMemory(int address);
137
138 public static native int getSoundFrameWritten();
139
140 public static native void setSoundFrameWritten(int frames);
141
133 } 142 }