added functional for playing WAV files
added function for waiting end of playing
fixed playing voices
removed debug output