Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3ec0b056
Commit
3ec0b056
authored
Jan 17, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Support IKsPropertySet in the primary buffer too.
parent
48ca5924
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
22 deletions
+24
-22
buffer.c
dlls/dsound/buffer.c
+6
-2
primary.c
dlls/dsound/primary.c
+5
-2
ds3d.c
dlls/dsound/tests/ds3d.c
+13
-18
No files found.
dlls/dsound/buffer.c
View file @
3ec0b056
...
...
@@ -1159,8 +1159,12 @@ static ULONG WINAPI IKsPropertySetImpl_Release(IKsPropertySet *iface)
TRACE
(
"(%p) ref was %d
\n
"
,
This
,
ref
+
1
);
if
(
!
ref
&&
!
InterlockedDecrement
(
&
This
->
numIfaces
))
secondarybuffer_destroy
(
This
);
if
(
!
ref
&&
!
InterlockedDecrement
(
&
This
->
numIfaces
))
{
if
(
is_primary_buffer
(
This
))
primarybuffer_destroy
(
This
);
else
secondarybuffer_destroy
(
This
);
}
return
ref
;
}
...
...
dlls/dsound/primary.c
View file @
3ec0b056
...
...
@@ -1165,8 +1165,9 @@ static HRESULT WINAPI PrimaryBufferImpl_QueryInterface(IDirectSoundBuffer *iface
}
if
(
IsEqualGUID
(
&
IID_IKsPropertySet
,
riid
)
)
{
FIXME
(
"app requested IKsPropertySet on primary buffer
\n
"
);
return
E_NOINTERFACE
;
*
ppobj
=
&
This
->
IKsPropertySet_iface
;
IKsPropertySet_AddRef
(
&
This
->
IKsPropertySet_iface
);
return
S_OK
;
}
FIXME
(
"Unknown IID %s
\n
"
,
debugstr_guid
(
riid
)
);
...
...
@@ -1220,10 +1221,12 @@ HRESULT primarybuffer_create(DirectSoundDevice *device, IDirectSoundBufferImpl *
dsb
->
ref
=
0
;
dsb
->
ref3D
=
0
;
dsb
->
refiks
=
0
;
dsb
->
numIfaces
=
0
;
dsb
->
device
=
device
;
dsb
->
IDirectSoundBuffer8_iface
.
lpVtbl
=
(
IDirectSoundBuffer8Vtbl
*
)
&
dspbvt
;
dsb
->
IDirectSound3DListener_iface
.
lpVtbl
=
&
ds3dlvt
;
dsb
->
IKsPropertySet_iface
.
lpVtbl
=
&
iksbvt
;
dsb
->
dsbd
=
*
dsbd
;
/* IDirectSound3DListener */
...
...
dlls/dsound/tests/ds3d.c
View file @
3ec0b056
...
...
@@ -1213,15 +1213,13 @@ static HRESULT test_primary_3d_with_listener(LPGUID lpGuid)
!
(
dscaps
.
dwFlags
&
DSCAPS_EMULDRIVER
),
1
.
0
,
0
,
listener
,
0
,
0
,
FALSE
,
0
);
todo_wine
{
temp_buffer
=
NULL
;
rc
=
IDirectSound3DListener_QueryInterface
(
listener
,
&
IID_IKsPropertySet
,(
LPVOID
*
)
&
temp_buffer
);
ok
(
rc
==
DS_OK
&&
temp_buffer
!=
NULL
,
"IDirectSound3DListener_QueryInterface didn't handle IKsPropertySet: ret = %08x
\n
"
,
rc
);
if
(
temp_buffer
)
IKsPropertySet_Release
(
temp_buffer
);
}
temp_buffer
=
NULL
;
rc
=
IDirectSound3DListener_QueryInterface
(
listener
,
&
IID_IKsPropertySet
,
(
void
**
)
&
temp_buffer
);
ok
(
rc
==
DS_OK
&&
temp_buffer
!=
NULL
,
"IDirectSound3DListener_QueryInterface didn't handle IKsPropertySet: ret = %08x
\n
"
,
rc
);
if
(
temp_buffer
)
IKsPropertySet_Release
(
temp_buffer
);
}
/* Testing the reference counting */
...
...
@@ -1230,15 +1228,12 @@ static HRESULT test_primary_3d_with_listener(LPGUID lpGuid)
"references, should have 0
\n
"
,
ref
);
}
todo_wine
{
temp_buffer
=
NULL
;
rc
=
IDirectSoundBuffer_QueryInterface
(
primary
,
&
IID_IKsPropertySet
,(
LPVOID
*
)
&
temp_buffer
);
ok
(
rc
==
DS_OK
&&
temp_buffer
!=
NULL
,
"IDirectSoundBuffer_QueryInterface didn't handle IKsPropertySet on primary buffer: ret = %08x
\n
"
,
rc
);
if
(
temp_buffer
)
IKsPropertySet_Release
(
temp_buffer
);
}
temp_buffer
=
NULL
;
rc
=
IDirectSoundBuffer_QueryInterface
(
primary
,
&
IID_IKsPropertySet
,
(
void
**
)
&
temp_buffer
);
ok
(
rc
==
DS_OK
&&
temp_buffer
!=
NULL
,
"IDirectSoundBuffer_QueryInterface didn't handle IKsPropertySet on primary buffer: ret = %08x
\n
"
,
rc
);
if
(
temp_buffer
)
IKsPropertySet_Release
(
temp_buffer
);
/* Testing the reference counting */
ref
=
IDirectSoundBuffer_Release
(
primary
);
...
...
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