Reduce the use of the dsound global variable by passing address to functions. This is in preparation of supporting multiple DirectSound devices. We can't remove all uses because an mmtimer callback can be called even after the timer is killed. Windows has an mmtimer flag that prevents this but wine doesn't implement it.
Attachment:
dsound.diff
Description: application/unknown-content-type-diff_auto_file