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
f6f1983b
Commit
f6f1983b
authored
Jul 17, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/dsoundrender: Do not send quality messages.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98390d9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
17 deletions
+9
-17
dsoundrender.c
dlls/quartz/dsoundrender.c
+1
-17
dsoundrender.c
dlls/quartz/tests/dsoundrender.c
+8
-0
No files found.
dlls/quartz/dsoundrender.c
View file @
f6f1983b
...
...
@@ -360,23 +360,7 @@ static HRESULT WINAPI DSoundRender_DoRenderSample(struct strmbase_renderer *ifac
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
TRACE
(
"Sample data ptr = %p, size = %d
\n
"
,
pbSrcStream
,
cbSrcStream
);
hr
=
DSoundRender_SendSampleData
(
This
,
tStart
,
tStop
,
pbSrcStream
,
cbSrcStream
);
if
(
This
->
renderer
.
filter
.
state
==
State_Running
&&
This
->
renderer
.
filter
.
clock
&&
tStart
>=
0
)
{
REFERENCE_TIME
jitter
,
now
=
0
;
Quality
q
;
IReferenceClock_GetTime
(
This
->
renderer
.
filter
.
clock
,
&
now
);
jitter
=
now
-
This
->
renderer
.
stream_start
-
tStart
;
if
(
jitter
<=
-
DSoundRenderer_Max_Fill
)
jitter
+=
DSoundRenderer_Max_Fill
;
else
if
(
jitter
<
0
)
jitter
=
0
;
q
.
Type
=
(
jitter
>
0
?
Famine
:
Flood
);
q
.
Proportion
=
1000
;
q
.
Late
=
jitter
;
q
.
TimeStamp
=
tStart
;
IQualityControl_Notify
((
IQualityControl
*
)
This
->
renderer
.
qcimpl
,
&
This
->
renderer
.
filter
.
IBaseFilter_iface
,
q
);
}
return
hr
;
return
DSoundRender_SendSampleData
(
This
,
tStart
,
tStop
,
pbSrcStream
,
cbSrcStream
);
}
static
HRESULT
WINAPI
DSoundRender_CheckMediaType
(
struct
strmbase_renderer
*
iface
,
const
AM_MEDIA_TYPE
*
pmt
)
...
...
dlls/quartz/tests/dsoundrender.c
View file @
f6f1983b
...
...
@@ -613,6 +613,13 @@ static const struct strmbase_filter_ops testfilter_ops =
.
filter_destroy
=
testfilter_destroy
,
};
static
HRESULT
testsource_query_interface
(
struct
strmbase_pin
*
iface
,
REFIID
iid
,
void
**
out
)
{
todo_wine_if
(
IsEqualGUID
(
iid
,
&
IID_IQualityControl
))
ok
(
!
IsEqualGUID
(
iid
,
&
IID_IQualityControl
),
"Unexpected query for IQualityControl.
\n
"
);
return
E_NOINTERFACE
;
}
static
HRESULT
WINAPI
testsource_DecideAllocator
(
struct
strmbase_source
*
iface
,
IMemInputPin
*
peer
,
IMemAllocator
**
allocator
)
{
...
...
@@ -621,6 +628,7 @@ static HRESULT WINAPI testsource_DecideAllocator(struct strmbase_source *iface,
static
const
struct
strmbase_source_ops
testsource_ops
=
{
.
base
.
pin_query_interface
=
testsource_query_interface
,
.
pfnAttemptConnection
=
BaseOutputPinImpl_AttemptConnection
,
.
pfnDecideAllocator
=
testsource_DecideAllocator
,
};
...
...
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