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
a74c29e0
Commit
a74c29e0
authored
Mar 09, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Fix 64-bits incompatibilities.
parent
5021f610
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
audio.c
dlls/winecoreaudio.drv/audio.c
+8
-8
midi.c
dlls/winecoreaudio.drv/midi.c
+4
-4
No files found.
dlls/winecoreaudio.drv/audio.c
View file @
a74c29e0
...
...
@@ -787,9 +787,9 @@ void CoreAudio_WaveRelease(void)
/**************************************************************************
* wodNotifyClient [internal]
*/
static
void
wodNotifyClient
(
WINE_WAVEOUT_INSTANCE
*
wwo
,
WORD
wMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
)
static
void
wodNotifyClient
(
WINE_WAVEOUT_INSTANCE
*
wwo
,
WORD
wMsg
,
DWORD
_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
{
TRACE
(
"wMsg = 0x%04x dwParm1 = %04
x dwParam2 = %04
x
\n
"
,
wMsg
,
dwParam1
,
dwParam2
);
TRACE
(
"wMsg = 0x%04x dwParm1 = %04
lx dwParam2 = %04l
x
\n
"
,
wMsg
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
case
WOM_OPEN
:
...
...
@@ -1178,7 +1178,7 @@ static void wodHelper_NotifyDoneForList(WINE_WAVEOUT_INSTANCE* wwo, LPWAVEHDR lp
lpWaveHdr
->
lpNext
=
NULL
;
lpWaveHdr
->
dwFlags
&=
~
WHDR_INQUEUE
;
lpWaveHdr
->
dwFlags
|=
WHDR_DONE
;
wodNotifyClient
(
wwo
,
WOM_DONE
,
(
DWORD
)
lpWaveHdr
,
0
);
wodNotifyClient
(
wwo
,
WOM_DONE
,
(
DWORD
_PTR
)
lpWaveHdr
,
0
);
lpWaveHdr
=
lpNext
;
}
...
...
@@ -1746,9 +1746,9 @@ OSStatus CoreAudio_woAudioUnitIOProc(void *inRefCon,
/**************************************************************************
* widNotifyClient [internal]
*/
static
void
widNotifyClient
(
WINE_WAVEIN
*
wwi
,
WORD
wMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
)
static
void
widNotifyClient
(
WINE_WAVEIN
*
wwi
,
WORD
wMsg
,
DWORD
_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
{
TRACE
(
"wMsg = 0x%04x dwParm1 = %04
X dwParam2 = %04
X
\n
"
,
wMsg
,
dwParam1
,
dwParam2
);
TRACE
(
"wMsg = 0x%04x dwParm1 = %04
lX dwParam2 = %04l
X
\n
"
,
wMsg
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
...
...
@@ -1816,7 +1816,7 @@ static void widHelper_NotifyCompletions(WINE_WAVEIN* wwi)
lpWaveHdr
->
lpNext
=
NULL
;
lpWaveHdr
->
dwFlags
&=
~
WHDR_INQUEUE
;
lpWaveHdr
->
dwFlags
|=
WHDR_DONE
;
widNotifyClient
(
wwi
,
WIM_DATA
,
(
DWORD
)
lpWaveHdr
,
0
);
widNotifyClient
(
wwi
,
WIM_DATA
,
(
DWORD
_PTR
)
lpWaveHdr
,
0
);
lpWaveHdr
=
lpNext
;
}
...
...
@@ -2265,7 +2265,7 @@ static DWORD widStop(WORD wDevID)
lpWaveHdr
->
lpNext
=
NULL
;
lpWaveHdr
->
dwFlags
&=
~
WHDR_INQUEUE
;
lpWaveHdr
->
dwFlags
|=
WHDR_DONE
;
widNotifyClient
(
wwi
,
WIM_DATA
,
(
DWORD
)
lpWaveHdr
,
0
);
widNotifyClient
(
wwi
,
WIM_DATA
,
(
DWORD
_PTR
)
lpWaveHdr
,
0
);
}
return
ret
;
...
...
@@ -2345,7 +2345,7 @@ static DWORD widReset(WORD wDevID)
lpWaveHdr
->
lpNext
=
NULL
;
lpWaveHdr
->
dwFlags
&=
~
WHDR_INQUEUE
;
lpWaveHdr
->
dwFlags
|=
WHDR_DONE
;
widNotifyClient
(
wwi
,
WIM_DATA
,
(
DWORD
)
lpWaveHdr
,
0
);
widNotifyClient
(
wwi
,
WIM_DATA
,
(
DWORD
_PTR
)
lpWaveHdr
,
0
);
lpWaveHdr
=
lpNext
;
}
...
...
dlls/winecoreaudio.drv/midi.c
View file @
a74c29e0
...
...
@@ -222,14 +222,14 @@ LONG CoreAudio_MIDIRelease(void)
/**************************************************************************
* MIDI_NotifyClient [internal]
*/
static
void
MIDI_NotifyClient
(
UINT
wDevID
,
WORD
wMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
)
static
void
MIDI_NotifyClient
(
UINT
wDevID
,
WORD
wMsg
,
DWORD
_PTR
dwParam1
,
DWORD_PTR
dwParam2
)
{
DWORD
dwCallBack
;
UINT
uFlags
;
HANDLE
hDev
;
DWORD
dwInstance
;
TRACE
(
"wDevID=%d wMsg=%d dwParm1=%04
X dwParam2=%04
X
\n
"
,
wDevID
,
wMsg
,
dwParam1
,
dwParam2
);
TRACE
(
"wDevID=%d wMsg=%d dwParm1=%04
lX dwParam2=%04l
X
\n
"
,
wDevID
,
wMsg
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
case
MOM_OPEN
:
...
...
@@ -443,7 +443,7 @@ static DWORD MIDIOut_LongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
lpMidiHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
lpMidiHdr
->
dwFlags
|=
MHDR_DONE
;
MIDI_NotifyClient
(
wDevID
,
MOM_DONE
,
(
DWORD
)
lpMidiHdr
,
0L
);
MIDI_NotifyClient
(
wDevID
,
MOM_DONE
,
(
DWORD
_PTR
)
lpMidiHdr
,
0L
);
return
MMSYSERR_NOERROR
;
}
...
...
@@ -811,7 +811,7 @@ static DWORD MIDIIn_Reset(WORD wDevID)
lpMidiHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
lpMidiHdr
->
dwFlags
|=
MHDR_DONE
;
/* FIXME: when called from 16 bit, lpQueueHdr needs to be a segmented ptr */
MIDI_NotifyClient
(
wDevID
,
MIM_LONGDATA
,
(
DWORD
)
lpMidiHdr
,
dwTime
);
MIDI_NotifyClient
(
wDevID
,
MIM_LONGDATA
,
(
DWORD
_PTR
)
lpMidiHdr
,
dwTime
);
}
LeaveCriticalSection
(
&
midiInLock
);
...
...
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