cleanup the mess; skip WAV header; render silence when buffer is empty