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
54751b23
Commit
54751b23
authored
Jul 19, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use round() instead of ceil() in wodGetPosition(TIME_SMPTE).
Fixes the corresponding winmm conformance test.
parent
3ce9c5f4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
audio.c
dlls/winmm/winealsa/audio.c
+1
-1
audio.c
dlls/winmm/winearts/audio.c
+2
-1
audio.c
dlls/winmm/wineaudioio/audio.c
+1
-1
audio.c
dlls/winmm/winejack/audio.c
+1
-1
audio.c
dlls/winmm/winenas/audio.c
+1
-1
audio.c
dlls/winmm/wineoss/audio.c
+1
-1
No files found.
dlls/winmm/winealsa/audio.c
View file @
54751b23
...
...
@@ -1873,7 +1873,7 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
time
-=
lpTime
->
u
.
smpte
.
min
*
60
;
lpTime
->
u
.
smpte
.
sec
=
time
;
time
-=
lpTime
->
u
.
smpte
.
sec
;
lpTime
->
u
.
smpte
.
frame
=
ceil
(
time
*
30
);
lpTime
->
u
.
smpte
.
frame
=
round
(
time
*
30
);
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
...
...
dlls/winmm/winearts/audio.c
View file @
54751b23
...
...
@@ -38,6 +38,7 @@
/*#define EMULATE_SB16*/
#include "config.h"
#include "wine/port.h"
#include <math.h>
#include <stdlib.h>
...
...
@@ -1427,7 +1428,7 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
time
-=
lpTime
->
u
.
smpte
.
min
*
60
;
lpTime
->
u
.
smpte
.
sec
=
time
;
time
-=
lpTime
->
u
.
smpte
.
sec
;
lpTime
->
u
.
smpte
.
frame
=
ceil
(
time
*
30
);
lpTime
->
u
.
smpte
.
frame
=
round
(
time
*
30
);
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
...
...
dlls/winmm/wineaudioio/audio.c
View file @
54751b23
...
...
@@ -1121,7 +1121,7 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
time
-=
lpTime
->
u
.
smpte
.
min
*
60
;
lpTime
->
u
.
smpte
.
sec
=
time
;
time
-=
lpTime
->
u
.
smpte
.
sec
;
lpTime
->
u
.
smpte
.
frame
=
ceil
(
time
*
30
);
lpTime
->
u
.
smpte
.
frame
=
round
(
time
*
30
);
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
...
...
dlls/winmm/winejack/audio.c
View file @
54751b23
...
...
@@ -1591,7 +1591,7 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
time
-=
lpTime
->
u
.
smpte
.
min
*
60
;
lpTime
->
u
.
smpte
.
sec
=
time
;
time
-=
lpTime
->
u
.
smpte
.
sec
;
lpTime
->
u
.
smpte
.
frame
=
ceil
(
time
*
30
);
lpTime
->
u
.
smpte
.
frame
=
round
(
time
*
30
);
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
...
...
dlls/winmm/winenas/audio.c
View file @
54751b23
...
...
@@ -1165,7 +1165,7 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
time
-=
lpTime
->
u
.
smpte
.
min
*
60
;
lpTime
->
u
.
smpte
.
sec
=
time
;
time
-=
lpTime
->
u
.
smpte
.
sec
;
lpTime
->
u
.
smpte
.
frame
=
ceil
(
time
*
30
);
lpTime
->
u
.
smpte
.
frame
=
round
(
time
*
30
);
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
...
...
dlls/winmm/wineoss/audio.c
View file @
54751b23
...
...
@@ -2123,7 +2123,7 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
time
-=
lpTime
->
u
.
smpte
.
min
*
60
;
lpTime
->
u
.
smpte
.
sec
=
time
;
time
-=
lpTime
->
u
.
smpte
.
sec
;
lpTime
->
u
.
smpte
.
frame
=
ceil
(
time
*
30
);
lpTime
->
u
.
smpte
.
frame
=
round
(
time
*
30
);
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
...
...
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