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
57dfaf1d
Commit
57dfaf1d
authored
Apr 08, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Apr 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Retain precision when storing period in unixlib.
parent
8d214693
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
coreaudio.c
dlls/winecoreaudio.drv/coreaudio.c
+4
-4
No files found.
dlls/winecoreaudio.drv/coreaudio.c
View file @
57dfaf1d
...
...
@@ -85,7 +85,8 @@ struct coreaudio_stream
AUDCLNT_SHAREMODE
share
;
BOOL
playing
;
UINT32
period_ms
,
period_frames
;
REFERENCE_TIME
period
;
UINT32
period_frames
;
UINT32
bufsize_frames
,
resamp_bufsize_frames
;
UINT32
lcl_offs_frames
,
held_frames
,
wri_offs_frames
,
tmp_buffer_frames
;
UINT32
cap_bufsize_frames
,
cap_offs_frames
,
cap_held_frames
;
...
...
@@ -658,7 +659,7 @@ static NTSTATUS unix_create_stream(void *args)
goto
end
;
}
stream
->
period
_ms
=
params
->
period
/
10000
;
stream
->
period
=
params
->
period
;
stream
->
period_frames
=
muldiv
(
params
->
period
,
stream
->
fmt
->
nSamplesPerSec
,
10000000
);
stream
->
dev_id
=
dev_id_from_device
(
params
->
device
);
stream
->
flow
=
params
->
flow
;
...
...
@@ -1272,8 +1273,7 @@ static NTSTATUS unix_get_latency(void *args)
latency
+=
stream_latency
;
/* pretend we process audio in Period chunks, so max latency includes
* the period time */
*
params
->
latency
=
muldiv
(
latency
,
10000000
,
stream
->
fmt
->
nSamplesPerSec
)
+
stream
->
period_ms
*
10000
;
*
params
->
latency
=
muldiv
(
latency
,
10000000
,
stream
->
fmt
->
nSamplesPerSec
)
+
stream
->
period
;
OSSpinLockUnlock
(
&
stream
->
lock
);
params
->
result
=
S_OK
;
...
...
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