Some notable waveOut bugfixing - it should work more or less reliable now