Hello guys :-) , i have this code: http://pastebin.com/fa902bf1 First, Java_JSpeexNative_init method is called and then the Java_JSpeexNative_encode method, which also includes decoding for testing purposes at this time. The problem is, i am getting weird output from speex decoder - it seems like only second half of 160byte array is correctly decoded, but the first one seems almost "empty". The same problem occurs in jspeex - Java port of Speex. At the input i have this signal: http://img225.imageshack.us/img225/4361/speexinput.png And as output i get: http://img87.imageshack.us/img87/1716/speexnative.png Does anyone know, where i was wrong? Thanks in advance ;) Regards, Tony