partial implementation of DirectSound