added support for directsound