support for sample rate change on the fly. draft. not working atm