Consolidate secondary buffer list processing and locking.
commit1d785b85c2fe96f8f813a27bbf9d6859543ba818
authorRobert Reif <reif@earthlink.net>
Tue, 7 Sep 2004 19:32:21 +0000 (7 19:32 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 7 Sep 2004 19:32:21 +0000 (7 19:32 +0000)
tree705146fef2e15f1c63c7ef2f54cfe33279b565f4
parent002d91199a2cb29e3892958514fe295220eab391
Consolidate secondary buffer list processing and locking.
Two new functions DSOUND_AddBuffer and DSOUND_RemoveBuffer
have been added and the locking has been moved into these functions.
Renamed IDirectSound lock to buffer_list_lock.
Removed redundant test for IID_IDirectSoundNotify and
IID_IDirectSoundNotify8 because they are the same.
Removed check for invalid buffers on list because that shouldn't
happen anymore because of fixed 3d buffer reference counting.
Minor code cleanups.
dlls/dsound/buffer.c
dlls/dsound/dsound.c
dlls/dsound/dsound_main.c
dlls/dsound/dsound_private.h
dlls/dsound/mixer.c
dlls/dsound/primary.c