private byte[] toByteArray(short[] ss, int offs, int len) {
		byte[] bb = new byte[len * 2];
		int idx = 0;
		short s;
		while (len-- > 0) {
			s = ss[offs++];
			bb[idx++] = (byte) s;
			bb[idx++] = (byte) (s >>> 8);
		}
		return bb;
	}