wav_write float fs handling & tests

ready for testing & merge @Eric89GXL