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
17a1c646
Commit
17a1c646
authored
Mar 21, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Mar 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Play silence in directsound renderer on end of stream notification.
parent
f8bb8384
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
dsoundrender.c
dlls/quartz/dsoundrender.c
+13
-3
No files found.
dlls/quartz/dsoundrender.c
View file @
17a1c646
...
...
@@ -252,7 +252,6 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
ERR
(
"Cannot get sample time (%x)
\n
"
,
hr
);
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
TRACE
(
"Sample data ptr = %p, size = %ld
\n
"
,
pbSrcStream
,
cbSrcStream
);
#if 0 /* For debugging purpose */
...
...
@@ -796,15 +795,26 @@ static HRESULT WINAPI DSoundRender_InputPin_Disconnect(IPin * iface)
static
HRESULT
WINAPI
DSoundRender_InputPin_EndOfStream
(
IPin
*
iface
)
{
InputPin
*
This
=
(
InputPin
*
)
iface
;
DSoundRenderImpl
*
me
=
(
DSoundRenderImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
IMediaEventSink
*
pEventSink
;
HRESULT
hr
;
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
InputPin_EndOfStream
(
iface
);
hr
=
IFilterGraph_QueryInterface
(
((
DSoundRenderImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
)
->
filterInfo
.
pGraph
,
&
IID_IMediaEventSink
,
(
LPVOID
*
)
&
pEventSink
);
hr
=
IFilterGraph_QueryInterface
(
me
->
filterInfo
.
pGraph
,
&
IID_IMediaEventSink
,
(
LPVOID
*
)
&
pEventSink
);
if
(
SUCCEEDED
(
hr
))
{
/* FIXME: We should wait that all audio data has been played */
BYTE
*
silence
;
silence
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
me
->
buf_size
);
if
(
silence
)
{
memset
(
silence
,
0
,
me
->
buf_size
);
DSoundRender_SendSampleData
((
DSoundRenderImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
,
silence
,
me
->
buf_size
);
HeapFree
(
GetProcessHeap
(),
0
,
silence
);
}
hr
=
IMediaEventSink_Notify
(
pEventSink
,
EC_COMPLETE
,
S_OK
,
0
);
IMediaEventSink_Release
(
pEventSink
);
}
...
...
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