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
9964e429
Commit
9964e429
authored
Oct 09, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Oct 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed SMPTE time.
Fixed bad wave in position at startup and reset.
parent
ad4a2b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
audio.c
dlls/winmm/wineoss/audio.c
+19
-17
No files found.
dlls/winmm/wineoss/audio.c
View file @
9964e429
...
...
@@ -1808,13 +1808,13 @@ static DWORD wodGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
break
;
case
TIME_SMPTE
:
time
=
val
/
(
wwo
->
format
.
wf
.
nAvgBytesPerSec
/
1000
);
lpTime
->
u
.
smpte
.
hour
=
time
/
108000
;
time
-=
lpTime
->
u
.
smpte
.
hour
*
108000
;
lpTime
->
u
.
smpte
.
min
=
time
/
1800
;
time
-=
lpTime
->
u
.
smpte
.
min
*
1800
;
lpTime
->
u
.
smpte
.
sec
=
time
/
3
0
;
time
-=
lpTime
->
u
.
smpte
.
sec
*
3
0
;
lpTime
->
u
.
smpte
.
frame
=
time
;
lpTime
->
u
.
smpte
.
hour
=
time
/
(
60
*
60
*
1000
)
;
time
-=
lpTime
->
u
.
smpte
.
hour
*
(
60
*
60
*
1000
)
;
lpTime
->
u
.
smpte
.
min
=
time
/
(
60
*
1000
)
;
time
-=
lpTime
->
u
.
smpte
.
min
*
(
60
*
1000
)
;
lpTime
->
u
.
smpte
.
sec
=
time
/
100
0
;
time
-=
lpTime
->
u
.
smpte
.
sec
*
100
0
;
lpTime
->
u
.
smpte
.
frame
=
time
*
30
/
1000
;
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
...
...
@@ -2754,6 +2754,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt)
case
WINE_WM_STOPPING
:
case
WINE_WM_RESETTING
:
wwi
->
state
=
WINE_WS_STOPPED
;
wwi
->
dwTotalRecorded
=
0
;
/* return all buffers to the app */
for
(
lpWaveHdr
=
wwi
->
lpQueuePtr
;
lpWaveHdr
;
lpWaveHdr
=
lpWaveHdr
->
lpNext
)
{
TRACE
(
"reset %p %p
\n
"
,
lpWaveHdr
,
lpWaveHdr
->
lpNext
);
...
...
@@ -3072,6 +3073,7 @@ static DWORD widGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
TRACE
(
"nSamplesPerSec=%lu
\n
"
,
wwi
->
format
.
wf
.
nSamplesPerSec
);
TRACE
(
"nChannels=%u
\n
"
,
wwi
->
format
.
wf
.
nChannels
);
TRACE
(
"nAvgBytesPerSec=%lu
\n
"
,
wwi
->
format
.
wf
.
nAvgBytesPerSec
);
TRACE
(
"dwTotalRecorded=%lu
\n
"
,
wwi
->
dwTotalRecorded
);
switch
(
lpTime
->
wType
)
{
case
TIME_BYTES
:
lpTime
->
u
.
cb
=
wwi
->
dwTotalRecorded
;
...
...
@@ -3085,26 +3087,26 @@ static DWORD widGetPosition(WORD wDevID, LPMMTIME lpTime, DWORD uSize)
case
TIME_SMPTE
:
time
=
wwi
->
dwTotalRecorded
/
(
wwi
->
format
.
wf
.
nAvgBytesPerSec
/
1000
);
lpTime
->
u
.
smpte
.
hour
=
time
/
108000
;
time
-=
lpTime
->
u
.
smpte
.
hour
*
108000
;
lpTime
->
u
.
smpte
.
min
=
time
/
1800
;
time
-=
lpTime
->
u
.
smpte
.
min
*
1800
;
lpTime
->
u
.
smpte
.
sec
=
time
/
3
0
;
time
-=
lpTime
->
u
.
smpte
.
sec
*
3
0
;
lpTime
->
u
.
smpte
.
frame
=
time
;
lpTime
->
u
.
smpte
.
hour
=
time
/
(
60
*
60
*
1000
)
;
time
-=
lpTime
->
u
.
smpte
.
hour
*
(
60
*
60
*
1000
)
;
lpTime
->
u
.
smpte
.
min
=
time
/
(
60
*
1000
)
;
time
-=
lpTime
->
u
.
smpte
.
min
*
(
60
*
1000
)
;
lpTime
->
u
.
smpte
.
sec
=
time
/
100
0
;
time
-=
lpTime
->
u
.
smpte
.
sec
*
100
0
;
lpTime
->
u
.
smpte
.
frame
=
time
*
30
/
1000
;
lpTime
->
u
.
smpte
.
fps
=
30
;
TRACE
(
"TIME_SMPTE=%02u:%02u:%02u:%02u
\n
"
,
lpTime
->
u
.
smpte
.
hour
,
lpTime
->
u
.
smpte
.
min
,
lpTime
->
u
.
smpte
.
sec
,
lpTime
->
u
.
smpte
.
frame
);
break
;
default:
FIXME
(
"format not supported (%u) ! use TIME_MS !
\n
"
,
lpTime
->
wType
);
lpTime
->
wType
=
TIME_MS
;
case
TIME_MS
:
lpTime
->
u
.
ms
=
wwi
->
dwTotalRecorded
/
(
wwi
->
format
.
wf
.
nAvgBytesPerSec
/
1000
);
TRACE
(
"TIME_MS=%lu
\n
"
,
lpTime
->
u
.
ms
);
break
;
default:
FIXME
(
"format not supported (%u) ! use TIME_MS !
\n
"
,
lpTime
->
wType
);
lpTime
->
wType
=
TIME_MS
;
}
return
MMSYSERR_NOERROR
;
}
...
...
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