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
29ebdb76
Commit
29ebdb76
authored
Dec 05, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fake MIDI_IO_STATUS support in midi in open
Fixed bug in midi in while reading data
parent
6ff83ad4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
midi.c
dlls/winmm/wineoss/midi.c
+7
-1
mmsystem.h
include/mmsystem.h
+5
-0
No files found.
dlls/winmm/wineoss/midi.c
View file @
29ebdb76
...
...
@@ -553,6 +553,7 @@ static VOID WINAPI midTimeCallback(HWND hwnd, UINT msg, UINT id, DWORD dwTime)
len
=
read
(
midiSeqFD
,
buffer
,
sizeof
(
buffer
));
if
(
len
<
0
)
return
;
if
((
len
%
4
)
!=
0
)
{
WARN
(
"bad length %d (%d)
\n
"
,
len
,
errno
);
return
;
...
...
@@ -627,6 +628,7 @@ static DWORD midOpen(WORD wDevID, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
WARN
(
"Invalid Parameter !
\n
"
);
return
MMSYSERR_INVALPARAM
;
}
/* FIXME :
* how to check that content of lpDesc is correct ?
*/
...
...
@@ -638,8 +640,12 @@ static DWORD midOpen(WORD wDevID, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
WARN
(
"device already open !
\n
"
);
return
MMSYSERR_ALLOCATED
;
}
if
((
dwFlags
&
MIDI_IO_STATUS
)
!=
0
)
{
WARN
(
"No support for MIDI_IO_STATUS in dwFlags yet, ignoring it
\n
"
);
dwFlags
&=
~
MIDI_IO_STATUS
;
}
if
((
dwFlags
&
~
CALLBACK_TYPEMASK
)
!=
0
)
{
FIXME
(
"
No support for MIDI_IO_STATUS in
dwFlags
\n
"
);
FIXME
(
"
Bad
dwFlags
\n
"
);
return
MMSYSERR_INVALFLAG
;
}
...
...
include/mmsystem.h
View file @
29ebdb76
...
...
@@ -114,6 +114,8 @@ typedef struct {
#define MM_MOM_DONE 0x3C9
#define MM_MOM_POSITIONCB 0x3CA
#define MM_MIM_MOREDATA 0x3CC
#define MMSYSERR_BASE 0
#define WAVERR_BASE 32
#define MIDIERR_BASE 64
...
...
@@ -471,6 +473,9 @@ typedef WORD *LPKEYARRAY;
#define MIDIMAPPER (-1)
#define MIDI_MAPPER (-1)
/* Only on Win95 and up */
#define MIDI_IO_STATUS 0x00000020L
/* flags for wFlags parm of
midiOutCachePatches(),
midiOutCacheDrumPatches() */
...
...
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