Minor fixes to playWave.