replace old method to append audio data with Java's built in System.arraycopy