Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Billy Laws
wine
Commits
b22dd553
Commit
b22dd553
authored
4 months ago
by
Elizabeth Figura
Committed by
Alexandre Julliard
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
quartz/dsoundrender: Play non-discontinuous samples consecutively.
Ignoring their start time. This matches native behaviour.
parent
c2cc20f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/quartz/dsoundrender.c
+5
-5
5 additions, 5 deletions
dlls/quartz/dsoundrender.c
with
5 additions
and
5 deletions
dlls/quartz/dsoundrender.c
+
5
−
5
View file @
b22dd553
...
...
@@ -321,9 +321,9 @@ static HRESULT configure_buffer(struct dsound_render *filter, IMediaSample *pSam
static
HRESULT
render_sample
(
struct
dsound_render
*
filter
,
IMediaSample
*
pSample
)
{
REFERENCE_TIME
start
=
-
1
,
stop
=
-
1
;
LPBYTE
pbSrcStream
=
NULL
;
LONG
cbSrcStream
=
0
;
REFERENCE_TIME
tStart
,
tStop
;
HRESULT
hr
;
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
...
...
@@ -333,11 +333,11 @@ static HRESULT render_sample(struct dsound_render *filter, IMediaSample *pSample
return
hr
;
}
hr
=
IMediaSample_
GetTime
(
pSample
,
&
tStart
,
&
tStop
);
if
(
FAILED
(
hr
))
if
(
IMediaSample_
IsDiscontinuity
(
pSample
)
==
S_OK
&&
FAILED
(
hr
=
IMediaSample_GetTime
(
pSample
,
&
start
,
&
stop
)
))
{
ERR
(
"Failed to get sample time, hr %#lx.
\n
"
,
hr
);
tS
tart
=
tS
top
=
-
1
;
s
tart
=
s
top
=
-
1
;
}
if
(
IMediaSample_IsPreroll
(
pSample
)
==
S_OK
)
...
...
@@ -347,7 +347,7 @@ static HRESULT render_sample(struct dsound_render *filter, IMediaSample *pSample
}
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
return
send_sample_data
(
filter
,
tS
tart
,
pbSrcStream
,
cbSrcStream
);
return
send_sample_data
(
filter
,
s
tart
,
pbSrcStream
,
cbSrcStream
);
}
static
HRESULT
WINAPI
dsound_render_sink_Receive
(
struct
strmbase_sink
*
iface
,
IMediaSample
*
sample
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment