Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
84d53173
Commit
84d53173
authored
Jan 20, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Remove the now obsolete IDirectSoundBufferImpl_Destroy().
parent
c7f5f10a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
18 deletions
+7
-18
buffer.c
dlls/dsound/buffer.c
+5
-14
dsound.c
dlls/dsound/dsound.c
+2
-2
dsound_private.h
dlls/dsound/dsound_private.h
+0
-2
No files found.
dlls/dsound/buffer.c
View file @
84d53173
...
...
@@ -964,6 +964,11 @@ HRESULT IDirectSoundBufferImpl_Create(
void
secondarybuffer_destroy
(
IDirectSoundBufferImpl
*
This
)
{
ULONG
ref
=
InterlockedIncrement
(
&
This
->
numIfaces
);
if
(
ref
>
1
)
WARN
(
"Destroying buffer with %u in use interfaces
\n
"
,
ref
-
1
);
DirectSoundDevice_RemoveBuffer
(
This
->
device
,
This
);
RtlDeleteResource
(
&
This
->
lock
);
...
...
@@ -981,20 +986,6 @@ void secondarybuffer_destroy(IDirectSoundBufferImpl *This)
TRACE
(
"(%p) released
\n
"
,
This
);
}
HRESULT
IDirectSoundBufferImpl_Destroy
(
IDirectSoundBufferImpl
*
pdsb
)
{
TRACE
(
"(%p)
\n
"
,
pdsb
);
/* This keeps the *_Destroy functions from possibly deleting
* this object until it is ready to be deleted */
InterlockedIncrement
(
&
pdsb
->
numIfaces
);
secondarybuffer_destroy
(
pdsb
);
return
S_OK
;
}
HRESULT
IDirectSoundBufferImpl_Duplicate
(
DirectSoundDevice
*
device
,
IDirectSoundBufferImpl
**
ppdsb
,
...
...
dlls/dsound/dsound.c
View file @
84d53173
...
...
@@ -1244,7 +1244,7 @@ ULONG DirectSoundDevice_Release(DirectSoundDevice * device)
/* The kill event should have allowed the timer process to expire
* but try to grab the lock just in case. Can't hold lock because
*
IDirectSoundBufferImpl_D
estroy also grabs the lock */
*
secondarybuffer_d
estroy also grabs the lock */
RtlAcquireResourceShared
(
&
(
device
->
buffer_list_lock
),
TRUE
);
RtlReleaseResource
(
&
(
device
->
buffer_list_lock
));
...
...
@@ -1256,7 +1256,7 @@ ULONG DirectSoundDevice_Release(DirectSoundDevice * device)
if
(
device
->
buffers
)
{
WARN
(
"%d secondary buffers not released
\n
"
,
device
->
nrofbuffers
);
for
(
i
=
0
;
i
<
device
->
nrofbuffers
;
i
++
)
IDirectSoundBufferImpl_D
estroy
(
device
->
buffers
[
i
]);
secondarybuffer_d
estroy
(
device
->
buffers
[
i
]);
}
if
(
device
->
primary
)
{
...
...
dlls/dsound/dsound_private.h
View file @
84d53173
...
...
@@ -199,8 +199,6 @@ HRESULT IDirectSoundBufferImpl_Create(
DirectSoundDevice
*
device
,
IDirectSoundBufferImpl
**
ppdsb
,
LPCDSBUFFERDESC
dsbd
)
DECLSPEC_HIDDEN
;
HRESULT
IDirectSoundBufferImpl_Destroy
(
IDirectSoundBufferImpl
*
pdsb
)
DECLSPEC_HIDDEN
;
HRESULT
IDirectSoundBufferImpl_Duplicate
(
DirectSoundDevice
*
device
,
IDirectSoundBufferImpl
**
ppdsb
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment