openStream can now set a callback with ffi double*