switched encoder/decoder to Float32Array