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
0e84a59d
Commit
0e84a59d
authored
May 19, 2014
by
Andrew Eikum
Committed by
Alexandre Julliard
May 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Clock rate should be in bytes for shared mode.
parent
b634666e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
render.c
dlls/mmdevapi/tests/render.c
+1
-1
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+8
-2
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+7
-1
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+7
-1
No files found.
dlls/mmdevapi/tests/render.c
View file @
0e84a59d
...
...
@@ -955,7 +955,7 @@ static void test_clock(int share)
trace
(
"Clock Frequency %u
\n
"
,
(
UINT
)
freq
);
/* MSDN says it's arbitrary units, but shared mode is unlikely to change */
if
(
share
)
todo_wine
if
(
share
)
ok
(
freq
==
pwfx
->
nSamplesPerSec
*
pwfx
->
nBlockAlign
,
"Clock Frequency %u
\n
"
,
(
UINT
)
freq
);
else
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
0e84a59d
...
...
@@ -2822,7 +2822,10 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
freq
);
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
freq
=
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
else
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
return
S_OK
;
}
...
...
@@ -2879,7 +2882,10 @@ static HRESULT WINAPI AudioClock_GetPosition(IAudioClock *iface, UINT64 *pos,
TRACE
(
"frames written: %u, held: %u, avail: %ld, delay: %ld state %d, pos: %u
\n
"
,
(
UINT32
)(
written_frames
%
1000000000
),
held_frames
,
avail_frames
,
delay_frames
,
alsa_state
,
(
UINT32
)(
position
%
1000000000
));
*
pos
=
position
;
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
pos
=
position
*
This
->
fmt
->
nBlockAlign
;
else
*
pos
=
position
;
if
(
qpctime
){
LARGE_INTEGER
stamp
,
freq
;
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
0e84a59d
...
...
@@ -2420,7 +2420,10 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
freq
);
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
freq
=
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
else
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
return
S_OK
;
}
...
...
@@ -2435,6 +2438,9 @@ static HRESULT AudioClock_GetPosition_nolock(ACImpl *This,
else
*
pos
=
This
->
inbuf_frames
+
This
->
written_frames
;
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
pos
*=
This
->
fmt
->
nBlockAlign
;
if
(
qpctime
){
LARGE_INTEGER
stamp
,
freq
;
QueryPerformanceCounter
(
&
stamp
);
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
0e84a59d
...
...
@@ -2145,7 +2145,10 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
freq
);
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
freq
=
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
else
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
return
S_OK
;
}
...
...
@@ -2195,6 +2198,9 @@ static HRESULT WINAPI AudioClock_GetPosition(IAudioClock *iface, UINT64 *pos,
This
->
last_pos_frames
=
*
pos
;
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
pos
*=
This
->
fmt
->
nBlockAlign
;
LeaveCriticalSection
(
&
This
->
lock
);
if
(
qpctime
){
...
...
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