Code example for SoundPool

0
        super.onResume(); 
        mGLView.onResume();
    } 
     
     
    public SoundPool _sounds = new SoundPool(8,AudioManager.STREAM_MUSIC,0);
    public static int sound_load(String fname) {
        AssetManager am = app.getAssets();
        System.out.println("Sound load? :O");
        try { 
            AssetFileDescriptor fd = am.openFd(fname);
            int sid = app._sounds.load(fd.getFileDescriptor(),fd.getStartOffset(),fd.getLength(),1);
             
            return sid;
        } catch(IOException e) {
        	System.out.println("Sound Error in sound_load (java) file doesn't exist");
        } 
         
        return 0; 
    } 
    public static int sound_play(int sid) {