/* * Takes a new ArrayList to use as the data for the sound. * Will keep the same audio format (sampling rate, depth (which should be 16!), filename, etc). */ public void setData(ArrayList<Integer> data) { this.data = data; myHelper.setData(data); refresh(false); // byte array is updated in the Helper.setData(), no need to do it again zoomReset(); }