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
373ab785
Commit
373ab785
authored
Dec 06, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Dec 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always create a property set for secondary buffers.
parent
74d32620
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
buffer.c
dlls/dsound/buffer.c
+1
-6
propset.c
dlls/dsound/propset.c
+12
-0
No files found.
dlls/dsound/buffer.c
View file @
373ab785
...
@@ -986,18 +986,13 @@ static HRESULT WINAPI IDirectSoundBufferImpl_QueryInterface(
...
@@ -986,18 +986,13 @@ static HRESULT WINAPI IDirectSoundBufferImpl_QueryInterface(
}
}
if
(
IsEqualGUID
(
&
IID_IKsPropertySet
,
riid
)
)
{
if
(
IsEqualGUID
(
&
IID_IKsPropertySet
,
riid
)
)
{
/* only supported on hardware 3D secondary buffers */
if
(
!
(
This
->
dsbd
.
dwFlags
&
DSBCAPS_PRIMARYBUFFER
)
&&
(
This
->
dsbd
.
dwFlags
&
DSBCAPS_CTRL3D
)
&&
(
This
->
hwbuf
!=
NULL
)
)
{
if
(
!
This
->
iks
)
if
(
!
This
->
iks
)
IKsBufferPropertySetImpl_Create
(
This
,
&
(
This
->
iks
));
IKsBufferPropertySetImpl_Create
(
This
,
&
(
This
->
iks
));
if
(
This
->
iks
)
{
if
(
This
->
iks
)
{
IKsPropertySet_AddRef
((
LPKSPROPERTYSET
)
*
ppobj
);
IKsPropertySet_AddRef
((
LPKSPROPERTYSET
)
This
->
iks
);
*
ppobj
=
This
->
iks
;
*
ppobj
=
This
->
iks
;
return
S_OK
;
return
S_OK
;
}
}
}
WARN
(
"IID_IKsPropertySet
\n
"
);
WARN
(
"IID_IKsPropertySet
\n
"
);
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
...
...
dlls/dsound/propset.c
View file @
373ab785
...
@@ -109,6 +109,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Get(
...
@@ -109,6 +109,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Get(
TRACE
(
"(iface=%p,guidPropSet=%s,dwPropID=%ld,pInstanceData=%p,cbInstanceData=%ld,pPropData=%p,cbPropData=%ld,pcbReturned=%p)
\n
"
,
TRACE
(
"(iface=%p,guidPropSet=%s,dwPropID=%ld,pInstanceData=%p,cbInstanceData=%ld,pPropData=%p,cbPropData=%ld,pcbReturned=%p)
\n
"
,
This
,
debugstr_guid
(
guidPropSet
),
dwPropID
,
pInstanceData
,
cbInstanceData
,
pPropData
,
cbPropData
,
pcbReturned
);
This
,
debugstr_guid
(
guidPropSet
),
dwPropID
,
pInstanceData
,
cbInstanceData
,
pPropData
,
cbPropData
,
pcbReturned
);
if
(
This
->
dsb
->
hwbuf
)
{
IDsDriver_QueryInterface
(
This
->
dsb
->
hwbuf
,
&
IID_IDsDriverPropertySet
,
(
void
**
)
&
ps
);
IDsDriver_QueryInterface
(
This
->
dsb
->
hwbuf
,
&
IID_IDsDriverPropertySet
,
(
void
**
)
&
ps
);
if
(
ps
)
{
if
(
ps
)
{
...
@@ -126,6 +127,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Get(
...
@@ -126,6 +127,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Get(
return
hres
;
return
hres
;
}
}
}
return
E_PROP_ID_UNSUPPORTED
;
return
E_PROP_ID_UNSUPPORTED
;
}
}
...
@@ -143,6 +145,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Set(
...
@@ -143,6 +145,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Set(
PIDSDRIVERPROPERTYSET
ps
;
PIDSDRIVERPROPERTYSET
ps
;
TRACE
(
"(%p,%s,%ld,%p,%ld,%p,%ld)
\n
"
,
This
,
debugstr_guid
(
guidPropSet
),
dwPropID
,
pInstanceData
,
cbInstanceData
,
pPropData
,
cbPropData
);
TRACE
(
"(%p,%s,%ld,%p,%ld,%p,%ld)
\n
"
,
This
,
debugstr_guid
(
guidPropSet
),
dwPropID
,
pInstanceData
,
cbInstanceData
,
pPropData
,
cbPropData
);
if
(
This
->
dsb
->
hwbuf
)
{
IDsDriver_QueryInterface
(
This
->
dsb
->
hwbuf
,
&
IID_IDsDriverPropertySet
,
(
void
**
)
&
ps
);
IDsDriver_QueryInterface
(
This
->
dsb
->
hwbuf
,
&
IID_IDsDriverPropertySet
,
(
void
**
)
&
ps
);
if
(
ps
)
{
if
(
ps
)
{
...
@@ -159,6 +162,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Set(
...
@@ -159,6 +162,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_Set(
return
hres
;
return
hres
;
}
}
}
return
E_PROP_ID_UNSUPPORTED
;
return
E_PROP_ID_UNSUPPORTED
;
}
}
...
@@ -173,6 +177,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_QuerySupport(
...
@@ -173,6 +177,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_QuerySupport(
PIDSDRIVERPROPERTYSET
ps
;
PIDSDRIVERPROPERTYSET
ps
;
TRACE
(
"(%p,%s,%ld,%p)
\n
"
,
This
,
debugstr_guid
(
guidPropSet
),
dwPropID
,
pTypeSupport
);
TRACE
(
"(%p,%s,%ld,%p)
\n
"
,
This
,
debugstr_guid
(
guidPropSet
),
dwPropID
,
pTypeSupport
);
if
(
This
->
dsb
->
hwbuf
)
{
IDsDriver_QueryInterface
(
This
->
dsb
->
hwbuf
,
&
IID_IDsDriverPropertySet
,
(
void
**
)
&
ps
);
IDsDriver_QueryInterface
(
This
->
dsb
->
hwbuf
,
&
IID_IDsDriverPropertySet
,
(
void
**
)
&
ps
);
if
(
ps
)
{
if
(
ps
)
{
...
@@ -184,6 +189,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_QuerySupport(
...
@@ -184,6 +189,7 @@ static HRESULT WINAPI IKsBufferPropertySetImpl_QuerySupport(
return
hres
;
return
hres
;
}
}
}
return
E_PROP_ID_UNSUPPORTED
;
return
E_PROP_ID_UNSUPPORTED
;
}
}
...
@@ -205,6 +211,12 @@ HRESULT WINAPI IKsBufferPropertySetImpl_Create(
...
@@ -205,6 +211,12 @@ HRESULT WINAPI IKsBufferPropertySetImpl_Create(
TRACE
(
"(%p,%p)
\n
"
,
dsb
,
piks
);
TRACE
(
"(%p,%p)
\n
"
,
dsb
,
piks
);
iks
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
iks
));
iks
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
iks
));
if
(
iks
==
0
)
{
WARN
(
"out of memory
\n
"
);
*
piks
=
NULL
;
return
DSERR_OUTOFMEMORY
;
}
iks
->
ref
=
0
;
iks
->
ref
=
0
;
iks
->
dsb
=
dsb
;
iks
->
dsb
=
dsb
;
dsb
->
iks
=
iks
;
dsb
->
iks
=
iks
;
...
...
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