Enhanced synchronization between playback thread and stop/close commands Now using notification for detecting when a WAVEHDR has been played