Fixed sound disappearing after on-the-fly sample rate changes and after certain underrun conditions. Compilation fixes for when USE_DSOUND3D is defined.