WAV generation working