private double getdatafrombuffer(FloatBuffer fb, int index) { return Math.sqrt(Math.pow(fb.get(4 * index + 2), 2) + Math.pow(fb.get(4 * index + 3), 2)) * 0.05; }