public static ShortBuffer Wrap(short[] data) { ShortBuffer buf = new ShortBuffer(new byte[data.Length * 2], 0, data.Length * 2); buf.Put(data); return buf; }