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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -