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
a0f54139
Commit
a0f54139
authored
Oct 06, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/winealsa: Win64 printf format warning fixes.
parent
fe0af93c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
+20
-21
Makefile.in
dlls/winmm/winealsa/Makefile.in
+0
-1
audio.c
dlls/winmm/winealsa/audio.c
+0
-0
midi.c
dlls/winmm/winealsa/midi.c
+20
-20
No files found.
dlls/winmm/winealsa/Makefile.in
View file @
a0f54139
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
winealsa.drv
IMPORTS
=
winmm user32 advapi32 kernel32 ntdll
EXTRALIBS
=
-ldxguid
-luuid
@ALSALIBS@
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
audio.c
\
...
...
dlls/winmm/winealsa/audio.c
View file @
a0f54139
This diff is collapsed.
Click to expand it.
dlls/winmm/winealsa/midi.c
View file @
a0f54139
...
...
@@ -176,7 +176,7 @@ static DWORD MIDI_NotifyClient(UINT wDevID, WORD wMsg,
HANDLE
hDev
;
DWORD
dwInstance
;
TRACE
(
"wDevID = %04X wMsg = %d dwParm1 = %04
lX dwParam2 = %04l
X
\n
"
,
TRACE
(
"wDevID = %04X wMsg = %d dwParm1 = %04
X dwParam2 = %04
X
\n
"
,
wDevID
,
wMsg
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
...
...
@@ -377,7 +377,7 @@ static DWORD WINAPI midRecThread(LPVOID arg)
break
;
}
if
(
toSend
!=
0
)
{
TRACE
(
"Sending event %08l
x (from %d %d)
\n
"
,
toSend
,
ev
->
source
.
client
,
ev
->
source
.
port
);
TRACE
(
"Sending event %08
x (from %d %d)
\n
"
,
toSend
,
ev
->
source
.
client
,
ev
->
source
.
port
);
if
(
MIDI_NotifyClient
(
wDevID
,
MIM_DATA
,
toSend
,
dwTime
)
!=
MMSYSERR_NOERROR
)
{
WARN
(
"Couldn't notify client
\n
"
);
}
...
...
@@ -396,7 +396,7 @@ static DWORD WINAPI midRecThread(LPVOID arg)
*/
static
DWORD
midGetDevCaps
(
WORD
wDevID
,
LPMIDIINCAPSW
lpCaps
,
DWORD
dwSize
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpCaps
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpCaps
,
dwSize
);
if
(
wDevID
>=
MIDM_NumDevs
)
return
MMSYSERR_BADDEVICEID
;
if
(
lpCaps
==
NULL
)
return
MMSYSERR_INVALPARAM
;
...
...
@@ -412,7 +412,7 @@ static DWORD midGetDevCaps(WORD wDevID, LPMIDIINCAPSW lpCaps, DWORD dwSize)
*/
static
DWORD
midOpen
(
WORD
wDevID
,
LPMIDIOPENDESC
lpDesc
,
DWORD
dwFlags
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpDesc
,
dwFlags
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpDesc
,
dwFlags
);
if
(
lpDesc
==
NULL
)
{
WARN
(
"Invalid Parameter !
\n
"
);
...
...
@@ -537,7 +537,7 @@ static DWORD midClose(WORD wDevID)
*/
static
DWORD
midAddBuffer
(
WORD
wDevID
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwSize
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
if
(
wDevID
>=
MIDM_NumDevs
)
return
MMSYSERR_BADDEVICEID
;
if
(
MidiInDev
[
wDevID
].
state
==
-
1
)
return
MIDIERR_NODEVICE
;
...
...
@@ -569,7 +569,7 @@ static DWORD midAddBuffer(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
*/
static
DWORD
midPrepare
(
WORD
wDevID
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwSize
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
if
(
dwSize
<
sizeof
(
MIDIHDR
)
||
lpMidiHdr
==
0
||
lpMidiHdr
->
lpData
==
0
||
(
lpMidiHdr
->
dwFlags
&
MHDR_INQUEUE
)
!=
0
||
...
...
@@ -588,7 +588,7 @@ static DWORD midPrepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
*/
static
DWORD
midUnprepare
(
WORD
wDevID
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwSize
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
if
(
wDevID
>=
MIDM_NumDevs
)
return
MMSYSERR_BADDEVICEID
;
if
(
MidiInDev
[
wDevID
].
state
==
-
1
)
return
MIDIERR_NODEVICE
;
...
...
@@ -667,7 +667,7 @@ static DWORD midStop(WORD wDevID)
*/
static
DWORD
modGetDevCaps
(
WORD
wDevID
,
LPMIDIOUTCAPSW
lpCaps
,
DWORD
dwSize
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpCaps
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpCaps
,
dwSize
);
if
(
wDevID
>=
MODM_NumDevs
)
return
MMSYSERR_BADDEVICEID
;
if
(
lpCaps
==
NULL
)
return
MMSYSERR_INVALPARAM
;
...
...
@@ -682,7 +682,7 @@ static DWORD modGetDevCaps(WORD wDevID, LPMIDIOUTCAPSW lpCaps, DWORD dwSize)
*/
static
DWORD
modOpen
(
WORD
wDevID
,
LPMIDIOPENDESC
lpDesc
,
DWORD
dwFlags
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpDesc
,
dwFlags
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpDesc
,
dwFlags
);
if
(
lpDesc
==
NULL
)
{
WARN
(
"Invalid Parameter !
\n
"
);
return
MMSYSERR_INVALPARAM
;
...
...
@@ -799,7 +799,7 @@ static DWORD modData(WORD wDevID, DWORD dwParam)
BYTE
d1
=
HIBYTE
(
LOWORD
(
dwParam
));
BYTE
d2
=
LOBYTE
(
HIWORD
(
dwParam
));
TRACE
(
"(%04X, %08
l
X);
\n
"
,
wDevID
,
dwParam
);
TRACE
(
"(%04X, %08X);
\n
"
,
wDevID
,
dwParam
);
if
(
wDevID
>=
MODM_NumDevs
)
return
MMSYSERR_BADDEVICEID
;
if
(
!
MidiOutDev
[
wDevID
].
bEnabled
)
return
MIDIERR_NODEVICE
;
...
...
@@ -913,7 +913,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
LPBYTE
lpData
,
lpNewData
=
NULL
;
snd_seq_event_t
event
;
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
/* Note: MS doc does not say much about the dwBytesRecorded member of the MIDIHDR structure
* but it seems to be used only for midi input.
...
...
@@ -949,7 +949,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
lpNewData
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lpMidiHdr
->
dwBufferLength
+
2
);
}
TRACE
(
"dwBufferLength=%
l
u !
\n
"
,
lpMidiHdr
->
dwBufferLength
);
TRACE
(
"dwBufferLength=%u !
\n
"
,
lpMidiHdr
->
dwBufferLength
);
TRACE
(
" %02X %02X %02X ... %02X %02X %02X
\n
"
,
lpData
[
0
],
lpData
[
1
],
lpData
[
2
],
lpData
[
lpMidiHdr
->
dwBufferLength
-
3
],
lpData
[
lpMidiHdr
->
dwBufferLength
-
2
],
lpData
[
lpMidiHdr
->
dwBufferLength
-
1
]);
...
...
@@ -1005,7 +1005,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
*/
static
DWORD
modPrepare
(
WORD
wDevID
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwSize
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
if
(
midiSeq
==
NULL
)
{
WARN
(
"can't prepare !
\n
"
);
...
...
@@ -1019,7 +1019,7 @@ static DWORD modPrepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
if
(
dwSize
<
sizeof
(
MIDIHDR
)
||
lpMidiHdr
==
0
||
lpMidiHdr
->
lpData
==
0
||
(
lpMidiHdr
->
dwFlags
&
MHDR_INQUEUE
)
!=
0
||
lpMidiHdr
->
dwBufferLength
>=
0x10000ul
)
{
WARN
(
"%p %p %08
lx %d/%l
d
\n
"
,
lpMidiHdr
,
lpMidiHdr
->
lpData
,
WARN
(
"%p %p %08
x %d/%
d
\n
"
,
lpMidiHdr
,
lpMidiHdr
->
lpData
,
lpMidiHdr
->
dwFlags
,
sizeof
(
MIDIHDR
),
dwSize
);
return
MMSYSERR_INVALPARAM
;
}
...
...
@@ -1035,7 +1035,7 @@ static DWORD modPrepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
*/
static
DWORD
modUnprepare
(
WORD
wDevID
,
LPMIDIHDR
lpMidiHdr
,
DWORD
dwSize
)
{
TRACE
(
"(%04X, %p, %08
l
X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
TRACE
(
"(%04X, %p, %08X);
\n
"
,
wDevID
,
lpMidiHdr
,
dwSize
);
if
(
midiSeq
==
NULL
)
{
WARN
(
"can't unprepare !
\n
"
);
...
...
@@ -1130,8 +1130,8 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
MidiOutDev
[
MODM_NumDevs
].
caps
.
wNotes
=
16
;
MidiOutDev
[
MODM_NumDevs
].
bEnabled
=
TRUE
;
TRACE
(
"MidiOut[%d]
\t
name='%s' techn=%d voices=%d notes=%d chnMsk=%04x support=%
l
d
\n
"
"
\t
ALSA info: midi dev-type=%lx, capa=%lx
\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
"
,
MODM_NumDevs
,
wine_dbgstr_w
(
MidiOutDev
[
MODM_NumDevs
].
caps
.
szPname
),
MidiOutDev
[
MODM_NumDevs
].
caps
.
wTechnology
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wVoices
,
MidiOutDev
[
MODM_NumDevs
].
caps
.
wNotes
,
...
...
@@ -1175,7 +1175,7 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
sizeof
(
MidiInDev
[
MIDM_NumDevs
].
caps
.
szPname
)
/
sizeof
(
WCHAR
));
MidiInDev
[
MIDM_NumDevs
].
state
=
0
;
TRACE
(
"MidiIn [%d]
\t
name='%s' support=%
l
d
\n
"
TRACE
(
"MidiIn [%d]
\t
name='%s' support=%d
\n
"
"
\t
ALSA info: midi dev-type=%lx, capa=%lx
\n
"
,
MIDM_NumDevs
,
wine_dbgstr_w
(
MidiInDev
[
MIDM_NumDevs
].
caps
.
szPname
),
MidiInDev
[
MIDM_NumDevs
].
caps
.
dwSupport
,
...
...
@@ -1262,7 +1262,7 @@ LONG ALSA_MidiInit(void)
DWORD
WINAPI
ALSA_midMessage
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
{
TRACE
(
"(%04X, %04X, %08
lX, %08lX, %08l
X);
\n
"
,
TRACE
(
"(%04X, %04X, %08
X, %08X, %08
X);
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
#ifdef HAVE_ALSA
...
...
@@ -1305,7 +1305,7 @@ DWORD WINAPI ALSA_midMessage(UINT wDevID, UINT wMsg, DWORD dwUser,
DWORD
WINAPI
ALSA_modMessage
(
UINT
wDevID
,
UINT
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
{
TRACE
(
"(%04X, %04X, %08
lX, %08lX, %08l
X);
\n
"
,
TRACE
(
"(%04X, %04X, %08
X, %08X, %08
X);
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
...
...
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