bearophile Mon, 03 Jan 2011 12:25:13 -0800
Bob Cowdery: I don't know what your bug is, but this is bad D code: > r = lib_speex_encode(cast(short*)smpls, cast(char*)bytes);
Use the "ptr" field of D arrays: r = lib_speex_encode(smpls.ptr, bytes.ptr); Bye, bearophile