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
6d238163
Commit
6d238163
authored
Jan 05, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Jan 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: GetStreamLatency is constant, SNDCTL_DSP_GETODELAY is dynamic.
parent
92d8e93a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+2
-19
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
6d238163
...
@@ -1046,26 +1046,9 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
...
@@ -1046,26 +1046,9 @@ static HRESULT WINAPI AudioClient_GetStreamLatency(IAudioClient *iface,
return
AUDCLNT_E_NOT_INITIALIZED
;
return
AUDCLNT_E_NOT_INITIALIZED
;
}
}
if
(
This
->
dataflow
==
eRender
){
int
delay_bytes
;
double
delay_s
;
if
(
ioctl
(
This
->
fd
,
SNDCTL_DSP_GETODELAY
,
&
delay_bytes
)
<
0
){
LeaveCriticalSection
(
&
This
->
lock
);
WARN
(
"GETODELAY failed: %d (%s)
\n
"
,
errno
,
strerror
(
errno
));
return
E_FAIL
;
}
delay_s
=
delay_bytes
/
(
double
)(
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
);
*
latency
=
delay_s
*
10000000
;
}
else
*
latency
=
10000
;
/* OSS doesn't provide input latency */
/* pretend we process audio in Period chunks, so max latency includes
/* pretend we process audio in Period chunks, so max latency includes
* the period time */
* the period time
. Some native machines add .6666ms in shared mode.
*/
*
latency
+=
DefaultPeriod
;
*
latency
=
This
->
period_us
*
10
+
6666
;
LeaveCriticalSection
(
&
This
->
lock
);
LeaveCriticalSection
(
&
This
->
lock
);
...
...
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