now the data captured while encoding WAV is not lost

this is especially helpful when you are sending chunks of wav to server.