diff 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
line wrap: on
line diff
     1.1 --- a/java/src/com/aurellem/gb/Gb.java	Sat Jun 23 19:12:26 2012 -0500
     1.2 +++ b/java/src/com/aurellem/gb/Gb.java	Sat Jun 23 20:34:14 2012 -0500
     1.3 @@ -101,6 +101,8 @@
     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 +
     1.9      public static native void getMemory(int[] store);
    1.10  
    1.11      public static native void writeMemory(int[] newMemory);
    1.12 @@ -127,7 +129,14 @@
    1.13  
    1.14      public static native void getPixels(int[] store);
    1.15  
    1.16 +    public static native void getFrameSound(int[] store);
    1.17 +
    1.18      public static native void nwritePNG(String filename);
    1.19  
    1.20      public static native int readMemory(int address);
    1.21 +    
    1.22 +    public static native int getSoundFrameWritten();
    1.23 +
    1.24 +    public static native void setSoundFrameWritten(int frames);
    1.25 +
    1.26  }