Convert HMIXER, HMIXEROBJ to a void*.

This commit is contained in:
Michael Stefaniuc 2002-08-03 00:14:43 +00:00 committed by Alexandre Julliard
parent ff42c0174d
commit c414344e2a
3 changed files with 15 additions and 10 deletions

View File

@ -943,7 +943,7 @@ static UINT MMSYSTEM_mixerOpen(LPHMIXER lphMix, UINT uDeviceID, DWORD dwCallbac
&dwCallback, &dwInstance, bFrom32); &dwCallback, &dwInstance, bFrom32);
wmld->uDeviceID = uDeviceID; wmld->uDeviceID = uDeviceID;
mod.hmx = hMix; mod.hmx = (HMIXEROBJ)hMix;
mod.dwCallback = dwCallback; mod.dwCallback = dwCallback;
mod.dwInstance = dwInstance; mod.dwInstance = dwInstance;
@ -980,7 +980,7 @@ UINT16 WINAPI mixerOpen16(LPHMIXER16 lphmix, UINT16 uDeviceID, DWORD dwCallback,
ret = MMSYSTEM_mixerOpen(&hmix, uDeviceID, ret = MMSYSTEM_mixerOpen(&hmix, uDeviceID,
dwCallback, dwInstance, fdwOpen, FALSE); dwCallback, dwInstance, fdwOpen, FALSE);
if (lphmix) *lphmix = hmix; if (lphmix) *lphmix = HMIXER_16(hmix);
return ret; return ret;
} }
@ -1007,7 +1007,7 @@ UINT WINAPI mixerClose(HMIXER hMix)
*/ */
UINT16 WINAPI mixerClose16(HMIXER16 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) UINT16 WINAPI mixerGetID16(HMIXEROBJ16 hmix, LPUINT16 lpid, DWORD fdwID)
{ {
UINT xid; UINT xid;
UINT ret = mixerGetID(hmix, &xid, fdwID); UINT ret = mixerGetID(HMIXEROBJ_32(hmix), &xid, fdwID);
if (lpid) if (lpid)
*lpid = xid; *lpid = xid;
@ -1137,7 +1137,8 @@ UINT16 WINAPI mixerGetControlDetails16(HMIXEROBJ16 hmix,
sppaDetails = (SEGPTR)lpmcd->paDetails; sppaDetails = (SEGPTR)lpmcd->paDetails;
lpmcd->paDetails = MapSL(sppaDetails); lpmcd->paDetails = MapSL(sppaDetails);
ret = mixerGetControlDetailsA(hmix, (LPMIXERCONTROLDETAILS)lpmcd, fdwDetails); ret = mixerGetControlDetailsA(HMIXEROBJ_32(hmix),
(LPMIXERCONTROLDETAILS)lpmcd, fdwDetails);
lpmcd->paDetails = (LPVOID)sppaDetails; lpmcd->paDetails = (LPVOID)sppaDetails;
return ret; return ret;
@ -1251,7 +1252,7 @@ UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16 hmix,
mlcA.pamxctrl = HeapAlloc(GetProcessHeap(), 0, mlcA.pamxctrl = HeapAlloc(GetProcessHeap(), 0,
mlcA.cControls * mlcA.cbmxctrl); mlcA.cControls * mlcA.cbmxctrl);
ret = mixerGetLineControlsA(hmix, &mlcA, fdwControls); ret = mixerGetLineControlsA(HMIXEROBJ_32(hmix), &mlcA, fdwControls);
if (ret == MMSYSERR_NOERROR) { if (ret == MMSYSERR_NOERROR) {
lpmlc16->dwLineID = mlcA.dwLineID; lpmlc16->dwLineID = mlcA.dwLineID;
@ -1405,7 +1406,7 @@ UINT16 WINAPI mixerGetLineInfo16(HMIXEROBJ16 hmix, LPMIXERLINE16 lpmli16,
FIXME("Unsupported fdwControls=0x%08lx\n", fdwInfo); FIXME("Unsupported fdwControls=0x%08lx\n", fdwInfo);
} }
ret = mixerGetLineInfoA(hmix, &mliA, fdwInfo); ret = mixerGetLineInfoA(HMIXEROBJ_32(hmix), &mliA, fdwInfo);
lpmli16->dwDestination = mliA.dwDestination; lpmli16->dwDestination = mliA.dwDestination;
lpmli16->dwSource = mliA.dwSource; 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 WINAPI mixerMessage16(HMIXER16 hmix, UINT16 uMsg, DWORD dwParam1,
DWORD dwParam2) DWORD dwParam2)
{ {
return mixerMessage(hmix, uMsg, dwParam1, dwParam2); return mixerMessage(HMIXER_32(hmix), uMsg, dwParam1, dwParam2);
} }
/************************************************************************** /**************************************************************************

View File

@ -232,6 +232,8 @@ void TIME_MMTimeStop(void);
#define HMIDIIN_32(h16) ((HMIDIIN)(ULONG_PTR)(h16)) #define HMIDIIN_32(h16) ((HMIDIIN)(ULONG_PTR)(h16))
#define HMIDIOUT_32(h16) ((HMIDIOUT)(ULONG_PTR)(h16)) #define HMIDIOUT_32(h16) ((HMIDIOUT)(ULONG_PTR)(h16))
#define HMIDISTRM_32(h16) ((HMIDISTRM)(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 HWAVE_32(h16) ((HWAVE)(ULONG_PTR)(h16))
#define HWAVEIN_32(h16) ((HWAVEIN)(ULONG_PTR)(h16)) #define HWAVEIN_32(h16) ((HWAVEIN)(ULONG_PTR)(h16))
#define HWAVEOUT_32(h16) ((HWAVEOUT)(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 HMIDIIN_16(h32) (LOWORD(h32))
#define HMIDIOUT_16(h32) (LOWORD(h32)) #define HMIDIOUT_16(h32) (LOWORD(h32))
#define HMIDISTRM_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 HWAVE_16(h32) (LOWORD(h32))
#define HWAVEIN_16(h32) (LOWORD(h32)) #define HWAVEIN_16(h32) (LOWORD(h32))
#define HWAVEOUT_16(h32) (LOWORD(h32)) #define HWAVEOUT_16(h32) (LOWORD(h32))

View File

@ -38,8 +38,8 @@ DECLARE_HANDLE(HMIDI);
DECLARE_HANDLE(HMIDIIN); DECLARE_HANDLE(HMIDIIN);
DECLARE_HANDLE(HMIDIOUT); DECLARE_HANDLE(HMIDIOUT);
DECLARE_HANDLE(HMIDISTRM); DECLARE_HANDLE(HMIDISTRM);
DECLARE_OLD_HANDLE(HMIXER); DECLARE_HANDLE(HMIXER);
DECLARE_OLD_HANDLE(HMIXEROBJ); DECLARE_HANDLE(HMIXEROBJ);
DECLARE_OLD_HANDLE(HMMIO); DECLARE_OLD_HANDLE(HMMIO);
#include "pshpack1.h" #include "pshpack1.h"