testing DirectSound with sine waves, fixed some bugs