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
e9d25b83
Commit
e9d25b83
authored
Sep 30, 2017
by
Fabian Maurer
Committed by
Alexandre Julliard
Oct 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midimap: Add warning for user in case midi won't work.
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f9a5ad13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
midimap.c
dlls/midimap/midimap.c
+8
-0
No files found.
dlls/midimap/midimap.c
View file @
e9d25b83
...
...
@@ -77,6 +77,7 @@
*/
WINE_DEFAULT_DEBUG_CHANNEL
(
msacm
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
typedef
struct
tagMIDIOUTPORT
{
...
...
@@ -553,6 +554,8 @@ static LRESULT MIDIMAP_drvOpen(void)
{
MIDIOUTCAPSW
moc
;
unsigned
dev
,
i
;
WCHAR
throughportW
[]
=
{
'M'
,
'i'
,
'd'
,
'i'
,
' '
,
'T'
,
'h'
,
'r'
,
'o'
,
'u'
,
'g'
,
'h'
,
0
};
BOOL
found_valid_port
=
FALSE
;
if
(
midiOutPorts
)
return
0
;
...
...
@@ -571,6 +574,8 @@ static LRESULT MIDIMAP_drvOpen(void)
midiOutPorts
[
dev
].
lpbPatch
=
NULL
;
for
(
i
=
0
;
i
<
16
;
i
++
)
midiOutPorts
[
dev
].
aChn
[
i
]
=
i
;
if
(
strncmpW
(
midiOutPorts
[
0
].
name
,
throughportW
,
strlenW
(
throughportW
))
!=
0
)
found_valid_port
=
TRUE
;
}
else
{
...
...
@@ -578,6 +583,9 @@ static LRESULT MIDIMAP_drvOpen(void)
}
}
if
(
!
found_valid_port
)
ERR_
(
winediag
)(
"No software synthesizer midi port found, Midi sound output probably won't work.
\n
"
);
return
1
;
}
...
...
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