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
6b64e009
Commit
6b64e009
authored
Aug 24, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Kill SecondaryBufferImpl with extreme prejudice.
parent
7da80d1f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
39 deletions
+9
-39
buffer.c
dlls/dsound/buffer.c
+0
-0
dsound.c
dlls/dsound/dsound.c
+9
-21
dsound_private.h
dlls/dsound/dsound_private.h
+0
-16
sound3d.c
dlls/dsound/sound3d.c
+0
-2
No files found.
dlls/dsound/buffer.c
View file @
6b64e009
This diff is collapsed.
Click to expand it.
dlls/dsound/dsound.c
View file @
6b64e009
...
...
@@ -1630,15 +1630,10 @@ HRESULT DirectSoundDevice_CreateSoundBuffer(
}
hres
=
IDirectSoundBufferImpl_Create
(
device
,
&
dsb
,
dsbd
);
if
(
dsb
)
{
hres
=
SecondaryBufferImpl_Create
(
dsb
,
(
SecondaryBufferImpl
**
)
ppdsb
);
if
(
*
ppdsb
)
{
dsb
->
secondary
=
(
SecondaryBufferImpl
*
)
*
ppdsb
;
IDirectSoundBuffer_AddRef
(
*
ppdsb
);
}
else
WARN
(
"SecondaryBufferImpl_Create failed
\n
"
);
}
else
WARN
(
"IDirectSoundBufferImpl_Create failed
\n
"
);
if
(
dsb
)
*
ppdsb
=
(
IDirectSoundBuffer
*
)
&
dsb
->
IDirectSoundBuffer8_iface
;
else
WARN
(
"IDirectSoundBufferImpl_Create failed
\n
"
);
}
return
hres
;
...
...
@@ -1676,18 +1671,11 @@ HRESULT DirectSoundDevice_DuplicateSoundBuffer(
}
/* duplicate the actual buffer implementation */
hres
=
IDirectSoundBufferImpl_Duplicate
(
device
,
&
dsb
,
((
SecondaryBufferImpl
*
)
psb
)
->
dsb
);
if
(
hres
==
DS_OK
)
{
/* create a new secondary buffer using the new implementation */
hres
=
SecondaryBufferImpl_Create
(
dsb
,
(
SecondaryBufferImpl
**
)
ppdsb
);
if
(
*
ppdsb
)
{
dsb
->
secondary
=
(
SecondaryBufferImpl
*
)
*
ppdsb
;
IDirectSoundBuffer_AddRef
((
LPDIRECTSOUNDBUFFER8
)
*
ppdsb
);
}
else
WARN
(
"SecondaryBufferImpl_Create failed
\n
"
);
}
hres
=
IDirectSoundBufferImpl_Duplicate
(
device
,
&
dsb
,
(
IDirectSoundBufferImpl
*
)
psb
);
if
(
hres
==
DS_OK
)
*
ppdsb
=
(
IDirectSoundBuffer
*
)
&
dsb
->
IDirectSoundBuffer8_iface
;
else
WARN
(
"IDirectSoundBufferImpl_Duplicate failed
\n
"
);
return
hres
;
}
...
...
dlls/dsound/dsound_private.h
View file @
6b64e009
...
...
@@ -58,7 +58,6 @@ typedef struct IDirectSound3DListenerImpl IDirectSound3DListenerImpl;
typedef
struct
IDirectSound3DBufferImpl
IDirectSound3DBufferImpl
;
typedef
struct
IKsBufferPropertySetImpl
IKsBufferPropertySetImpl
;
typedef
struct
PrimaryBufferImpl
PrimaryBufferImpl
;
typedef
struct
SecondaryBufferImpl
SecondaryBufferImpl
;
typedef
struct
DirectSoundDevice
DirectSoundDevice
;
typedef
struct
DirectSoundCaptureDevice
DirectSoundCaptureDevice
;
...
...
@@ -162,7 +161,6 @@ struct IDirectSoundBufferImpl
IDirectSoundBuffer8
IDirectSoundBuffer8_iface
;
LONG
ref
;
/* IDirectSoundBufferImpl fields */
SecondaryBufferImpl
*
secondary
;
DirectSoundDevice
*
device
;
RTL_RWLOCK
lock
;
PIDSDRIVERBUFFER
hwbuf
;
...
...
@@ -210,20 +208,6 @@ HRESULT IDirectSoundBufferImpl_Duplicate(
IDirectSoundBufferImpl
*
pdsb
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* SecondaryBuffer implementation structure
*/
struct
SecondaryBufferImpl
{
const
IDirectSoundBuffer8Vtbl
*
lpVtbl
;
LONG
ref
;
IDirectSoundBufferImpl
*
dsb
;
};
HRESULT
SecondaryBufferImpl_Create
(
IDirectSoundBufferImpl
*
dsb
,
SecondaryBufferImpl
**
pdsb
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* PrimaryBuffer implementation structure
*/
struct
PrimaryBufferImpl
...
...
dlls/dsound/sound3d.c
View file @
6b64e009
...
...
@@ -710,8 +710,6 @@ HRESULT IDirectSound3DBufferImpl_Create(
ds3db
->
dsb
->
ds3db_need_recalc
=
TRUE
;
IDirectSoundBuffer_AddRef
((
LPDIRECTSOUNDBUFFER8
)
dsb
);
*
pds3db
=
ds3db
;
return
S_OK
;
}
...
...
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