Fix float to int32_t sample conversion