android - What's the influence of Log? -
private static byte[] encodeddata = new byte[20]; private static speex speex = speex.getinstance(); public static byte[] raw2spx(short[] audiodata) { //log.e("abc", "length:" + audiodata.length); speex.encode(audiodata, encodeddata, audiodata.length); return encodeddata; }
i wrote function this, makes strange if don't comment function of log.e()
, app can run well. if comment, logcat shows me arrayindexoutbounds
exception. why?
Comments
Post a Comment