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
983354c3
Commit
983354c3
authored
Feb 12, 2020
by
Andrew Eikum
Committed by
Alexandre Julliard
Feb 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Clean up midiOpenSeq.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
043f6521
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
midi.c
dlls/winealsa.drv/midi.c
+14
-21
No files found.
dlls/winealsa.drv/midi.c
View file @
983354c3
...
@@ -243,33 +243,26 @@ static int midiOpenSeq(BOOL create_client)
...
@@ -243,33 +243,26 @@ static int midiOpenSeq(BOOL create_client)
return
-
1
;
return
-
1
;
}
}
if
(
create_client
)
{
if
(
create_client
)
{
/* Setting the client name is the only init to do */
/* Setting the client name is the only init to do */
snd_seq_set_client_name
(
midiSeq
,
"WINE midi driver"
);
snd_seq_set_client_name
(
midiSeq
,
"WINE midi driver"
);
#if 0 /* FIXME: Is it possible to use a port for READ & WRITE ops */
port_out
=
snd_seq_create_simple_port
(
midiSeq
,
"WINE ALSA Output"
,
port_in = port_out = snd_seq_create_simple_port(midiSeq, "WINE ALSA Input/Output", SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_WRITE
,
SND_SEQ_PORT_CAP_READ
,
SND_SEQ_PORT_TYPE_APPLICATION);
SND_SEQ_PORT_TYPE_APPLICATION
);
if
(
port_out
<
0
)
if
(
port_out
<
0
)
TRACE("Unable to create output port\n");
TRACE
(
"Unable to create output port
\n
"
);
else
else
TRACE("Outport port %d created successfully\n", port_out);
TRACE
(
"Outport port %d created successfully
\n
"
,
port_out
);
#else
port_out
=
snd_seq_create_simple_port
(
midiSeq
,
"WINE ALSA Output"
,
SND_SEQ_PORT_CAP_READ
,
port_in
=
snd_seq_create_simple_port
(
midiSeq
,
"WINE ALSA Input"
,
SND_SEQ_PORT_TYPE_APPLICATION
);
SND_SEQ_PORT_CAP_WRITE
,
if
(
port_out
<
0
)
SND_SEQ_PORT_TYPE_APPLICATION
);
TRACE
(
"Unable to create output port
\n
"
);
else
TRACE
(
"Outport port %d created successfully
\n
"
,
port_out
);
port_in
=
snd_seq_create_simple_port
(
midiSeq
,
"WINE ALSA Input"
,
SND_SEQ_PORT_CAP_WRITE
,
SND_SEQ_PORT_TYPE_APPLICATION
);
if
(
port_in
<
0
)
if
(
port_in
<
0
)
TRACE
(
"Unable to create input port
\n
"
);
TRACE
(
"Unable to create input port
\n
"
);
else
else
TRACE
(
"Input port %d created successfully
\n
"
,
port_in
);
TRACE
(
"Input port %d created successfully
\n
"
,
port_in
);
#endif
}
}
}
}
numOpenMidiSeq
++
;
numOpenMidiSeq
++
;
LeaveCriticalSection
(
&
midiSeqLock
);
LeaveCriticalSection
(
&
midiSeqLock
);
...
...
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