wavpack: determine sample_fmt before requesting a buffer