Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c414344e
Commit
c414344e
authored
Aug 03, 2002
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert HMIXER, HMIXEROBJ to a void*.
parent
ff42c017
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
mmsystem.c
dlls/winmm/mmsystem.c
+9
-8
winemm.h
dlls/winmm/winemm.h
+4
-0
mmsystem.h
include/mmsystem.h
+2
-2
No files found.
dlls/winmm/mmsystem.c
View file @
c414344e
...
...
@@ -943,7 +943,7 @@ static UINT MMSYSTEM_mixerOpen(LPHMIXER lphMix, UINT uDeviceID, DWORD dwCallbac
&
dwCallback
,
&
dwInstance
,
bFrom32
);
wmld
->
uDeviceID
=
uDeviceID
;
mod
.
hmx
=
hMix
;
mod
.
hmx
=
(
HMIXEROBJ
)
hMix
;
mod
.
dwCallback
=
dwCallback
;
mod
.
dwInstance
=
dwInstance
;
...
...
@@ -980,7 +980,7 @@ UINT16 WINAPI mixerOpen16(LPHMIXER16 lphmix, UINT16 uDeviceID, DWORD dwCallback,
ret
=
MMSYSTEM_mixerOpen
(
&
hmix
,
uDeviceID
,
dwCallback
,
dwInstance
,
fdwOpen
,
FALSE
);
if
(
lphmix
)
*
lphmix
=
hmix
;
if
(
lphmix
)
*
lphmix
=
HMIXER_16
(
hmix
)
;
return
ret
;
}
...
...
@@ -1007,7 +1007,7 @@ UINT WINAPI mixerClose(HMIXER hMix)
*/
UINT16
WINAPI
mixerClose16
(
HMIXER16
hMix
)
{
return
mixerClose
(
hMix
);
return
mixerClose
(
HMIXER_32
(
hMix
)
);
}
/**************************************************************************
...
...
@@ -1035,7 +1035,7 @@ UINT WINAPI mixerGetID(HMIXEROBJ hmix, LPUINT lpid, DWORD fdwID)
UINT16
WINAPI
mixerGetID16
(
HMIXEROBJ16
hmix
,
LPUINT16
lpid
,
DWORD
fdwID
)
{
UINT
xid
;
UINT
ret
=
mixerGetID
(
hmix
,
&
xid
,
fdwID
);
UINT
ret
=
mixerGetID
(
HMIXEROBJ_32
(
hmix
)
,
&
xid
,
fdwID
);
if
(
lpid
)
*
lpid
=
xid
;
...
...
@@ -1137,7 +1137,8 @@ UINT16 WINAPI mixerGetControlDetails16(HMIXEROBJ16 hmix,
sppaDetails
=
(
SEGPTR
)
lpmcd
->
paDetails
;
lpmcd
->
paDetails
=
MapSL
(
sppaDetails
);
ret
=
mixerGetControlDetailsA
(
hmix
,
(
LPMIXERCONTROLDETAILS
)
lpmcd
,
fdwDetails
);
ret
=
mixerGetControlDetailsA
(
HMIXEROBJ_32
(
hmix
),
(
LPMIXERCONTROLDETAILS
)
lpmcd
,
fdwDetails
);
lpmcd
->
paDetails
=
(
LPVOID
)
sppaDetails
;
return
ret
;
...
...
@@ -1251,7 +1252,7 @@ UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16 hmix,
mlcA
.
pamxctrl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
mlcA
.
cControls
*
mlcA
.
cbmxctrl
);
ret
=
mixerGetLineControlsA
(
hmix
,
&
mlcA
,
fdwControls
);
ret
=
mixerGetLineControlsA
(
HMIXEROBJ_32
(
hmix
)
,
&
mlcA
,
fdwControls
);
if
(
ret
==
MMSYSERR_NOERROR
)
{
lpmlc16
->
dwLineID
=
mlcA
.
dwLineID
;
...
...
@@ -1405,7 +1406,7 @@ UINT16 WINAPI mixerGetLineInfo16(HMIXEROBJ16 hmix, LPMIXERLINE16 lpmli16,
FIXME
(
"Unsupported fdwControls=0x%08lx
\n
"
,
fdwInfo
);
}
ret
=
mixerGetLineInfoA
(
hmix
,
&
mliA
,
fdwInfo
);
ret
=
mixerGetLineInfoA
(
HMIXEROBJ_32
(
hmix
)
,
&
mliA
,
fdwInfo
);
lpmli16
->
dwDestination
=
mliA
.
dwDestination
;
lpmli16
->
dwSource
=
mliA
.
dwSource
;
...
...
@@ -1478,7 +1479,7 @@ UINT WINAPI mixerMessage(HMIXER hmix, UINT uMsg, DWORD dwParam1, DWORD dwParam2)
DWORD
WINAPI
mixerMessage16
(
HMIXER16
hmix
,
UINT16
uMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
)
{
return
mixerMessage
(
hmix
,
uMsg
,
dwParam1
,
dwParam2
);
return
mixerMessage
(
HMIXER_32
(
hmix
)
,
uMsg
,
dwParam1
,
dwParam2
);
}
/**************************************************************************
...
...
dlls/winmm/winemm.h
View file @
c414344e
...
...
@@ -232,6 +232,8 @@ void TIME_MMTimeStop(void);
#define HMIDIIN_32(h16) ((HMIDIIN)(ULONG_PTR)(h16))
#define HMIDIOUT_32(h16) ((HMIDIOUT)(ULONG_PTR)(h16))
#define HMIDISTRM_32(h16) ((HMIDISTRM)(ULONG_PTR)(h16))
#define HMIXER_32(h16) ((HMIXER)(ULONG_PTR)(h16))
#define HMIXEROBJ_32(h16) ((HMIXEROBJ)(ULONG_PTR)(h16))
#define HWAVE_32(h16) ((HWAVE)(ULONG_PTR)(h16))
#define HWAVEIN_32(h16) ((HWAVEIN)(ULONG_PTR)(h16))
#define HWAVEOUT_32(h16) ((HWAVEOUT)(ULONG_PTR)(h16))
...
...
@@ -241,6 +243,8 @@ void TIME_MMTimeStop(void);
#define HMIDIIN_16(h32) (LOWORD(h32))
#define HMIDIOUT_16(h32) (LOWORD(h32))
#define HMIDISTRM_16(h32) (LOWORD(h32))
#define HMIXER_16(h32) (LOWORD(h32))
#define HMIXEROBJ_16(h32) (LOWORD(h32))
#define HWAVE_16(h32) (LOWORD(h32))
#define HWAVEIN_16(h32) (LOWORD(h32))
#define HWAVEOUT_16(h32) (LOWORD(h32))
include/mmsystem.h
View file @
c414344e
...
...
@@ -38,8 +38,8 @@ DECLARE_HANDLE(HMIDI);
DECLARE_HANDLE
(
HMIDIIN
);
DECLARE_HANDLE
(
HMIDIOUT
);
DECLARE_HANDLE
(
HMIDISTRM
);
DECLARE_
OLD_
HANDLE
(
HMIXER
);
DECLARE_
OLD_
HANDLE
(
HMIXEROBJ
);
DECLARE_HANDLE
(
HMIXER
);
DECLARE_HANDLE
(
HMIXEROBJ
);
DECLARE_OLD_HANDLE
(
HMMIO
);
#include "pshpack1.h"
...
...
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