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
91cc9ad5
Commit
91cc9ad5
authored
Mar 26, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Add support for AMMSF_ADDDEFAULTRENDERER for audio stream.
parent
f8015cd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
amstream.c
dlls/amstream/amstream.c
+25
-0
No files found.
dlls/amstream/amstream.c
View file @
91cc9ad5
...
...
@@ -339,6 +339,31 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_AddMediaStream(IAMMultiMediaStream
This
->
pStreams
[
This
->
nbStreams
]
=
pStream
;
This
->
nbStreams
++
;
if
(
dwFlags
&
AMMSF_ADDDEFAULTRENDERER
)
{
if
(
IsEqualGUID
(
PurposeId
,
&
MSPID_PrimaryAudio
))
{
IBaseFilter
*
dsoundrender_filter
;
hr
=
CoCreateInstance
(
&
CLSID_DSoundRender
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IBaseFilter
,
(
LPVOID
*
)
&
dsoundrender_filter
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IGraphBuilder_AddFilter
(
This
->
pFilterGraph
,
dsoundrender_filter
,
NULL
);
IBaseFilter_Release
(
dsoundrender_filter
);
}
if
(
FAILED
(
hr
))
{
IMediaStream_Release
(
pStream
);
pStream
=
NULL
;
This
->
nbStreams
--
;
}
}
else
{
FIXME
(
"Default renderer only supported for audio
\n
"
);
}
}
if
(
ppNewStream
)
*
ppNewStream
=
pStream
;
}
...
...
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