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
b4aa68c9
Commit
b4aa68c9
authored
Jul 04, 2022
by
Claire Girka
Committed by
Alexandre Julliard
Jul 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Store and use device period on stream creation.
parent
32a63808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
pulse.c
dlls/winepulse.drv/pulse.c
+9
-1
No files found.
dlls/winepulse.drv/pulse.c
View file @
b4aa68c9
...
...
@@ -57,6 +57,8 @@ struct pulse_stream
HANDLE
event
;
float
vol
[
PA_CHANNELS_MAX
];
REFERENCE_TIME
def_period
;
INT32
locked
;
BOOL
started
;
SIZE_T
bufsize_frames
,
real_bufsize_bytes
,
period_bytes
;
...
...
@@ -1123,10 +1125,16 @@ static NTSTATUS pulse_create_stream(void *args)
if
(
FAILED
(
hr
))
goto
exit
;
period
=
pulse_def_period
[
stream
->
dataflow
==
eCapture
];
period
=
0
;
hr
=
get_device_period_helper
(
params
->
dataflow
,
params
->
pulse_name
,
&
period
,
NULL
);
if
(
FAILED
(
hr
))
goto
exit
;
if
(
duration
<
3
*
period
)
duration
=
3
*
period
;
stream
->
def_period
=
period
;
stream
->
period_bytes
=
pa_frame_size
(
&
stream
->
ss
)
*
muldiv
(
period
,
stream
->
ss
.
rate
,
10000000
);
stream
->
bufsize_frames
=
ceil
((
duration
/
10000000
.)
*
params
->
fmt
->
nSamplesPerSec
);
...
...
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