Commit d1ee1d68 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

msacm32: Enable compilation with long types.

parent 2ebd4e36
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = msacm32.dll MODULE = msacm32.dll
IMPORTLIB = msacm32 IMPORTLIB = msacm32
IMPORTS = winmm user32 advapi32 IMPORTS = winmm user32 advapi32
......
...@@ -49,7 +49,7 @@ MMRESULT WINAPI acmDriverAddA(PHACMDRIVERID phadid, HINSTANCE hinstModule, ...@@ -49,7 +49,7 @@ MMRESULT WINAPI acmDriverAddA(PHACMDRIVERID phadid, HINSTANCE hinstModule,
WCHAR * driverW = NULL; WCHAR * driverW = NULL;
LPARAM lParamW = lParam; LPARAM lParamW = lParam;
TRACE("(%p, %p, %08lx, %08x, %08x)\n", TRACE("(%p, %p, %08Ix, %08lx, %08lx)\n",
phadid, hinstModule, lParam, dwPriority, fdwAdd); phadid, hinstModule, lParam, dwPriority, fdwAdd);
if (!phadid) { if (!phadid) {
...@@ -98,7 +98,7 @@ MMRESULT WINAPI acmDriverAddW(PHACMDRIVERID phadid, HINSTANCE hinstModule, ...@@ -98,7 +98,7 @@ MMRESULT WINAPI acmDriverAddW(PHACMDRIVERID phadid, HINSTANCE hinstModule,
{ {
PWINE_ACMLOCALDRIVER pLocalDrv = NULL; PWINE_ACMLOCALDRIVER pLocalDrv = NULL;
TRACE("(%p, %p, %08lx, %08x, %08x)\n", TRACE("(%p, %p, %08Ix, %08lx, %08lx)\n",
phadid, hinstModule, lParam, dwPriority, fdwAdd); phadid, hinstModule, lParam, dwPriority, fdwAdd);
if (!phadid) { if (!phadid) {
...@@ -165,7 +165,7 @@ MMRESULT WINAPI acmDriverAddW(PHACMDRIVERID phadid, HINSTANCE hinstModule, ...@@ -165,7 +165,7 @@ MMRESULT WINAPI acmDriverAddW(PHACMDRIVERID phadid, HINSTANCE hinstModule,
} }
break; break;
default: default:
ERR("invalid flag value 0x%08x for fdwAdd\n", fdwAdd); ERR("invalid flag value 0x%08lx for fdwAdd\n", fdwAdd);
return MMSYSERR_INVALFLAG; return MMSYSERR_INVALFLAG;
} }
...@@ -182,7 +182,7 @@ MMRESULT WINAPI acmDriverClose(HACMDRIVER had, DWORD fdwClose) ...@@ -182,7 +182,7 @@ MMRESULT WINAPI acmDriverClose(HACMDRIVER had, DWORD fdwClose)
PWINE_ACMDRIVERID padid; PWINE_ACMDRIVERID padid;
PWINE_ACMDRIVER* tpad; PWINE_ACMDRIVER* tpad;
TRACE("(%p, %08x)\n", had, fdwClose); TRACE("(%p, %08lx)\n", had, fdwClose);
if (fdwClose) { if (fdwClose) {
WARN("invalid flag\n"); WARN("invalid flag\n");
...@@ -225,7 +225,7 @@ MMRESULT WINAPI acmDriverDetailsA(HACMDRIVERID hadid, PACMDRIVERDETAILSA padd, D ...@@ -225,7 +225,7 @@ MMRESULT WINAPI acmDriverDetailsA(HACMDRIVERID hadid, PACMDRIVERDETAILSA padd, D
MMRESULT mmr; MMRESULT mmr;
ACMDRIVERDETAILSW addw; ACMDRIVERDETAILSW addw;
TRACE("(%p, %p, %08x)\n", hadid, padd, fdwDetails); TRACE("(%p, %p, %08lx)\n", hadid, padd, fdwDetails);
if (!padd) { if (!padd) {
WARN("invalid parameter\n"); WARN("invalid parameter\n");
...@@ -276,7 +276,7 @@ MMRESULT WINAPI acmDriverDetailsW(HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, D ...@@ -276,7 +276,7 @@ MMRESULT WINAPI acmDriverDetailsW(HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, D
HACMDRIVER acmDrvr; HACMDRIVER acmDrvr;
MMRESULT mmr; MMRESULT mmr;
TRACE("(%p, %p, %08x)\n", hadid, padd, fdwDetails); TRACE("(%p, %p, %08lx)\n", hadid, padd, fdwDetails);
if (!padd) { if (!padd) {
WARN("invalid parameter\n"); WARN("invalid parameter\n");
...@@ -318,7 +318,7 @@ MMRESULT WINAPI acmDriverEnum(ACMDRIVERENUMCB fnCallback, DWORD_PTR dwInstance, ...@@ -318,7 +318,7 @@ MMRESULT WINAPI acmDriverEnum(ACMDRIVERENUMCB fnCallback, DWORD_PTR dwInstance,
PWINE_ACMDRIVERID padid; PWINE_ACMDRIVERID padid;
DWORD fdwSupport; DWORD fdwSupport;
TRACE("(%p, %08lx, %08x)\n", fnCallback, dwInstance, fdwEnum); TRACE("(%p, %08Ix, %08lx)\n", fnCallback, dwInstance, fdwEnum);
if (!fnCallback) { if (!fnCallback) {
WARN("invalid parameter\n"); WARN("invalid parameter\n");
...@@ -353,7 +353,7 @@ MMRESULT WINAPI acmDriverID(HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID ...@@ -353,7 +353,7 @@ MMRESULT WINAPI acmDriverID(HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID
{ {
PWINE_ACMOBJ pao; PWINE_ACMOBJ pao;
TRACE("(%p, %p, %08x)\n", hao, phadid, fdwDriverID); TRACE("(%p, %p, %08lx)\n", hao, phadid, fdwDriverID);
if (fdwDriverID) { if (fdwDriverID) {
WARN("invalid flag\n"); WARN("invalid flag\n");
...@@ -391,7 +391,7 @@ MMRESULT WINAPI acmDriverID(HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID ...@@ -391,7 +391,7 @@ MMRESULT WINAPI acmDriverID(HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID
*/ */
LRESULT WINAPI acmDriverMessage(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2) LRESULT WINAPI acmDriverMessage(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
{ {
TRACE("(%p, %04x, %08lx, %08lx\n", had, uMsg, lParam1, lParam2); TRACE("(%p, %04x, %08Ix, %08Ix\n", had, uMsg, lParam1, lParam2);
if ((uMsg >= ACMDM_USER && uMsg < ACMDM_RESERVED_LOW) || if ((uMsg >= ACMDM_USER && uMsg < ACMDM_RESERVED_LOW) ||
uMsg == ACMDM_DRIVER_ABOUT || uMsg == ACMDM_DRIVER_ABOUT ||
...@@ -492,7 +492,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe ...@@ -492,7 +492,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe
PWINE_ACMDRIVER pad = NULL; PWINE_ACMDRIVER pad = NULL;
MMRESULT ret; MMRESULT ret;
TRACE("(%p, %p, %08u)\n", phad, hadid, fdwOpen); TRACE("(%p, %p, %08lu)\n", phad, hadid, fdwOpen);
if (!phad) { if (!phad) {
WARN("invalid parameter\n"); WARN("invalid parameter\n");
...@@ -605,7 +605,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe ...@@ -605,7 +605,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe
MMRESULT WINAPI acmDriverPriority(HACMDRIVERID hadid, DWORD dwPriority, DWORD fdwPriority) MMRESULT WINAPI acmDriverPriority(HACMDRIVERID hadid, DWORD dwPriority, DWORD fdwPriority)
{ {
TRACE("(%p, %08x, %08x)\n", hadid, dwPriority, fdwPriority); TRACE("(%p, %08lx, %08lx)\n", hadid, dwPriority, fdwPriority);
/* Check for unknown flags */ /* Check for unknown flags */
if (fdwPriority & if (fdwPriority &
...@@ -679,7 +679,7 @@ MMRESULT WINAPI acmDriverPriority(HACMDRIVERID hadid, DWORD dwPriority, DWORD fd ...@@ -679,7 +679,7 @@ MMRESULT WINAPI acmDriverPriority(HACMDRIVERID hadid, DWORD dwPriority, DWORD fd
return MMSYSERR_NOTSUPPORTED; return MMSYSERR_NOTSUPPORTED;
} }
if (dwPriority != 1 && dwPriority != (DWORD)-1) { if (dwPriority != 1 && dwPriority != (DWORD)-1) {
FIXME("unexpected priority %d, using sign only\n", dwPriority); FIXME("unexpected priority %ld, using sign only\n", dwPriority);
if ((signed)dwPriority < 0) dwPriority = (DWORD)-1; if ((signed)dwPriority < 0) dwPriority = (DWORD)-1;
if (dwPriority > 0) dwPriority = 1; if (dwPriority > 0) dwPriority = 1;
} }
...@@ -746,7 +746,7 @@ MMRESULT WINAPI acmDriverRemove(HACMDRIVERID hadid, DWORD fdwRemove) ...@@ -746,7 +746,7 @@ MMRESULT WINAPI acmDriverRemove(HACMDRIVERID hadid, DWORD fdwRemove)
PWINE_ACMDRIVERID padid; PWINE_ACMDRIVERID padid;
PWINE_ACMNOTIFYWND panwnd; PWINE_ACMNOTIFYWND panwnd;
TRACE("(%p, %08x)\n", hadid, fdwRemove); TRACE("(%p, %08lx)\n", hadid, fdwRemove);
padid = MSACM_GetDriverID(hadid); padid = MSACM_GetDriverID(hadid);
panwnd = MSACM_GetNotifyWnd(hadid); panwnd = MSACM_GetNotifyWnd(hadid);
......
...@@ -91,7 +91,7 @@ MMRESULT WINAPI acmFilterDetailsW(HACMDRIVER had, PACMFILTERDETAILSW pafd, ...@@ -91,7 +91,7 @@ MMRESULT WINAPI acmFilterDetailsW(HACMDRIVER had, PACMFILTERDETAILSW pafd,
MMRESULT mmr; MMRESULT mmr;
ACMFILTERTAGDETAILSA aftd; ACMFILTERTAGDETAILSA aftd;
TRACE("(%p, %p, %d)\n", had, pafd, fdwDetails); TRACE("(%p, %p, %ld)\n", had, pafd, fdwDetails);
memset(&aftd, 0, sizeof(aftd)); memset(&aftd, 0, sizeof(aftd));
aftd.cbStruct = sizeof(aftd); aftd.cbStruct = sizeof(aftd);
...@@ -127,7 +127,7 @@ MMRESULT WINAPI acmFilterDetailsW(HACMDRIVER had, PACMFILTERDETAILSW pafd, ...@@ -127,7 +127,7 @@ MMRESULT WINAPI acmFilterDetailsW(HACMDRIVER had, PACMFILTERDETAILSW pafd,
mmr = MSACM_Message(had, ACMDM_FILTER_DETAILS, (LPARAM)pafd, fdwDetails); mmr = MSACM_Message(had, ACMDM_FILTER_DETAILS, (LPARAM)pafd, fdwDetails);
break; break;
default: default:
WARN("Unknown fdwDetails %08x\n", fdwDetails); WARN("Unknown fdwDetails %08lx\n", fdwDetails);
mmr = MMSYSERR_INVALFLAG; mmr = MMSYSERR_INVALFLAG;
break; break;
} }
...@@ -228,7 +228,7 @@ MMRESULT WINAPI acmFilterEnumW(HACMDRIVER had, PACMFILTERDETAILSW pafd, ...@@ -228,7 +228,7 @@ MMRESULT WINAPI acmFilterEnumW(HACMDRIVER had, PACMFILTERDETAILSW pafd,
PWINE_ACMDRIVERID padid; PWINE_ACMDRIVERID padid;
BOOL ret; BOOL ret;
TRACE("(%p, %p, %p, %ld, %d)\n", TRACE("(%p, %p, %p, %Id, %ld)\n",
had, pafd, fnCallback, dwInstance, fdwEnum); had, pafd, fnCallback, dwInstance, fdwEnum);
if (pafd->cbStruct < sizeof(*pafd)) return MMSYSERR_INVALPARAM; if (pafd->cbStruct < sizeof(*pafd)) return MMSYSERR_INVALPARAM;
...@@ -294,7 +294,7 @@ MMRESULT WINAPI acmFilterTagDetailsW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd ...@@ -294,7 +294,7 @@ MMRESULT WINAPI acmFilterTagDetailsW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd
PWINE_ACMDRIVERID padid; PWINE_ACMDRIVERID padid;
MMRESULT mmr; MMRESULT mmr;
TRACE("(%p, %p, %d)\n", had, paftd, fdwDetails); TRACE("(%p, %p, %ld)\n", had, paftd, fdwDetails);
if (fdwDetails & ~(ACM_FILTERTAGDETAILSF_FILTERTAG|ACM_FILTERTAGDETAILSF_INDEX| if (fdwDetails & ~(ACM_FILTERTAGDETAILSF_FILTERTAG|ACM_FILTERTAGDETAILSF_INDEX|
ACM_FILTERTAGDETAILSF_LARGESTSIZE)) ACM_FILTERTAGDETAILSF_LARGESTSIZE))
...@@ -355,7 +355,7 @@ MMRESULT WINAPI acmFilterTagDetailsW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd ...@@ -355,7 +355,7 @@ MMRESULT WINAPI acmFilterTagDetailsW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd
break; break;
default: default:
WARN("Unsupported fdwDetails=%08x\n", fdwDetails); WARN("Unsupported fdwDetails=%08lx\n", fdwDetails);
mmr = MMSYSERR_ERROR; mmr = MMSYSERR_ERROR;
} }
...@@ -427,7 +427,7 @@ MMRESULT WINAPI acmFilterTagEnumW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd, ...@@ -427,7 +427,7 @@ MMRESULT WINAPI acmFilterTagEnumW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd,
PWINE_ACMDRIVERID padid; PWINE_ACMDRIVERID padid;
unsigned int i; unsigned int i;
TRACE("(%p, %p, %p, %ld, %d)\n", TRACE("(%p, %p, %p, %Id, %ld)\n",
had, paftd, fnCallback, dwInstance, fdwEnum); had, paftd, fnCallback, dwInstance, fdwEnum);
if (paftd->cbStruct < sizeof(*paftd)) return MMSYSERR_INVALPARAM; if (paftd->cbStruct < sizeof(*paftd)) return MMSYSERR_INVALPARAM;
......
...@@ -217,7 +217,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg, ...@@ -217,7 +217,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
{ {
ACMFORMATCHOOSEW *afc = (ACMFORMATCHOOSEW *)GetPropW(hWnd, L"acmprop"); ACMFORMATCHOOSEW *afc = (ACMFORMATCHOOSEW *)GetPropW(hWnd, L"acmprop");
TRACE("hwnd=%p msg=%i 0x%08lx 0x%08lx\n", hWnd, msg, wParam, lParam); TRACE("hwnd=%p msg=%i 0x%08Ix 0x%08Ix\n", hWnd, msg, wParam, lParam);
switch (msg) { switch (msg) {
case WM_INITDIALOG: case WM_INITDIALOG:
...@@ -230,7 +230,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg, ...@@ -230,7 +230,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT| ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT|
ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE| ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE|
ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE)) != 0) ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE)) != 0)
FIXME("Unsupported style %08x\n", afc->fdwStyle); FIXME("Unsupported style %08lx\n", afc->fdwStyle);
if (!(afc->fdwStyle & ACMFORMATCHOOSE_STYLEF_SHOWHELP)) if (!(afc->fdwStyle & ACMFORMATCHOOSE_STYLEF_SHOWHELP))
ShowWindow(GetDlgItem(hWnd, IDD_ACMFORMATCHOOSE_BTN_HELP), SW_HIDE); ShowWindow(GetDlgItem(hWnd, IDD_ACMFORMATCHOOSE_BTN_HELP), SW_HIDE);
return TRUE; return TRUE;
...@@ -249,7 +249,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg, ...@@ -249,7 +249,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
MSACM_FillFormat(hWnd, afc); MSACM_FillFormat(hWnd, afc);
break; break;
default: default:
TRACE("Dropped dlgNotif (fmtTag): 0x%08x 0x%08lx\n", TRACE("Dropped dlgNotif (fmtTag): 0x%08x 0x%08Ix\n",
HIWORD(wParam), lParam); HIWORD(wParam), lParam);
break; break;
} }
...@@ -261,7 +261,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg, ...@@ -261,7 +261,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
break; break;
default: default:
TRACE("Dropped dlgCmd: ctl=%d ntf=0x%04x 0x%08lx\n", TRACE("Dropped dlgCmd: ctl=%d ntf=0x%04x 0x%08Ix\n",
LOWORD(wParam), HIWORD(wParam), lParam); LOWORD(wParam), HIWORD(wParam), lParam);
break; break;
} }
...@@ -281,7 +281,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg, ...@@ -281,7 +281,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
break; break;
#endif #endif
default: default:
TRACE("Dropped dlgMsg: hwnd=%p msg=%i 0x%08lx 0x%08lx\n", TRACE("Dropped dlgMsg: hwnd=%p msg=%i 0x%08Ix 0x%08Ix\n",
hWnd, msg, wParam, lParam ); hWnd, msg, wParam, lParam );
break; break;
} }
...@@ -430,7 +430,7 @@ MMRESULT WINAPI acmFormatDetailsW(HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD ...@@ -430,7 +430,7 @@ MMRESULT WINAPI acmFormatDetailsW(HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD
MMRESULT mmr; MMRESULT mmr;
ACMFORMATTAGDETAILSW aftd = {0}; ACMFORMATTAGDETAILSW aftd = {0};
TRACE("(%p, %p, %d)\n", had, pafd, fdwDetails); TRACE("(%p, %p, %ld)\n", had, pafd, fdwDetails);
if (!pafd) if (!pafd)
return MMSYSERR_INVALPARAM; return MMSYSERR_INVALPARAM;
...@@ -486,7 +486,7 @@ MMRESULT WINAPI acmFormatDetailsW(HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD ...@@ -486,7 +486,7 @@ MMRESULT WINAPI acmFormatDetailsW(HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD
mmr = MSACM_Message(had, ACMDM_FORMAT_DETAILS, (LPARAM)pafd, fdwDetails); mmr = MSACM_Message(had, ACMDM_FORMAT_DETAILS, (LPARAM)pafd, fdwDetails);
break; break;
default: default:
WARN("Unknown fdwDetails %08x\n", fdwDetails); WARN("Unknown fdwDetails %08lx\n", fdwDetails);
mmr = MMSYSERR_INVALFLAG; mmr = MMSYSERR_INVALFLAG;
break; break;
} }
...@@ -673,7 +673,7 @@ MMRESULT WINAPI acmFormatEnumW(HACMDRIVER had, PACMFORMATDETAILSW pafd, ...@@ -673,7 +673,7 @@ MMRESULT WINAPI acmFormatEnumW(HACMDRIVER had, PACMFORMATDETAILSW pafd,
DWORD cbwfxMax; DWORD cbwfxMax;
MMRESULT mmr; MMRESULT mmr;
TRACE("(%p, %p, %p, %ld, %d)\n", TRACE("(%p, %p, %p, %Id, %ld)\n",
had, pafd, fnCallback, dwInstance, fdwEnum); had, pafd, fnCallback, dwInstance, fdwEnum);
if (!pafd) if (!pafd)
...@@ -705,7 +705,7 @@ MMRESULT WINAPI acmFormatEnumW(HACMDRIVER had, PACMFORMATDETAILSW pafd, ...@@ -705,7 +705,7 @@ MMRESULT WINAPI acmFormatEnumW(HACMDRIVER had, PACMFORMATDETAILSW pafd,
return MMSYSERR_INVALPARAM; return MMSYSERR_INVALPARAM;
if (fdwEnum & (ACM_FORMATENUMF_CONVERT|ACM_FORMATENUMF_INPUT|ACM_FORMATENUMF_OUTPUT)) if (fdwEnum & (ACM_FORMATENUMF_CONVERT|ACM_FORMATENUMF_INPUT|ACM_FORMATENUMF_OUTPUT))
FIXME("Unsupported fdwEnum values %08x\n", fdwEnum); FIXME("Unsupported fdwEnum values %08lx\n", fdwEnum);
mmr = acmMetrics((HACMOBJ)had, ACM_METRIC_MAX_SIZE_FORMAT, &cbwfxMax); mmr = acmMetrics((HACMOBJ)had, ACM_METRIC_MAX_SIZE_FORMAT, &cbwfxMax);
if (mmr != MMSYSERR_NOERROR) if (mmr != MMSYSERR_NOERROR)
...@@ -745,7 +745,7 @@ MMRESULT WINAPI acmFormatSuggest(HACMDRIVER had, PWAVEFORMATEX pwfxSrc, ...@@ -745,7 +745,7 @@ MMRESULT WINAPI acmFormatSuggest(HACMDRIVER had, PWAVEFORMATEX pwfxSrc,
ACMDRVFORMATSUGGEST adfg; ACMDRVFORMATSUGGEST adfg;
MMRESULT mmr; MMRESULT mmr;
TRACE("(%p, %p, %p, %d, %d)\n", TRACE("(%p, %p, %p, %ld, %ld)\n",
had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest); had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest);
if (!pwfxSrc || !pwfxDst) if (!pwfxSrc || !pwfxDst)
...@@ -850,7 +850,7 @@ MMRESULT WINAPI acmFormatTagDetailsW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd ...@@ -850,7 +850,7 @@ MMRESULT WINAPI acmFormatTagDetailsW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd
PWINE_ACMDRIVERID padid; PWINE_ACMDRIVERID padid;
MMRESULT mmr = ACMERR_NOTPOSSIBLE; MMRESULT mmr = ACMERR_NOTPOSSIBLE;
TRACE("(%p, %p, %d)\n", had, paftd, fdwDetails); TRACE("(%p, %p, %ld)\n", had, paftd, fdwDetails);
if (fdwDetails & ~(ACM_FORMATTAGDETAILSF_FORMATTAG|ACM_FORMATTAGDETAILSF_INDEX| if (fdwDetails & ~(ACM_FORMATTAGDETAILSF_FORMATTAG|ACM_FORMATTAGDETAILSF_INDEX|
ACM_FORMATTAGDETAILSF_LARGESTSIZE)) ACM_FORMATTAGDETAILSF_LARGESTSIZE))
...@@ -917,7 +917,7 @@ MMRESULT WINAPI acmFormatTagDetailsW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd ...@@ -917,7 +917,7 @@ MMRESULT WINAPI acmFormatTagDetailsW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd
break; break;
default: default:
WARN("Unsupported fdwDetails=%08x\n", fdwDetails); WARN("Unsupported fdwDetails=%08lx\n", fdwDetails);
mmr = MMSYSERR_ERROR; mmr = MMSYSERR_ERROR;
} }
...@@ -999,7 +999,7 @@ MMRESULT WINAPI acmFormatTagEnumW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, ...@@ -999,7 +999,7 @@ MMRESULT WINAPI acmFormatTagEnumW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd,
unsigned int i; unsigned int i;
BOOL bPcmDone = FALSE; BOOL bPcmDone = FALSE;
TRACE("(%p, %p, %p, %ld, %d)\n", TRACE("(%p, %p, %p, %Id, %ld)\n",
had, paftd, fnCallback, dwInstance, fdwEnum); had, paftd, fnCallback, dwInstance, fdwEnum);
if (!paftd) if (!paftd)
......
...@@ -74,12 +74,12 @@ PWINE_ACMDRIVERID MSACM_RegisterDriverFromRegistry(LPCWSTR pszRegEntry) ...@@ -74,12 +74,12 @@ PWINE_ACMDRIVERID MSACM_RegisterDriverFromRegistry(LPCWSTR pszRegEntry)
if (0 == wcsnicmp(pszRegEntry, msacmW, ARRAY_SIZE(msacmW))) { if (0 == wcsnicmp(pszRegEntry, msacmW, ARRAY_SIZE(msacmW))) {
lRet = RegOpenKeyExW(HKEY_LOCAL_MACHINE, drvkey, 0, KEY_QUERY_VALUE, &hKey); lRet = RegOpenKeyExW(HKEY_LOCAL_MACHINE, drvkey, 0, KEY_QUERY_VALUE, &hKey);
if (lRet != ERROR_SUCCESS) { if (lRet != ERROR_SUCCESS) {
WARN("unable to open registry key - 0x%08x\n", lRet); WARN("unable to open registry key - 0x%08lx\n", lRet);
} else { } else {
bufLen = sizeof(buf); bufLen = sizeof(buf);
lRet = RegQueryValueExW(hKey, pszRegEntry, NULL, NULL, (LPBYTE)buf, &bufLen); lRet = RegQueryValueExW(hKey, pszRegEntry, NULL, NULL, (LPBYTE)buf, &bufLen);
if (lRet != ERROR_SUCCESS) { if (lRet != ERROR_SUCCESS) {
WARN("unable to query requested subkey %s - 0x%08x\n", debugstr_w(pszRegEntry), lRet); WARN("unable to query requested subkey %s - 0x%08lx\n", debugstr_w(pszRegEntry), lRet);
} else { } else {
MSACM_RegisterDriver(pszRegEntry, buf, 0); MSACM_RegisterDriver(pszRegEntry, buf, 0);
} }
...@@ -403,7 +403,7 @@ PWINE_ACMNOTIFYWND MSACM_RegisterNotificationWindow(HWND hNotifyWnd, DWORD dwNot ...@@ -403,7 +403,7 @@ PWINE_ACMNOTIFYWND MSACM_RegisterNotificationWindow(HWND hNotifyWnd, DWORD dwNot
{ {
PWINE_ACMNOTIFYWND panwnd; PWINE_ACMNOTIFYWND panwnd;
TRACE("(%p,0x%08x)\n", hNotifyWnd, dwNotifyMsg); TRACE("(%p,0x%08lx)\n", hNotifyWnd, dwNotifyMsg);
panwnd = HeapAlloc(MSACM_hHeap, 0, sizeof(WINE_ACMNOTIFYWND)); panwnd = HeapAlloc(MSACM_hHeap, 0, sizeof(WINE_ACMNOTIFYWND));
panwnd->obj.dwType = WINE_ACMOBJ_NOTIFYWND; panwnd->obj.dwType = WINE_ACMOBJ_NOTIFYWND;
...@@ -654,13 +654,13 @@ void MSACM_WriteCurrentPriorities(void) ...@@ -654,13 +654,13 @@ void MSACM_WriteCurrentPriorities(void)
/* Delete ACM priority key and create it anew */ /* Delete ACM priority key and create it anew */
lError = RegDeleteKeyW(HKEY_CURRENT_USER, basePriorityKey); lError = RegDeleteKeyW(HKEY_CURRENT_USER, basePriorityKey);
if (lError != ERROR_SUCCESS && lError != ERROR_FILE_NOT_FOUND) { if (lError != ERROR_SUCCESS && lError != ERROR_FILE_NOT_FOUND) {
ERR("unable to remove current key %s (0x%08x) - priority changes won't persist past application end.\n", ERR("unable to remove current key %s (0x%08lx) - priority changes won't persist past application end.\n",
debugstr_w(basePriorityKey), lError); debugstr_w(basePriorityKey), lError);
return; return;
} }
lError = RegCreateKeyW(HKEY_CURRENT_USER, basePriorityKey, &hPriorityKey); lError = RegCreateKeyW(HKEY_CURRENT_USER, basePriorityKey, &hPriorityKey);
if (lError != ERROR_SUCCESS) { if (lError != ERROR_SUCCESS) {
ERR("unable to create key %s (0x%08x) - priority changes won't persist past application end.\n", ERR("unable to create key %s (0x%08lx) - priority changes won't persist past application end.\n",
debugstr_w(basePriorityKey), lError); debugstr_w(basePriorityKey), lError);
return; return;
} }
...@@ -680,7 +680,7 @@ void MSACM_WriteCurrentPriorities(void) ...@@ -680,7 +680,7 @@ void MSACM_WriteCurrentPriorities(void)
lError = RegSetValueExW(hPriorityKey, szSubKey, 0, REG_SZ, (BYTE *)szBuffer, (lstrlenW(szBuffer) + 1) * sizeof(WCHAR)); lError = RegSetValueExW(hPriorityKey, szSubKey, 0, REG_SZ, (BYTE *)szBuffer, (lstrlenW(szBuffer) + 1) * sizeof(WCHAR));
if (lError != ERROR_SUCCESS) { if (lError != ERROR_SUCCESS) {
ERR("unable to write value for %s under key %s (0x%08x)\n", ERR("unable to write value for %s under key %s (0x%08lx)\n",
debugstr_w(padid->pszDriverAlias), debugstr_w(basePriorityKey), lError); debugstr_w(padid->pszDriverAlias), debugstr_w(basePriorityKey), lError);
} }
} }
...@@ -694,7 +694,7 @@ void MSACM_WriteCurrentPriorities(void) ...@@ -694,7 +694,7 @@ void MSACM_WriteCurrentPriorities(void)
lError = RegSetValueExW(hPriorityKey, szSubKey, 0, REG_SZ, (BYTE *)szBuffer, (lstrlenW(szBuffer) + 1) * sizeof(WCHAR)); lError = RegSetValueExW(hPriorityKey, szSubKey, 0, REG_SZ, (BYTE *)szBuffer, (lstrlenW(szBuffer) + 1) * sizeof(WCHAR));
if (lError != ERROR_SUCCESS) { if (lError != ERROR_SUCCESS) {
ERR("unable to write value for Internal PCM Converter under key %s (0x%08x)\n", ERR("unable to write value for Internal PCM Converter under key %s (0x%08lx)\n",
debugstr_w(basePriorityKey), lError); debugstr_w(basePriorityKey), lError);
} }
RegCloseKey(hPriorityKey); RegCloseKey(hPriorityKey);
......
...@@ -44,7 +44,7 @@ HINSTANCE MSACM_hInstance32 = 0; ...@@ -44,7 +44,7 @@ HINSTANCE MSACM_hInstance32 = 0;
*/ */
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved) BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
TRACE("%p 0x%x %p\n", hInstDLL, fdwReason, lpvReserved); TRACE("%p 0x%lx %p\n", hInstDLL, fdwReason, lpvReserved);
switch (fdwReason) { switch (fdwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
...@@ -87,7 +87,7 @@ DWORD WINAPI acmGetVersion(void) ...@@ -87,7 +87,7 @@ DWORD WINAPI acmGetVersion(void)
case VER_PLATFORM_WIN32s: case VER_PLATFORM_WIN32s:
return 0x02010000; /* 2.1 */ return 0x02010000; /* 2.1 */
default: default:
FIXME("%x not supported\n", version.dwPlatformId); FIXME("%lx not supported\n", version.dwPlatformId);
/* fall through */ /* fall through */
case VER_PLATFORM_WIN32_WINDOWS: case VER_PLATFORM_WIN32_WINDOWS:
return 0x04030000; /* 4.3.0 */ return 0x04030000; /* 4.3.0 */
......
...@@ -65,7 +65,7 @@ static DWORD PCM_drvOpen(LPCSTR str, PACMDRVOPENDESCW adod) ...@@ -65,7 +65,7 @@ static DWORD PCM_drvOpen(LPCSTR str, PACMDRVOPENDESCW adod)
*/ */
static DWORD PCM_drvClose(DWORD dwDevID) static DWORD PCM_drvClose(DWORD dwDevID)
{ {
TRACE("(%d)\n", dwDevID); TRACE("(%ld)\n", dwDevID);
return 1; return 1;
} }
...@@ -1001,7 +1001,7 @@ static LRESULT PCM_DriverDetails(PACMDRIVERDETAILSW add) ...@@ -1001,7 +1001,7 @@ static LRESULT PCM_DriverDetails(PACMDRIVERDETAILSW add)
*/ */
static LRESULT PCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery) static LRESULT PCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
{ {
TRACE("(%p, %08x)\n", aftd, dwQuery); TRACE("(%p, %08lx)\n", aftd, dwQuery);
switch (dwQuery) { switch (dwQuery) {
case ACM_FORMATTAGDETAILSF_INDEX: case ACM_FORMATTAGDETAILSF_INDEX:
...@@ -1024,7 +1024,7 @@ static LRESULT PCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery) ...@@ -1024,7 +1024,7 @@ static LRESULT PCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
} }
break; break;
default: default:
WARN("Unsupported query %08x\n", dwQuery); WARN("Unsupported query %08lx\n", dwQuery);
return MMSYSERR_NOTSUPPORTED; return MMSYSERR_NOTSUPPORTED;
} }
...@@ -1044,7 +1044,7 @@ static LRESULT PCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery) ...@@ -1044,7 +1044,7 @@ static LRESULT PCM_FormatTagDetails(PACMFORMATTAGDETAILSW aftd, DWORD dwQuery)
*/ */
static LRESULT PCM_FormatDetails(PACMFORMATDETAILSW afd, DWORD dwQuery) static LRESULT PCM_FormatDetails(PACMFORMATDETAILSW afd, DWORD dwQuery)
{ {
TRACE("(%p, %08x)\n", afd, dwQuery); TRACE("(%p, %08lx)\n", afd, dwQuery);
switch (dwQuery) { switch (dwQuery) {
case ACM_FORMATDETAILSF_FORMAT: case ACM_FORMATDETAILSF_FORMAT:
...@@ -1068,7 +1068,7 @@ static LRESULT PCM_FormatDetails(PACMFORMATDETAILSW afd, DWORD dwQuery) ...@@ -1068,7 +1068,7 @@ static LRESULT PCM_FormatDetails(PACMFORMATDETAILSW afd, DWORD dwQuery)
afd->pwfx->nSamplesPerSec * afd->pwfx->nBlockAlign; afd->pwfx->nSamplesPerSec * afd->pwfx->nBlockAlign;
break; break;
default: default:
WARN("Unsupported query %08x\n", dwQuery); WARN("Unsupported query %08lx\n", dwQuery);
return MMSYSERR_NOTSUPPORTED; return MMSYSERR_NOTSUPPORTED;
} }
...@@ -1260,7 +1260,7 @@ static LRESULT PCM_StreamSize(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMSIZE adss ...@@ -1260,7 +1260,7 @@ static LRESULT PCM_StreamSize(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMSIZE adss
adsi->pwfxSrc->nAvgBytesPerSec) & dstMask; adsi->pwfxSrc->nAvgBytesPerSec) & dstMask;
break; break;
default: default:
WARN("Unsupported query %08x\n", adss->fdwSize); WARN("Unsupported query %08lx\n", adss->fdwSize);
return MMSYSERR_NOTSUPPORTED; return MMSYSERR_NOTSUPPORTED;
} }
return MMSYSERR_NOERROR; return MMSYSERR_NOERROR;
...@@ -1278,12 +1278,12 @@ static LRESULT PCM_StreamConvert(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMHEADER ...@@ -1278,12 +1278,12 @@ static LRESULT PCM_StreamConvert(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMHEADER
TRACE("(%p, %p)\n", adsi, adsh); TRACE("(%p, %p)\n", adsi, adsh);
TRACE("nsrc=%d,adsh->cbSrcLength=%d\n", nsrc, adsh->cbSrcLength); TRACE("nsrc=%ld,adsh->cbSrcLength=%ld\n", nsrc, adsh->cbSrcLength);
TRACE("ndst=%d,adsh->cbDstLength=%d\n", ndst, adsh->cbDstLength); TRACE("ndst=%ld,adsh->cbDstLength=%ld\n", ndst, adsh->cbDstLength);
TRACE("src [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%u, nAvgBytesPerSec=%u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n", TRACE("src [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%lu, nAvgBytesPerSec=%lu, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n",
adsi->pwfxSrc->wFormatTag, adsi->pwfxSrc->nChannels, adsi->pwfxSrc->nSamplesPerSec, adsi->pwfxSrc->nAvgBytesPerSec, adsi->pwfxSrc->wFormatTag, adsi->pwfxSrc->nChannels, adsi->pwfxSrc->nSamplesPerSec, adsi->pwfxSrc->nAvgBytesPerSec,
adsi->pwfxSrc->nBlockAlign, adsi->pwfxSrc->wBitsPerSample, adsi->pwfxSrc->cbSize); adsi->pwfxSrc->nBlockAlign, adsi->pwfxSrc->wBitsPerSample, adsi->pwfxSrc->cbSize);
TRACE("dst [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%u, nAvgBytesPerSec=%u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n", TRACE("dst [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%lu, nAvgBytesPerSec=%lu, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n",
adsi->pwfxDst->wFormatTag, adsi->pwfxDst->nChannels, adsi->pwfxDst->nSamplesPerSec, adsi->pwfxDst->nAvgBytesPerSec, adsi->pwfxDst->wFormatTag, adsi->pwfxDst->nChannels, adsi->pwfxDst->nSamplesPerSec, adsi->pwfxDst->nAvgBytesPerSec,
adsi->pwfxDst->nBlockAlign, adsi->pwfxDst->wBitsPerSample, adsi->pwfxDst->cbSize); adsi->pwfxDst->nBlockAlign, adsi->pwfxDst->wBitsPerSample, adsi->pwfxDst->cbSize);
...@@ -1291,7 +1291,7 @@ static LRESULT PCM_StreamConvert(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMHEADER ...@@ -1291,7 +1291,7 @@ static LRESULT PCM_StreamConvert(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMHEADER
~(ACM_STREAMCONVERTF_BLOCKALIGN| ~(ACM_STREAMCONVERTF_BLOCKALIGN|
ACM_STREAMCONVERTF_END| ACM_STREAMCONVERTF_END|
ACM_STREAMCONVERTF_START)) { ACM_STREAMCONVERTF_START)) {
FIXME("Unsupported fdwConvert (%08x), ignoring it\n", adsh->fdwConvert); FIXME("Unsupported fdwConvert (%08lx), ignoring it\n", adsh->fdwConvert);
} }
/* ACM_STREAMCONVERTF_BLOCKALIGN /* ACM_STREAMCONVERTF_BLOCKALIGN
* currently all conversions are block aligned, so do nothing for this flag * currently all conversions are block aligned, so do nothing for this flag
...@@ -1325,7 +1325,7 @@ static LRESULT PCM_StreamConvert(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMHEADER ...@@ -1325,7 +1325,7 @@ static LRESULT PCM_StreamConvert(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMHEADER
LRESULT CALLBACK PCM_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg, LRESULT CALLBACK PCM_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
LPARAM dwParam1, LPARAM dwParam2) LPARAM dwParam1, LPARAM dwParam2)
{ {
TRACE("(%08lx %p %u %08lx %08lx);\n", TRACE("(%08Ix %p %u %08Ix %08Ix);\n",
dwDevID, hDriv, wMsg, dwParam1, dwParam2); dwDevID, hDriv, wMsg, dwParam1, dwParam2);
switch (wMsg) { switch (wMsg) {
......
...@@ -67,7 +67,7 @@ MMRESULT WINAPI acmStreamClose(HACMSTREAM has, DWORD fdwClose) ...@@ -67,7 +67,7 @@ MMRESULT WINAPI acmStreamClose(HACMSTREAM has, DWORD fdwClose)
PWINE_ACMSTREAM was; PWINE_ACMSTREAM was;
MMRESULT ret; MMRESULT ret;
TRACE("(%p, %d)\n", has, fdwClose); TRACE("(%p, %ld)\n", has, fdwClose);
if ((was = ACM_GetStream(has)) == NULL) { if ((was = ACM_GetStream(has)) == NULL) {
WARN("invalid handle\n"); WARN("invalid handle\n");
...@@ -93,7 +93,7 @@ MMRESULT WINAPI acmStreamConvert(HACMSTREAM has, PACMSTREAMHEADER pash, ...@@ -93,7 +93,7 @@ MMRESULT WINAPI acmStreamConvert(HACMSTREAM has, PACMSTREAMHEADER pash,
MMRESULT ret = MMSYSERR_NOERROR; MMRESULT ret = MMSYSERR_NOERROR;
PACMDRVSTREAMHEADER padsh; PACMDRVSTREAMHEADER padsh;
TRACE("(%p, %p, %d)\n", has, pash, fdwConvert); TRACE("(%p, %p, %ld)\n", has, pash, fdwConvert);
if ((was = ACM_GetStream(has)) == NULL) { if ((was = ACM_GetStream(has)) == NULL) {
WARN("invalid handle\n"); WARN("invalid handle\n");
...@@ -138,7 +138,7 @@ MMRESULT WINAPI acmStreamConvert(HACMSTREAM has, PACMSTREAMHEADER pash, ...@@ -138,7 +138,7 @@ MMRESULT WINAPI acmStreamConvert(HACMSTREAM has, PACMSTREAMHEADER pash,
MMRESULT WINAPI acmStreamMessage(HACMSTREAM has, UINT uMsg, LPARAM lParam1, MMRESULT WINAPI acmStreamMessage(HACMSTREAM has, UINT uMsg, LPARAM lParam1,
LPARAM lParam2) LPARAM lParam2)
{ {
FIXME("(%p, %u, %ld, %ld): stub\n", has, uMsg, lParam1, lParam2); FIXME("(%p, %u, %Id, %Id): stub\n", has, uMsg, lParam1, lParam2);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return MMSYSERR_ERROR; return MMSYSERR_ERROR;
} }
...@@ -158,7 +158,7 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, ...@@ -158,7 +158,7 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had,
int wfxDstSize; int wfxDstSize;
WAVEFORMATEX wfxSrc, wfxDst; WAVEFORMATEX wfxSrc, wfxDst;
TRACE("(%p, %p, %p, %p, %p, %ld, %ld, %d)\n", TRACE("(%p, %p, %p, %p, %p, %Id, %Id, %ld)\n",
phas, had, pwfxSrc, pwfxDst, pwfltr, dwCallback, dwInstance, fdwOpen); phas, had, pwfxSrc, pwfxDst, pwfltr, dwCallback, dwInstance, fdwOpen);
/* NOTE: pwfxSrc and/or pwfxDst can point to a structure smaller than /* NOTE: pwfxSrc and/or pwfxDst can point to a structure smaller than
...@@ -177,11 +177,11 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, ...@@ -177,11 +177,11 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had,
pwfxDst = &wfxDst; pwfxDst = &wfxDst;
} }
TRACE("src [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%u, nAvgBytesPerSec=%u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n", TRACE("src [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%lu, nAvgBytesPerSec=%lu, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n",
pwfxSrc->wFormatTag, pwfxSrc->nChannels, pwfxSrc->nSamplesPerSec, pwfxSrc->nAvgBytesPerSec, pwfxSrc->wFormatTag, pwfxSrc->nChannels, pwfxSrc->nSamplesPerSec, pwfxSrc->nAvgBytesPerSec,
pwfxSrc->nBlockAlign, pwfxSrc->wBitsPerSample, pwfxSrc->cbSize); pwfxSrc->nBlockAlign, pwfxSrc->wBitsPerSample, pwfxSrc->cbSize);
TRACE("dst [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%u, nAvgBytesPerSec=%u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n", TRACE("dst [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%lu, nAvgBytesPerSec=%lu, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]\n",
pwfxDst->wFormatTag, pwfxDst->nChannels, pwfxDst->nSamplesPerSec, pwfxDst->nAvgBytesPerSec, pwfxDst->wFormatTag, pwfxDst->nChannels, pwfxDst->nSamplesPerSec, pwfxDst->nAvgBytesPerSec,
pwfxDst->nBlockAlign, pwfxDst->wBitsPerSample, pwfxDst->cbSize); pwfxDst->nBlockAlign, pwfxDst->wBitsPerSample, pwfxDst->cbSize);
...@@ -303,7 +303,7 @@ MMRESULT WINAPI acmStreamPrepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash, ...@@ -303,7 +303,7 @@ MMRESULT WINAPI acmStreamPrepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash,
MMRESULT ret = MMSYSERR_NOERROR; MMRESULT ret = MMSYSERR_NOERROR;
PACMDRVSTREAMHEADER padsh; PACMDRVSTREAMHEADER padsh;
TRACE("(%p, %p, %d)\n", has, pash, fdwPrepare); TRACE("(%p, %p, %ld)\n", has, pash, fdwPrepare);
if ((was = ACM_GetStream(has)) == NULL) { if ((was = ACM_GetStream(has)) == NULL) {
WARN("invalid handle\n"); WARN("invalid handle\n");
...@@ -320,7 +320,7 @@ MMRESULT WINAPI acmStreamPrepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash, ...@@ -320,7 +320,7 @@ MMRESULT WINAPI acmStreamPrepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash,
if ((was->drvInst.pwfxSrc->wFormatTag == WAVE_FORMAT_ADPCM || if ((was->drvInst.pwfxSrc->wFormatTag == WAVE_FORMAT_ADPCM ||
was->drvInst.pwfxSrc->wFormatTag == WAVE_FORMAT_PCM) && was->drvInst.pwfxSrc->wFormatTag == WAVE_FORMAT_PCM) &&
pash->cbSrcLength < was->drvInst.pwfxSrc->nBlockAlign) { pash->cbSrcLength < was->drvInst.pwfxSrc->nBlockAlign) {
WARN("source smaller than block align (%d < %d)\n", WARN("source smaller than block align (%ld < %d)\n",
pash->cbSrcLength, was->drvInst.pwfxSrc->nBlockAlign); pash->cbSrcLength, was->drvInst.pwfxSrc->nBlockAlign);
return pash->cbSrcLength ? ACMERR_NOTPOSSIBLE : MMSYSERR_INVALPARAM; return pash->cbSrcLength ? ACMERR_NOTPOSSIBLE : MMSYSERR_INVALPARAM;
} }
...@@ -373,7 +373,7 @@ MMRESULT WINAPI acmStreamReset(HACMSTREAM has, DWORD fdwReset) ...@@ -373,7 +373,7 @@ MMRESULT WINAPI acmStreamReset(HACMSTREAM has, DWORD fdwReset)
PWINE_ACMSTREAM was; PWINE_ACMSTREAM was;
MMRESULT ret = MMSYSERR_NOERROR; MMRESULT ret = MMSYSERR_NOERROR;
TRACE("(%p, %d)\n", has, fdwReset); TRACE("(%p, %ld)\n", has, fdwReset);
if (fdwReset) { if (fdwReset) {
WARN("invalid flag\n"); WARN("invalid flag\n");
...@@ -398,7 +398,7 @@ MMRESULT WINAPI acmStreamSize(HACMSTREAM has, DWORD cbInput, ...@@ -398,7 +398,7 @@ MMRESULT WINAPI acmStreamSize(HACMSTREAM has, DWORD cbInput,
ACMDRVSTREAMSIZE adss; ACMDRVSTREAMSIZE adss;
MMRESULT ret; MMRESULT ret;
TRACE("(%p, %d, %p, %d)\n", has, cbInput, pdwOutputBytes, fdwSize); TRACE("(%p, %ld, %p, %ld)\n", has, cbInput, pdwOutputBytes, fdwSize);
if ((was = ACM_GetStream(has)) == NULL) { if ((was = ACM_GetStream(has)) == NULL) {
WARN("invalid handle\n"); WARN("invalid handle\n");
...@@ -439,7 +439,7 @@ MMRESULT WINAPI acmStreamSize(HACMSTREAM has, DWORD cbInput, ...@@ -439,7 +439,7 @@ MMRESULT WINAPI acmStreamSize(HACMSTREAM has, DWORD cbInput,
break; break;
} }
} }
TRACE("=> (%d) [%u]\n", ret, *pdwOutputBytes); TRACE("=> (%d) [%lu]\n", ret, *pdwOutputBytes);
return ret; return ret;
} }
...@@ -453,7 +453,7 @@ MMRESULT WINAPI acmStreamUnprepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash, ...@@ -453,7 +453,7 @@ MMRESULT WINAPI acmStreamUnprepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash,
MMRESULT ret = MMSYSERR_NOERROR; MMRESULT ret = MMSYSERR_NOERROR;
PACMDRVSTREAMHEADER padsh; PACMDRVSTREAMHEADER padsh;
TRACE("(%p, %p, %d)\n", has, pash, fdwUnprepare); TRACE("(%p, %p, %ld)\n", has, pash, fdwUnprepare);
if ((was = ACM_GetStream(has)) == NULL) { if ((was = ACM_GetStream(has)) == NULL) {
WARN("invalid handle\n"); WARN("invalid handle\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment