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
c7363128
Commit
c7363128
authored
Dec 08, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Fix a couple of types and avoid unneeded casts.
parent
a70fbaee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
midi.c
dlls/winealsa.drv/midi.c
+10
-10
No files found.
dlls/winealsa.drv/midi.c
View file @
c7363128
...
@@ -142,7 +142,7 @@ static void error_handler(const char* file, int line, const char* function, int
...
@@ -142,7 +142,7 @@ static void error_handler(const char* file, int line, const char* function, int
* return the Windows equivalent to a Unix Device Type
* return the Windows equivalent to a Unix Device Type
*
*
*/
*/
static
int
MIDI_AlsaToWindowsDeviceType
(
int
type
)
static
int
MIDI_AlsaToWindowsDeviceType
(
unsigned
int
type
)
{
{
/* MOD_MIDIPORT output port
/* MOD_MIDIPORT output port
* MOD_SYNTH generic internal synth
* MOD_SYNTH generic internal synth
...
@@ -1113,7 +1113,7 @@ static DWORD modReset(WORD wDevID)
...
@@ -1113,7 +1113,7 @@ static DWORD modReset(WORD wDevID)
*
*
* Helper for ALSA_MidiInit
* Helper for ALSA_MidiInit
*/
*/
static
void
ALSA_AddMidiPort
(
snd_seq_client_info_t
*
cinfo
,
snd_seq_port_info_t
*
pinfo
,
int
cap
,
int
type
)
static
void
ALSA_AddMidiPort
(
snd_seq_client_info_t
*
cinfo
,
snd_seq_port_info_t
*
pinfo
,
unsigned
int
cap
,
unsigned
int
type
)
{
{
char
midiPortName
[
MAXPNAMELEN
];
char
midiPortName
[
MAXPNAMELEN
];
...
@@ -1174,12 +1174,12 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
...
@@ -1174,12 +1174,12 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
MidiOutDev
[
MODM_NumDevs
].
bEnabled
=
TRUE
;
MidiOutDev
[
MODM_NumDevs
].
bEnabled
=
TRUE
;
TRACE
(
"MidiOut[%d]
\t
name='%s' techn=%d voices=%d notes=%d chnMsk=%04x support=%d
\n
"
TRACE
(
"MidiOut[%d]
\t
name='%s' techn=%d voices=%d notes=%d chnMsk=%04x support=%d
\n
"
"
\t
ALSA info: midi dev-type=%
lx, capa=%lx
\n
"
,
"
\t
ALSA info: midi dev-type=%
x, capa=0
\n
"
,
MODM_NumDevs
,
wine_dbgstr_w
(
MidiOutDev
[
MODM_NumDevs
].
caps
.
szPname
),
MODM_NumDevs
,
wine_dbgstr_w
(
MidiOutDev
[
MODM_NumDevs
].
caps
.
szPname
),
MidiOutDev
[
MODM_NumDevs
].
caps
.
wTechnology
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wTechnology
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wVoices
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wNotes
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wVoices
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wNotes
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wChannelMask
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
dwSupport
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wChannelMask
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
dwSupport
,
(
long
)
type
,
(
long
)
0
);
type
);
MODM_NumDevs
++
;
MODM_NumDevs
++
;
}
}
...
@@ -1229,10 +1229,10 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
...
@@ -1229,10 +1229,10 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
MidiInDev
[
MIDM_NumDevs
].
state
=
0
;
MidiInDev
[
MIDM_NumDevs
].
state
=
0
;
TRACE
(
"MidiIn [%d]
\t
name='%s' support=%d
\n
"
TRACE
(
"MidiIn [%d]
\t
name='%s' support=%d
\n
"
"
\t
ALSA info: midi dev-type=%
lx, capa=%lx
\n
"
,
"
\t
ALSA info: midi dev-type=%
x, capa=0
\n
"
,
MIDM_NumDevs
,
wine_dbgstr_w
(
MidiInDev
[
MIDM_NumDevs
].
caps
.
szPname
),
MIDM_NumDevs
,
wine_dbgstr_w
(
MidiInDev
[
MIDM_NumDevs
].
caps
.
szPname
),
MidiInDev
[
MIDM_NumDevs
].
caps
.
dwSupport
,
MidiInDev
[
MIDM_NumDevs
].
caps
.
dwSupport
,
(
long
)
type
,
(
long
)
0
);
type
);
MIDM_NumDevs
++
;
MIDM_NumDevs
++
;
}
}
...
@@ -1280,8 +1280,8 @@ LONG ALSA_MidiInit(void)
...
@@ -1280,8 +1280,8 @@ LONG ALSA_MidiInit(void)
snd_seq_port_info_set_client
(
pinfo
,
snd_seq_client_info_get_client
(
cinfo
));
snd_seq_port_info_set_client
(
pinfo
,
snd_seq_client_info_get_client
(
cinfo
));
snd_seq_port_info_set_port
(
pinfo
,
-
1
);
snd_seq_port_info_set_port
(
pinfo
,
-
1
);
while
(
snd_seq_query_next_port
(
midiSeq
,
pinfo
)
>=
0
)
{
while
(
snd_seq_query_next_port
(
midiSeq
,
pinfo
)
>=
0
)
{
int
cap
=
snd_seq_port_info_get_capability
(
pinfo
);
unsigned
int
cap
=
snd_seq_port_info_get_capability
(
pinfo
);
int
type
=
snd_seq_port_info_get_type
(
pinfo
);
unsigned
int
type
=
snd_seq_port_info_get_type
(
pinfo
);
if
(
!
(
type
&
SND_SEQ_PORT_TYPE_PORT
))
if
(
!
(
type
&
SND_SEQ_PORT_TYPE_PORT
))
ALSA_AddMidiPort
(
cinfo
,
pinfo
,
cap
,
type
);
ALSA_AddMidiPort
(
cinfo
,
pinfo
,
cap
,
type
);
}
}
...
@@ -1293,8 +1293,8 @@ LONG ALSA_MidiInit(void)
...
@@ -1293,8 +1293,8 @@ LONG ALSA_MidiInit(void)
snd_seq_port_info_set_client
(
pinfo
,
snd_seq_client_info_get_client
(
cinfo
));
snd_seq_port_info_set_client
(
pinfo
,
snd_seq_client_info_get_client
(
cinfo
));
snd_seq_port_info_set_port
(
pinfo
,
-
1
);
snd_seq_port_info_set_port
(
pinfo
,
-
1
);
while
(
snd_seq_query_next_port
(
midiSeq
,
pinfo
)
>=
0
)
{
while
(
snd_seq_query_next_port
(
midiSeq
,
pinfo
)
>=
0
)
{
int
cap
=
snd_seq_port_info_get_capability
(
pinfo
);
unsigned
int
cap
=
snd_seq_port_info_get_capability
(
pinfo
);
int
type
=
snd_seq_port_info_get_type
(
pinfo
);
unsigned
int
type
=
snd_seq_port_info_get_type
(
pinfo
);
if
(
type
&
SND_SEQ_PORT_TYPE_PORT
)
if
(
type
&
SND_SEQ_PORT_TYPE_PORT
)
ALSA_AddMidiPort
(
cinfo
,
pinfo
,
cap
,
type
);
ALSA_AddMidiPort
(
cinfo
,
pinfo
,
cap
,
type
);
}
}
...
...
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