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
0290eb1f
Commit
0290eb1f
authored
Oct 12, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm32: Win64 printf format warning fixes.
parent
a4253ba0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
96 additions
and
97 deletions
+96
-97
Makefile.in
dlls/msacm32/Makefile.in
+0
-1
driver.c
dlls/msacm32/driver.c
+11
-11
filter.c
dlls/msacm32/filter.c
+6
-6
format.c
dlls/msacm32/format.c
+9
-9
internal.c
dlls/msacm32/internal.c
+7
-7
msacm32_main.c
dlls/msacm32/msacm32_main.c
+2
-2
msacm_main.c
dlls/msacm32/msacm_main.c
+24
-24
pcmconverter.c
dlls/msacm32/pcmconverter.c
+27
-27
stream.c
dlls/msacm32/stream.c
+10
-10
No files found.
dlls/msacm32/Makefile.in
View file @
0290eb1f
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE
=
msacm32.dll
IMPORTLIB
=
libmsacm32.
$(IMPLIBEXT)
IMPORTS
=
winmm user32 advapi32 kernel32
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
driver.c
\
...
...
dlls/msacm32/driver.c
View file @
0290eb1f
...
...
@@ -54,7 +54,7 @@ MMRESULT WINAPI acmDriverAddA(PHACMDRIVERID phadid, HINSTANCE hinstModule,
WCHAR
*
driverW
=
NULL
;
LPARAM
lParamW
=
lParam
;
TRACE
(
"(%p, %p, %08lx, %08
lx, %08l
x)
\n
"
,
TRACE
(
"(%p, %p, %08lx, %08
x, %08
x)
\n
"
,
phadid
,
hinstModule
,
lParam
,
dwPriority
,
fdwAdd
);
if
(
!
phadid
)
{
...
...
@@ -103,7 +103,7 @@ MMRESULT WINAPI acmDriverAddW(PHACMDRIVERID phadid, HINSTANCE hinstModule,
{
PWINE_ACMLOCALDRIVER
pLocalDrv
=
NULL
;
TRACE
(
"(%p, %p, %08lx, %08
lx, %08l
x)
\n
"
,
TRACE
(
"(%p, %p, %08lx, %08
x, %08
x)
\n
"
,
phadid
,
hinstModule
,
lParam
,
dwPriority
,
fdwAdd
);
if
(
!
phadid
)
{
...
...
@@ -187,7 +187,7 @@ MMRESULT WINAPI acmDriverClose(HACMDRIVER had, DWORD fdwClose)
PWINE_ACMDRIVERID
padid
;
PWINE_ACMDRIVER
*
tpad
;
TRACE
(
"(%p, %08
l
x)
\n
"
,
had
,
fdwClose
);
TRACE
(
"(%p, %08x)
\n
"
,
had
,
fdwClose
);
if
(
fdwClose
)
{
WARN
(
"invalid flag
\n
"
);
...
...
@@ -229,7 +229,7 @@ MMRESULT WINAPI acmDriverDetailsA(HACMDRIVERID hadid, PACMDRIVERDETAILSA padd, D
MMRESULT
mmr
;
ACMDRIVERDETAILSW
addw
;
TRACE
(
"(%p, %p, %08
l
x)
\n
"
,
hadid
,
padd
,
fdwDetails
);
TRACE
(
"(%p, %p, %08x)
\n
"
,
hadid
,
padd
,
fdwDetails
);
if
(
!
padd
)
{
WARN
(
"invalid parameter
\n
"
);
...
...
@@ -280,7 +280,7 @@ MMRESULT WINAPI acmDriverDetailsW(HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, D
HACMDRIVER
acmDrvr
;
MMRESULT
mmr
;
TRACE
(
"(%p, %p, %08
l
x)
\n
"
,
hadid
,
padd
,
fdwDetails
);
TRACE
(
"(%p, %p, %08x)
\n
"
,
hadid
,
padd
,
fdwDetails
);
if
(
!
padd
)
{
WARN
(
"invalid parameter
\n
"
);
...
...
@@ -319,7 +319,7 @@ MMRESULT WINAPI acmDriverEnum(ACMDRIVERENUMCB fnCallback, DWORD dwInstance, DWOR
PWINE_ACMDRIVERID
padid
;
DWORD
fdwSupport
;
TRACE
(
"(%p, %08
lx, %08l
x)
\n
"
,
fnCallback
,
dwInstance
,
fdwEnum
);
TRACE
(
"(%p, %08
x, %08
x)
\n
"
,
fnCallback
,
dwInstance
,
fdwEnum
);
if
(
!
fnCallback
)
{
WARN
(
"invalid parameter
\n
"
);
...
...
@@ -354,7 +354,7 @@ MMRESULT WINAPI acmDriverID(HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID
{
PWINE_ACMOBJ
pao
;
TRACE
(
"(%p, %p, %08
l
x)
\n
"
,
hao
,
phadid
,
fdwDriverID
);
TRACE
(
"(%p, %p, %08x)
\n
"
,
hao
,
phadid
,
fdwDriverID
);
if
(
fdwDriverID
)
{
WARN
(
"invalid flag
\n
"
);
...
...
@@ -490,7 +490,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe
PWINE_ACMDRIVER
pad
=
NULL
;
MMRESULT
ret
;
TRACE
(
"(%p, %p, %08
l
u)
\n
"
,
phad
,
hadid
,
fdwOpen
);
TRACE
(
"(%p, %p, %08u)
\n
"
,
phad
,
hadid
,
fdwOpen
);
if
(
!
phad
)
{
WARN
(
"invalid parameter
\n
"
);
...
...
@@ -598,7 +598,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe
MMRESULT
WINAPI
acmDriverPriority
(
HACMDRIVERID
hadid
,
DWORD
dwPriority
,
DWORD
fdwPriority
)
{
TRACE
(
"(%p, %08
lx, %08l
x)
\n
"
,
hadid
,
dwPriority
,
fdwPriority
);
TRACE
(
"(%p, %08
x, %08
x)
\n
"
,
hadid
,
dwPriority
,
fdwPriority
);
/* Check for unknown flags */
if
(
fdwPriority
&
...
...
@@ -672,7 +672,7 @@ MMRESULT WINAPI acmDriverPriority(HACMDRIVERID hadid, DWORD dwPriority, DWORD fd
return
MMSYSERR_NOTSUPPORTED
;
}
if
(
dwPriority
!=
1
&&
dwPriority
!=
(
DWORD
)
-
1
)
{
FIXME
(
"unexpected priority %
l
d, using sign only
\n
"
,
dwPriority
);
FIXME
(
"unexpected priority %d, using sign only
\n
"
,
dwPriority
);
if
((
signed
)
dwPriority
<
0
)
dwPriority
=
(
DWORD
)
-
1
;
if
(
dwPriority
>
0
)
dwPriority
=
1
;
}
...
...
@@ -739,7 +739,7 @@ MMRESULT WINAPI acmDriverRemove(HACMDRIVERID hadid, DWORD fdwRemove)
PWINE_ACMDRIVERID
padid
;
PWINE_ACMNOTIFYWND
panwnd
;
TRACE
(
"(%p, %08
l
x)
\n
"
,
hadid
,
fdwRemove
);
TRACE
(
"(%p, %08x)
\n
"
,
hadid
,
fdwRemove
);
padid
=
MSACM_GetDriverID
(
hadid
);
panwnd
=
MSACM_GetNotifyWnd
(
hadid
);
...
...
dlls/msacm32/filter.c
View file @
0290eb1f
...
...
@@ -91,7 +91,7 @@ MMRESULT WINAPI acmFilterDetailsW(HACMDRIVER had, PACMFILTERDETAILSW pafd,
MMRESULT
mmr
;
ACMFILTERTAGDETAILSA
aftd
;
TRACE
(
"(%p, %p, %
l
d)
\n
"
,
had
,
pafd
,
fdwDetails
);
TRACE
(
"(%p, %p, %d)
\n
"
,
had
,
pafd
,
fdwDetails
);
memset
(
&
aftd
,
0
,
sizeof
(
aftd
));
aftd
.
cbStruct
=
sizeof
(
aftd
);
...
...
@@ -127,7 +127,7 @@ MMRESULT WINAPI acmFilterDetailsW(HACMDRIVER had, PACMFILTERDETAILSW pafd,
mmr
=
MSACM_Message
(
had
,
ACMDM_FILTER_DETAILS
,
(
LPARAM
)
pafd
,
fdwDetails
);
break
;
default:
WARN
(
"Unknown fdwDetails %08
l
x
\n
"
,
fdwDetails
);
WARN
(
"Unknown fdwDetails %08x
\n
"
,
fdwDetails
);
mmr
=
MMSYSERR_INVALFLAG
;
break
;
}
...
...
@@ -228,7 +228,7 @@ MMRESULT WINAPI acmFilterEnumW(HACMDRIVER had, PACMFILTERDETAILSW pafd,
PWINE_ACMDRIVERID
padid
;
BOOL
ret
;
TRACE
(
"(%p, %p, %p, %
ld, %l
d)
\n
"
,
TRACE
(
"(%p, %p, %p, %
d, %
d)
\n
"
,
had
,
pafd
,
fnCallback
,
dwInstance
,
fdwEnum
);
if
(
pafd
->
cbStruct
<
sizeof
(
*
pafd
))
return
MMSYSERR_INVALPARAM
;
...
...
@@ -294,7 +294,7 @@ MMRESULT WINAPI acmFilterTagDetailsW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd
PWINE_ACMDRIVERID
padid
;
MMRESULT
mmr
;
TRACE
(
"(%p, %p, %
l
d)
\n
"
,
had
,
paftd
,
fdwDetails
);
TRACE
(
"(%p, %p, %d)
\n
"
,
had
,
paftd
,
fdwDetails
);
if
(
fdwDetails
&
~
(
ACM_FILTERTAGDETAILSF_FILTERTAG
|
ACM_FILTERTAGDETAILSF_INDEX
|
ACM_FILTERTAGDETAILSF_LARGESTSIZE
))
...
...
@@ -355,7 +355,7 @@ MMRESULT WINAPI acmFilterTagDetailsW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd
break
;
default:
WARN
(
"Unsupported fdwDetails=%08
l
x
\n
"
,
fdwDetails
);
WARN
(
"Unsupported fdwDetails=%08x
\n
"
,
fdwDetails
);
mmr
=
MMSYSERR_ERROR
;
}
...
...
@@ -427,7 +427,7 @@ MMRESULT WINAPI acmFilterTagEnumW(HACMDRIVER had, PACMFILTERTAGDETAILSW paftd,
PWINE_ACMDRIVERID
padid
;
unsigned
int
i
;
TRACE
(
"(%p, %p, %p, %
ld, %l
d)
\n
"
,
TRACE
(
"(%p, %p, %p, %
d, %
d)
\n
"
,
had
,
paftd
,
fnCallback
,
dwInstance
,
fdwEnum
);
if
(
paftd
->
cbStruct
<
sizeof
(
*
paftd
))
return
MMSYSERR_INVALPARAM
;
...
...
dlls/msacm32/format.c
View file @
0290eb1f
...
...
@@ -207,7 +207,7 @@ static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
MSACM_FillFormat
(
hWnd
);
if
((
afc
->
fdwStyle
&
~
(
ACMFORMATCHOOSE_STYLEF_CONTEXTHELP
|
ACMFORMATCHOOSE_STYLEF_SHOWHELP
))
!=
0
)
FIXME
(
"Unsupported style %08l
x
\n
"
,
((
PACMFORMATCHOOSEA
)
lParam
)
->
fdwStyle
);
FIXME
(
"Unsupported style %08
x
\n
"
,
((
PACMFORMATCHOOSEA
)
lParam
)
->
fdwStyle
);
if
(
!
(
afc
->
fdwStyle
&
ACMFORMATCHOOSE_STYLEF_SHOWHELP
))
ShowWindow
(
GetDlgItem
(
hWnd
,
IDD_ACMFORMATCHOOSE_BTN_HELP
),
SW_HIDE
);
return
TRUE
;
...
...
@@ -320,7 +320,7 @@ MMRESULT WINAPI acmFormatDetailsW(HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD
static
const
WCHAR
fmt2
[]
=
{
';'
,
' '
,
'%'
,
'd'
,
' '
,
'b'
,
'i'
,
't'
,
's'
,
0
};
ACMFORMATTAGDETAILSA
aftd
;
TRACE
(
"(%p, %p, %
l
d)
\n
"
,
had
,
pafd
,
fdwDetails
);
TRACE
(
"(%p, %p, %d)
\n
"
,
had
,
pafd
,
fdwDetails
);
memset
(
&
aftd
,
0
,
sizeof
(
aftd
));
aftd
.
cbStruct
=
sizeof
(
aftd
);
...
...
@@ -355,7 +355,7 @@ MMRESULT WINAPI acmFormatDetailsW(HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD
mmr
=
MSACM_Message
(
had
,
ACMDM_FORMAT_DETAILS
,
(
LPARAM
)
pafd
,
fdwDetails
);
break
;
default:
WARN
(
"Unknown fdwDetails %08
l
x
\n
"
,
fdwDetails
);
WARN
(
"Unknown fdwDetails %08x
\n
"
,
fdwDetails
);
mmr
=
MMSYSERR_INVALFLAG
;
break
;
}
...
...
@@ -491,7 +491,7 @@ MMRESULT WINAPI acmFormatEnumW(HACMDRIVER had, PACMFORMATDETAILSW pafd,
WAVEFORMATEX
wfxRef
;
BOOL
ret
;
TRACE
(
"(%p, %p, %p, %
ld, %l
d)
\n
"
,
TRACE
(
"(%p, %p, %p, %
d, %
d)
\n
"
,
had
,
pafd
,
fnCallback
,
dwInstance
,
fdwEnum
);
if
(
!
pafd
)
...
...
@@ -515,7 +515,7 @@ MMRESULT WINAPI acmFormatEnumW(HACMDRIVER had, PACMFORMATDETAILSW pafd,
if
(
fdwEnum
&
(
ACM_FORMATENUMF_CONVERT
|
ACM_FORMATENUMF_SUGGEST
|
ACM_FORMATENUMF_INPUT
|
ACM_FORMATENUMF_OUTPUT
))
FIXME
(
"Unsupported fdwEnum values %08
l
x
\n
"
,
fdwEnum
);
FIXME
(
"Unsupported fdwEnum values %08x
\n
"
,
fdwEnum
);
if
(
had
)
{
HACMDRIVERID
hadid
;
...
...
@@ -548,7 +548,7 @@ MMRESULT WINAPI acmFormatSuggest(HACMDRIVER had, PWAVEFORMATEX pwfxSrc,
ACMDRVFORMATSUGGEST
adfg
;
MMRESULT
mmr
;
TRACE
(
"(%p, %p, %p, %
ld, %l
d)
\n
"
,
TRACE
(
"(%p, %p, %p, %
d, %
d)
\n
"
,
had
,
pwfxSrc
,
pwfxDst
,
cbwfxDst
,
fdwSuggest
);
if
(
fdwSuggest
&
~
(
ACM_FORMATSUGGESTF_NCHANNELS
|
ACM_FORMATSUGGESTF_NSAMPLESPERSEC
|
...
...
@@ -624,7 +624,7 @@ MMRESULT WINAPI acmFormatTagDetailsW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd
PWINE_ACMDRIVERID
padid
;
MMRESULT
mmr
=
ACMERR_NOTPOSSIBLE
;
TRACE
(
"(%p, %p, %
l
d)
\n
"
,
had
,
paftd
,
fdwDetails
);
TRACE
(
"(%p, %p, %d)
\n
"
,
had
,
paftd
,
fdwDetails
);
if
(
fdwDetails
&
~
(
ACM_FORMATTAGDETAILSF_FORMATTAG
|
ACM_FORMATTAGDETAILSF_INDEX
|
ACM_FORMATTAGDETAILSF_LARGESTSIZE
))
...
...
@@ -691,7 +691,7 @@ MMRESULT WINAPI acmFormatTagDetailsW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd
break
;
default:
WARN
(
"Unsupported fdwDetails=%08
l
x
\n
"
,
fdwDetails
);
WARN
(
"Unsupported fdwDetails=%08x
\n
"
,
fdwDetails
);
mmr
=
MMSYSERR_ERROR
;
}
...
...
@@ -773,7 +773,7 @@ MMRESULT WINAPI acmFormatTagEnumW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd,
unsigned
int
i
;
BOOL
bPcmDone
=
FALSE
;
TRACE
(
"(%p, %p, %p, %
ld, %l
d)
\n
"
,
TRACE
(
"(%p, %p, %p, %
d, %
d)
\n
"
,
had
,
paftd
,
fnCallback
,
dwInstance
,
fdwEnum
);
if
(
!
paftd
)
...
...
dlls/msacm32/internal.c
View file @
0290eb1f
...
...
@@ -75,12 +75,12 @@ PWINE_ACMDRIVERID MSACM_RegisterDriverFromRegistry(LPCWSTR pszRegEntry)
if
(
0
==
strncmpiW
(
buf
,
msacmW
,
sizeof
(
msacmW
)
/
sizeof
(
WCHAR
)))
{
lRet
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
drvkey
,
0
,
KEY_QUERY_VALUE
,
&
hKey
);
if
(
lRet
!=
ERROR_SUCCESS
)
{
WARN
(
"unable to open registry key - 0x%08
l
x
\n
"
,
lRet
);
WARN
(
"unable to open registry key - 0x%08x
\n
"
,
lRet
);
}
else
{
bufLen
=
sizeof
(
buf
);
lRet
=
RegQueryValueExW
(
hKey
,
pszRegEntry
,
NULL
,
NULL
,
(
LPBYTE
)
buf
,
&
bufLen
);
if
(
lRet
!=
ERROR_SUCCESS
)
{
WARN
(
"unable to query requested subkey %s - 0x%08
l
x
\n
"
,
debugstr_w
(
pszRegEntry
),
lRet
);
WARN
(
"unable to query requested subkey %s - 0x%08x
\n
"
,
debugstr_w
(
pszRegEntry
),
lRet
);
}
else
{
MSACM_RegisterDriver
(
pszRegEntry
,
buf
,
0
);
}
...
...
@@ -395,7 +395,7 @@ PWINE_ACMNOTIFYWND MSACM_RegisterNotificationWindow(HWND hNotifyWnd, DWORD dwNot
{
PWINE_ACMNOTIFYWND
panwnd
;
TRACE
(
"(%p,0x%08
l
x)
\n
"
,
hNotifyWnd
,
dwNotifyMsg
);
TRACE
(
"(%p,0x%08x)
\n
"
,
hNotifyWnd
,
dwNotifyMsg
);
panwnd
=
HeapAlloc
(
MSACM_hHeap
,
0
,
sizeof
(
WINE_ACMNOTIFYWND
));
panwnd
->
obj
.
dwType
=
WINE_ACMOBJ_NOTIFYWND
;
...
...
@@ -665,13 +665,13 @@ void MSACM_WriteCurrentPriorities(void)
/* Delete ACM priority key and create it anew */
lError
=
RegDeleteKeyW
(
HKEY_CURRENT_USER
,
basePriorityKey
);
if
(
lError
!=
ERROR_SUCCESS
&&
lError
!=
ERROR_FILE_NOT_FOUND
)
{
ERR
(
"unable to remove current key %s (0x%08
l
x) - priority changes won't persist past application end.
\n
"
,
ERR
(
"unable to remove current key %s (0x%08x) - priority changes won't persist past application end.
\n
"
,
debugstr_w
(
basePriorityKey
),
lError
);
return
;
}
lError
=
RegCreateKeyW
(
HKEY_CURRENT_USER
,
basePriorityKey
,
&
hPriorityKey
);
if
(
lError
!=
ERROR_SUCCESS
)
{
ERR
(
"unable to create key %s (0x%08
l
x) - priority changes won't persist past application end.
\n
"
,
ERR
(
"unable to create key %s (0x%08x) - priority changes won't persist past application end.
\n
"
,
debugstr_w
(
basePriorityKey
),
lError
);
return
;
}
...
...
@@ -691,7 +691,7 @@ void MSACM_WriteCurrentPriorities(void)
lError
=
RegSetValueExW
(
hPriorityKey
,
szSubKey
,
0
,
REG_SZ
,
(
BYTE
*
)
szBuffer
,
(
strlenW
(
szBuffer
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
lError
!=
ERROR_SUCCESS
)
{
ERR
(
"unable to write value for %s under key %s (0x%08
l
x)
\n
"
,
ERR
(
"unable to write value for %s under key %s (0x%08x)
\n
"
,
debugstr_w
(
padid
->
pszDriverAlias
),
debugstr_w
(
basePriorityKey
),
lError
);
}
}
...
...
@@ -705,7 +705,7 @@ void MSACM_WriteCurrentPriorities(void)
lError
=
RegSetValueExW
(
hPriorityKey
,
szSubKey
,
0
,
REG_SZ
,
(
BYTE
*
)
szBuffer
,
(
strlenW
(
szBuffer
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
lError
!=
ERROR_SUCCESS
)
{
ERR
(
"unable to write value for %s under key %s (0x%08
l
x)
\n
"
,
ERR
(
"unable to write value for %s under key %s (0x%08x)
\n
"
,
debugstr_w
(
converterAlias
),
debugstr_w
(
basePriorityKey
),
lError
);
}
RegCloseKey
(
hPriorityKey
);
...
...
dlls/msacm32/msacm32_main.c
View file @
0290eb1f
...
...
@@ -45,7 +45,7 @@ HINSTANCE MSACM_hInstance32 = 0;
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"%p 0x%
l
x %p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"%p 0x%x %p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
...
...
@@ -87,7 +87,7 @@ DWORD WINAPI acmGetVersion(void)
case
VER_PLATFORM_WIN32_NT
:
return
0x04000565
;
/* 4.0.1381 */
default:
FIXME
(
"%
l
x not supported
\n
"
,
version
.
dwPlatformId
);
FIXME
(
"%x not supported
\n
"
,
version
.
dwPlatformId
);
case
VER_PLATFORM_WIN32_WINDOWS
:
return
0x04030000
;
/* 4.3.0 */
}
...
...
dlls/msacm32/msacm_main.c
View file @
0290eb1f
...
...
@@ -73,7 +73,7 @@ MMRESULT16 WINAPI acmMetrics16(
MMRESULT16
WINAPI
acmDriverEnum16
(
ACMDRIVERENUMCB16
fnCallback
,
DWORD
dwInstance
,
DWORD
fdwEnum
)
{
FIXME
(
"(%p, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(%p, %
d, %
d): stub
\n
"
,
fnCallback
,
dwInstance
,
fdwEnum
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -87,7 +87,7 @@ MMRESULT16 WINAPI acmDriverEnum16(
MMRESULT16
WINAPI
acmDriverDetails16
(
HACMDRIVERID16
hadid
,
LPACMDRIVERDETAILS16
padd
,
DWORD
fdwDetails
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
hadid
,
padd
,
fdwDetails
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
hadid
,
padd
,
fdwDetails
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -99,7 +99,7 @@ MMRESULT16 WINAPI acmDriverAdd16(
LPHACMDRIVERID16
phadid
,
HINSTANCE16
hinstModule
,
LPARAM
lParam
,
DWORD
dwPriority
,
DWORD
fdwAdd
)
{
FIXME
(
"(%p, 0x%04x, %ld, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(%p, 0x%04x, %ld, %
d, %
d): stub
\n
"
,
phadid
,
hinstModule
,
lParam
,
dwPriority
,
fdwAdd
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -112,7 +112,7 @@ MMRESULT16 WINAPI acmDriverAdd16(
MMRESULT16
WINAPI
acmDriverRemove16
(
HACMDRIVERID16
hadid
,
DWORD
fdwRemove
)
{
FIXME
(
"(0x%04x, %
l
d): stub
\n
"
,
hadid
,
fdwRemove
);
FIXME
(
"(0x%04x, %d): stub
\n
"
,
hadid
,
fdwRemove
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -123,7 +123,7 @@ MMRESULT16 WINAPI acmDriverRemove16(
MMRESULT16
WINAPI
acmDriverOpen16
(
LPHACMDRIVER16
phad
,
HACMDRIVERID16
hadid
,
DWORD
fdwOpen
)
{
FIXME
(
"(%p, 0x%04x, %
l
d): stub
\n
"
,
phad
,
hadid
,
fdwOpen
);
FIXME
(
"(%p, 0x%04x, %d): stub
\n
"
,
phad
,
hadid
,
fdwOpen
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -134,7 +134,7 @@ MMRESULT16 WINAPI acmDriverOpen16(
MMRESULT16
WINAPI
acmDriverClose16
(
HACMDRIVER16
had
,
DWORD
fdwClose
)
{
FIXME
(
"(0x%04x, %
l
d): stub
\n
"
,
had
,
fdwClose
);
FIXME
(
"(0x%04x, %d): stub
\n
"
,
had
,
fdwClose
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -158,7 +158,7 @@ LRESULT WINAPI acmDriverMessage16(
MMRESULT16
WINAPI
acmDriverID16
(
HACMOBJ16
hao
,
LPHACMDRIVERID16
phadid
,
DWORD
fdwDriverID
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
hao
,
phadid
,
fdwDriverID
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
hao
,
phadid
,
fdwDriverID
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -169,7 +169,7 @@ MMRESULT16 WINAPI acmDriverID16(
MMRESULT16
WINAPI
acmDriverPriority16
(
HACMDRIVERID16
hadid
,
DWORD
dwPriority
,
DWORD
fdwPriority
)
{
FIXME
(
"(0x%04x, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %
d, %
d): stub
\n
"
,
hadid
,
dwPriority
,
fdwPriority
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -182,7 +182,7 @@ MMRESULT16 WINAPI acmDriverPriority16(
MMRESULT16
WINAPI
acmFormatTagDetails16
(
HACMDRIVER16
had
,
LPACMFORMATTAGDETAILS16
paftd
,
DWORD
fdwDetails
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
had
,
paftd
,
fdwDetails
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
had
,
paftd
,
fdwDetails
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -194,7 +194,7 @@ MMRESULT16 WINAPI acmFormatTagEnum16(
HACMDRIVER16
had
,
LPACMFORMATTAGDETAILS16
paftd
,
ACMFORMATTAGENUMCB16
fnCallback
,
DWORD
dwInstance
,
DWORD
fdwEnum
)
{
FIXME
(
"(0x%04x, %p, %p, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %p, %p, %
d, %
d): stub
\n
"
,
had
,
paftd
,
fnCallback
,
dwInstance
,
fdwEnum
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -218,7 +218,7 @@ MMRESULT16 WINAPI acmFormatChoose16(
MMRESULT16
WINAPI
acmFormatDetails16
(
HACMDRIVER16
had
,
LPACMFORMATDETAILS16
pafd
,
DWORD
fdwDetails
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
had
,
pafd
,
fdwDetails
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
had
,
pafd
,
fdwDetails
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -230,7 +230,7 @@ MMRESULT16 WINAPI acmFormatEnum16(
HACMDRIVER16
had
,
LPACMFORMATDETAILS16
pafd
,
ACMFORMATENUMCB16
fnCallback
,
DWORD
dwInstance
,
DWORD
fdwEnum
)
{
FIXME
(
"(0x%04x, %p, %p, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %p, %p, %
d, %
d): stub
\n
"
,
had
,
pafd
,
fnCallback
,
dwInstance
,
fdwEnum
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -244,7 +244,7 @@ MMRESULT16 WINAPI acmFormatSuggest16(
HACMDRIVER16
had
,
LPWAVEFORMATEX
pwfxSrc
,
LPWAVEFORMATEX
pwfxDst
,
DWORD
cbwfxDst
,
DWORD
fdwSuggest
)
{
FIXME
(
"(0x%04x, %p, %p, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %p, %p, %
d, %
d): stub
\n
"
,
had
,
pwfxSrc
,
pwfxDst
,
cbwfxDst
,
fdwSuggest
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -257,7 +257,7 @@ MMRESULT16 WINAPI acmFormatSuggest16(
MMRESULT16
WINAPI
acmFilterTagDetails16
(
HACMDRIVER16
had
,
LPACMFILTERTAGDETAILS16
paftd
,
DWORD
fdwDetails
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
had
,
paftd
,
fdwDetails
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
had
,
paftd
,
fdwDetails
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -269,7 +269,7 @@ MMRESULT16 WINAPI acmFilterTagEnum16(
HACMDRIVER16
had
,
LPACMFILTERTAGDETAILS16
paftd
,
ACMFILTERTAGENUMCB16
fnCallback
,
DWORD
dwInstance
,
DWORD
fdwEnum
)
{
FIXME
(
"(0x%04x, %p, %p, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %p, %p, %
d, %
d): stub
\n
"
,
had
,
paftd
,
fnCallback
,
dwInstance
,
fdwEnum
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -293,7 +293,7 @@ MMRESULT16 WINAPI acmFilterChoose16(
MMRESULT16
WINAPI
acmFilterDetails16
(
HACMDRIVER16
had
,
LPACMFILTERDETAILS16
pafd
,
DWORD
fdwDetails
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
had
,
pafd
,
fdwDetails
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
had
,
pafd
,
fdwDetails
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -305,7 +305,7 @@ MMRESULT16 WINAPI acmFilterEnum16(
HACMDRIVER16
had
,
LPACMFILTERDETAILS16
pafd
,
ACMFILTERENUMCB16
fnCallback
,
DWORD
dwInstance
,
DWORD
fdwEnum
)
{
FIXME
(
"(0x%04x, %p, %p, %
ld, %l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %p, %p, %
d, %
d): stub
\n
"
,
had
,
pafd
,
fnCallback
,
dwInstance
,
fdwEnum
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -321,7 +321,7 @@ MMRESULT16 WINAPI acmStreamOpen16(
LPWAVEFILTER
pwfltr
,
DWORD
dwCallback
,
DWORD
dwInstance
,
DWORD
fdwOpen
)
{
FIXME
(
"(%p, 0x%04x, %p, %p, %p, %
ld, %ld, %l
d): stub
\n
"
,
FIXME
(
"(%p, 0x%04x, %p, %p, %p, %
d, %d, %
d): stub
\n
"
,
phas
,
had
,
pwfxSrc
,
pwfxDst
,
pwfltr
,
dwCallback
,
dwInstance
,
fdwOpen
);
...
...
@@ -335,7 +335,7 @@ MMRESULT16 WINAPI acmStreamOpen16(
MMRESULT16
WINAPI
acmStreamClose16
(
HACMSTREAM16
has
,
DWORD
fdwClose
)
{
FIXME
(
"(0x%04x, %
l
d): stub
\n
"
,
has
,
fdwClose
);
FIXME
(
"(0x%04x, %d): stub
\n
"
,
has
,
fdwClose
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -347,7 +347,7 @@ MMRESULT16 WINAPI acmStreamSize16(
HACMSTREAM16
has
,
DWORD
cbInput
,
LPDWORD
pdwOutputBytes
,
DWORD
fdwSize
)
{
FIXME
(
"(0x%04x, %
ld, %p, %l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %
d, %p, %
d): stub
\n
"
,
has
,
cbInput
,
pdwOutputBytes
,
fdwSize
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
@@ -360,7 +360,7 @@ MMRESULT16 WINAPI acmStreamSize16(
MMRESULT16
WINAPI
acmStreamConvert16
(
HACMSTREAM16
has
,
LPACMSTREAMHEADER16
pash
,
DWORD
fdwConvert
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
has
,
pash
,
fdwConvert
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
has
,
pash
,
fdwConvert
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -371,7 +371,7 @@ MMRESULT16 WINAPI acmStreamConvert16(
MMRESULT16
WINAPI
acmStreamReset16
(
HACMSTREAM16
has
,
DWORD
fdwReset
)
{
FIXME
(
"(0x%04x, %
l
d): stub
\n
"
,
has
,
fdwReset
);
FIXME
(
"(0x%04x, %d): stub
\n
"
,
has
,
fdwReset
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -382,7 +382,7 @@ MMRESULT16 WINAPI acmStreamReset16(
MMRESULT16
WINAPI
acmStreamPrepareHeader16
(
HACMSTREAM16
has
,
LPACMSTREAMHEADER16
pash
,
DWORD
fdwPrepare
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
has
,
pash
,
fdwPrepare
);
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
has
,
pash
,
fdwPrepare
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
MMSYSERR_ERROR
;
}
...
...
@@ -393,7 +393,7 @@ MMRESULT16 WINAPI acmStreamPrepareHeader16(
MMRESULT16
WINAPI
acmStreamUnprepareHeader16
(
HACMSTREAM16
has
,
LPACMSTREAMHEADER16
pash
,
DWORD
fdwUnprepare
)
{
FIXME
(
"(0x%04x, %p, %
l
d): stub
\n
"
,
FIXME
(
"(0x%04x, %p, %d): stub
\n
"
,
has
,
pash
,
fdwUnprepare
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
...
dlls/msacm32/pcmconverter.c
View file @
0290eb1f
This diff is collapsed.
Click to expand it.
dlls/msacm32/stream.c
View file @
0290eb1f
...
...
@@ -58,7 +58,7 @@ MMRESULT WINAPI acmStreamClose(HACMSTREAM has, DWORD fdwClose)
PWINE_ACMSTREAM
was
;
MMRESULT
ret
;
TRACE
(
"(%p, %
l
d)
\n
"
,
has
,
fdwClose
);
TRACE
(
"(%p, %d)
\n
"
,
has
,
fdwClose
);
if
((
was
=
ACM_GetStream
(
has
))
==
NULL
)
{
WARN
(
"invalid handle
\n
"
);
...
...
@@ -84,7 +84,7 @@ MMRESULT WINAPI acmStreamConvert(HACMSTREAM has, PACMSTREAMHEADER pash,
MMRESULT
ret
=
MMSYSERR_NOERROR
;
PACMDRVSTREAMHEADER
padsh
;
TRACE
(
"(%p, %p, %
l
d)
\n
"
,
has
,
pash
,
fdwConvert
);
TRACE
(
"(%p, %p, %d)
\n
"
,
has
,
pash
,
fdwConvert
);
if
((
was
=
ACM_GetStream
(
has
))
==
NULL
)
{
WARN
(
"invalid handle
\n
"
);
...
...
@@ -152,7 +152,7 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pw
int
wfxDstSize
;
WAVEFORMATEX
wfxSrc
,
wfxDst
;
TRACE
(
"(%p, %p, %p, %p, %p, %
ld, %ld, %l
d)
\n
"
,
TRACE
(
"(%p, %p, %p, %p, %p, %
d, %d, %
d)
\n
"
,
phas
,
had
,
pwfxSrc
,
pwfxDst
,
pwfltr
,
dwCallback
,
dwInstance
,
fdwOpen
);
/* NOTE: pwfxSrc and/or pwfxDst can point to a structure smaller than
...
...
@@ -171,11 +171,11 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pw
pwfxDst
=
&
wfxDst
;
}
TRACE
(
"src [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%
lu, nAvgBytesPerSec=%l
u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]
\n
"
,
TRACE
(
"src [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%
u, nAvgBytesPerSec=%
u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]
\n
"
,
pwfxSrc
->
wFormatTag
,
pwfxSrc
->
nChannels
,
pwfxSrc
->
nSamplesPerSec
,
pwfxSrc
->
nAvgBytesPerSec
,
pwfxSrc
->
nBlockAlign
,
pwfxSrc
->
wBitsPerSample
,
pwfxSrc
->
cbSize
);
TRACE
(
"dst [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%
lu, nAvgBytesPerSec=%l
u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]
\n
"
,
TRACE
(
"dst [wFormatTag=%u, nChannels=%u, nSamplesPerSec=%
u, nAvgBytesPerSec=%
u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u]
\n
"
,
pwfxDst
->
wFormatTag
,
pwfxDst
->
nChannels
,
pwfxDst
->
nSamplesPerSec
,
pwfxDst
->
nAvgBytesPerSec
,
pwfxDst
->
nBlockAlign
,
pwfxDst
->
wBitsPerSample
,
pwfxDst
->
cbSize
);
...
...
@@ -296,7 +296,7 @@ MMRESULT WINAPI acmStreamPrepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash,
MMRESULT
ret
=
MMSYSERR_NOERROR
;
PACMDRVSTREAMHEADER
padsh
;
TRACE
(
"(%p, %p, %
l
d)
\n
"
,
has
,
pash
,
fdwPrepare
);
TRACE
(
"(%p, %p, %d)
\n
"
,
has
,
pash
,
fdwPrepare
);
if
((
was
=
ACM_GetStream
(
has
))
==
NULL
)
{
WARN
(
"invalid handle
\n
"
);
...
...
@@ -360,7 +360,7 @@ MMRESULT WINAPI acmStreamReset(HACMSTREAM has, DWORD fdwReset)
PWINE_ACMSTREAM
was
;
MMRESULT
ret
=
MMSYSERR_NOERROR
;
TRACE
(
"(%p, %
l
d)
\n
"
,
has
,
fdwReset
);
TRACE
(
"(%p, %d)
\n
"
,
has
,
fdwReset
);
if
(
fdwReset
)
{
WARN
(
"invalid flag
\n
"
);
...
...
@@ -385,7 +385,7 @@ MMRESULT WINAPI acmStreamSize(HACMSTREAM has, DWORD cbInput,
ACMDRVSTREAMSIZE
adss
;
MMRESULT
ret
;
TRACE
(
"(%p, %
ld, %p, %l
d)
\n
"
,
has
,
cbInput
,
pdwOutputBytes
,
fdwSize
);
TRACE
(
"(%p, %
d, %p, %
d)
\n
"
,
has
,
cbInput
,
pdwOutputBytes
,
fdwSize
);
if
((
was
=
ACM_GetStream
(
has
))
==
NULL
)
{
WARN
(
"invalid handle
\n
"
);
...
...
@@ -426,7 +426,7 @@ MMRESULT WINAPI acmStreamSize(HACMSTREAM has, DWORD cbInput,
break
;
}
}
TRACE
(
"=> (%d) [%
l
u]
\n
"
,
ret
,
*
pdwOutputBytes
);
TRACE
(
"=> (%d) [%u]
\n
"
,
ret
,
*
pdwOutputBytes
);
return
ret
;
}
...
...
@@ -440,7 +440,7 @@ MMRESULT WINAPI acmStreamUnprepareHeader(HACMSTREAM has, PACMSTREAMHEADER pash,
MMRESULT
ret
=
MMSYSERR_NOERROR
;
PACMDRVSTREAMHEADER
padsh
;
TRACE
(
"(%p, %p, %
l
d)
\n
"
,
has
,
pash
,
fdwUnprepare
);
TRACE
(
"(%p, %p, %d)
\n
"
,
has
,
pash
,
fdwUnprepare
);
if
((
was
=
ACM_GetStream
(
has
))
==
NULL
)
{
WARN
(
"invalid handle
\n
"
);
...
...
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