This patch insures that the hardware primary buffer is deleted and recreated properly when changing the primary format. It also makes sure the proper frequency adjust is calculated for the actual format used rather than the requested one.
This should only affect oss, alsa, and audioio and I have tested oss already. Please test it with the dsound tests in the interactive mode so sounds are actually played. Make sure "HardwareAcceleration" in the config file is not set to 'Emulation" so the dsound HAL driver is used.
Thanks,
Bob.