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
f1373d57
Commit
f1373d57
authored
Jan 30, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: midiStreamPosition can select an alternative MMTIME format.
parent
ebd55d98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
winmm.c
dlls/winmm/winmm.c
+6
-5
No files found.
dlls/winmm/winmm.c
View file @
f1373d57
...
...
@@ -1872,6 +1872,12 @@ MMRESULT WINAPI midiStreamPosition(HMIDISTRM hMidiStrm, LPMMTIME lpMMT, UINT cbm
ret
=
MMSYSERR_INVALPARAM
;
}
else
{
switch
(
lpMMT
->
wType
)
{
default:
FIXME
(
"Unsupported time type %x
\n
"
,
lpMMT
->
wType
);
case
TIME_BYTES
:
case
TIME_SAMPLES
:
lpMMT
->
wType
=
TIME_MS
;
/* fall through to alternative format */
case
TIME_MS
:
lpMMT
->
u
.
ms
=
lpMidiStrm
->
dwPositionMS
;
TRACE
(
"=> %d ms
\n
"
,
lpMMT
->
u
.
ms
);
...
...
@@ -1880,11 +1886,6 @@ MMRESULT WINAPI midiStreamPosition(HMIDISTRM hMidiStrm, LPMMTIME lpMMT, UINT cbm
lpMMT
->
u
.
ticks
=
lpMidiStrm
->
dwPulses
;
TRACE
(
"=> %d ticks
\n
"
,
lpMMT
->
u
.
ticks
);
break
;
default:
WARN
(
"Unsupported time type %d
\n
"
,
lpMMT
->
wType
);
lpMMT
->
wType
=
TIME_MS
;
ret
=
MMSYSERR_INVALPARAM
;
break
;
}
}
return
ret
;
...
...
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