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
0196da9b
Commit
0196da9b
authored
Nov 04, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add IAMFilterMiscFlags to directsound renderer.
parent
89223ff7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
dsoundrender.c
dlls/quartz/dsoundrender.c
+35
-0
No files found.
dlls/quartz/dsoundrender.c
View file @
0196da9b
...
...
@@ -47,6 +47,7 @@ static const IBasicAudioVtbl IBasicAudio_Vtbl;
static
const
IReferenceClockVtbl
IReferenceClock_Vtbl
;
static
const
IMediaSeekingVtbl
IMediaSeeking_Vtbl
;
static
const
IAMDirectSoundVtbl
IAMDirectSound_Vtbl
;
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
;
typedef
struct
DSoundRenderImpl
{
...
...
@@ -55,6 +56,7 @@ typedef struct DSoundRenderImpl
const
IBasicAudioVtbl
*
IBasicAudio_vtbl
;
const
IReferenceClockVtbl
*
IReferenceClock_vtbl
;
const
IAMDirectSoundVtbl
*
IAMDirectSound_vtbl
;
const
IAMFilterMiscFlagsVtbl
*
IAMFilterMiscFlags_vtbl
;
IUnknown
*
seekthru_unk
;
REFERENCE_TIME
rtLastStop
;
...
...
@@ -419,6 +421,7 @@ HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv)
pDSoundRender
->
IBasicAudio_vtbl
=
&
IBasicAudio_Vtbl
;
pDSoundRender
->
IReferenceClock_vtbl
=
&
IReferenceClock_Vtbl
;
pDSoundRender
->
IAMDirectSound_vtbl
=
&
IAMDirectSound_Vtbl
;
pDSoundRender
->
IAMFilterMiscFlags_vtbl
=
&
IAMFilterMiscFlags_Vtbl
;
/* construct input pin */
piInput
.
dir
=
PINDIR_INPUT
;
...
...
@@ -486,6 +489,8 @@ static HRESULT WINAPI DSoundRender_QueryInterface(IBaseFilter * iface, REFIID ri
return
IUnknown_QueryInterface
(
This
->
seekthru_unk
,
riid
,
ppv
);
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMDirectSound
))
*
ppv
=
&
This
->
IAMDirectSound_vtbl
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMFilterMiscFlags
))
*
ppv
=
&
This
->
IAMFilterMiscFlags_vtbl
;
if
(
*
ppv
)
{
...
...
@@ -1296,3 +1301,33 @@ static const IAMDirectSoundVtbl IAMDirectSound_Vtbl =
AMDirectSound_SetFocusWindow
,
AMDirectSound_GetFocusWindow
};
static
DSoundRenderImpl
*
from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
(
DSoundRenderImpl
*
)((
char
*
)
iface
-
offsetof
(
DSoundRenderImpl
,
IAMFilterMiscFlags_vtbl
));
}
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
const
REFIID
riid
,
void
**
ppv
)
{
DSoundRenderImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
DSoundRenderImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
DSoundRenderImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_GetMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
AM_FILTER_MISC_FLAGS_IS_RENDERER
;
}
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
=
{
AMFilterMiscFlags_QueryInterface
,
AMFilterMiscFlags_AddRef
,
AMFilterMiscFlags_Release
,
AMFilterMiscFlags_GetMiscFlags
};
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